Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
datarate802.16
Package: WiMAX_Protocol_Code.rar [view]
Upload User: hzie11
Upload Date: 2013-10-07
Package Size: 1487k
Code Size: 1k
Category:
Linux Network
Development Platform:
C/C++
- #!/bin/bash
- # Bash file to run datarate simulations for different modulation and cyclic prefix
- # @author rouil
- if [ "$1" == "clean" ]; then
- rm -r res_datarate
- else
- mkdir res_datarate
- cd res_datarate
- for modulation in "OFDM_BPSK_1_2" "OFDM_QPSK_1_2" "OFDM_QPSK_3_4" "OFDM_16QAM_1_2" "OFDM_16QAM_3_4" "OFDM_64QAM_2_3" "OFDM_64QAM_3_4" ; do
- if [ "$1" != "" ]; then
- modulation=$1
- fi
- mkdir $modulation
- cd $modulation
- for cp in "0" "0.03125" "0.0625" "0.125" "0.25"; do
- mkdir cp_$cp
- cd cp_$cp
- echo -n "Running for modulation" $modulation " and CP="$cp
- ns ../../../datarate.tcl $modulation $cp &> log.t
- DATARATE=`grep ^r out.res|grep "1 0 cbr"|awk 'BEGIN{first=-1; last=-1} {if (first==-1) {first=$2}; last=$2; i+=$6-0;} END {print (8*i/(last-first))}'`
- echo " datarate = " $DATARATE
- echo $modulation $cp $DATARATE >>../../result$modulation.dat
- echo $modulation $cp $DATARATE >>../../result.dat
- #rm out.res
- #rm log.t
- cd ..
- done
- cd ..
- if [ "$1" != "" ]; then
- break
- fi
- done
- cd ..
- gnuplot plot-datarate
- fi