Get the bitrate from wlanWaveformGenerator()
3 views (last 30 days)
Arthi Sathyamurthi on 27 Dec 2021
The wlanWaveformGenerator(bits,cfg) function generates a waveform for bits, the specified information bits, and cfg, the physical layer (PHY) format configuration. You can look at the example in this link as a reference. The example generates the waveform based on the PSDU of the specified WLAN HE TB configuration object. The length of the PSDU is obtained in the psduLength variable, in bytes. You can multiply this by 8 to get the PSDU length in bits.
Bit rate is the number of bits that are processed per unit of time (usually in seconds). Hence to obtain the bit rate of the WLAN waveform generated, you can divide the total number of bits processed/total time which in the above example case would be (144*8)/(4320*10^-9) = 266.67 Mbps