NI WLAN Generation Toolkit 18.0 Help

Edition Date: October 2018

Part Number: 373725J-01

»View Product Info
Download Help (Windows Only)

int32 __stdcall niWLANG_ChannelNumberToCarrierFrequency80211ah (float64 channelStartingFrequency, int32 channelNumber, float64 *carrierFrequency);


Calculates the carrier frequency of 802.11ah channels according to section 22.3.13 of IEEE P802.11ah/D1.3.


Name Type Description
channelStartingFrequency float64 Specifies the start frequency of the frequency band. This value is expressed in Hz.
channelNumber int32 Specifies the offset of the center frequency above the starting frequency of the channel. This value is expressed in increments of 5 MHz.
Name Type Description
carrierFrequency float64* Returns the carrier frequency. This value is expressed in Hz.

The function calculates the carrier frequency using the following formula:

carrier frequency (Hz) = channel starting frequency (Hz) + (channel number * 0.5 MHz)

Return Value

Name Type Description
status int32 Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to the function to determine if an error occurred.

To obtain a text description of the status code, call the niWLANG_GetErrorString function.

The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors


Not Helpful