フィルターのクリア

Error saying 'The second argument must be a scalar object of type wlanMACFrameConfig.'

1 回表示 (過去 30 日間)
Mia PK
Mia PK 2019 年 9 月 25 日
回答済み: Charan Jadigam 2020 年 3 月 12 日
I am trying one of the examples as seen below;
macConfig = wlanMACFrameConfig('FrameType','Beacon');
[frame,frameLength] = wlanMACFrame(macConfig,'OutputFormat','bits');
Running this throws an error:
Error using wlanMACFrame>validateInputs (line 292)
The second argument must be a scalar object of type wlanMACFrameConfig.
Error in wlanMACFrame (line 94)
[payload, macConfig, phyConfig] = validateInputs(inputs);
Error in beacon_transceiver (line 28)
[frame, mpduLength] = wlanMACFrame(beaconFrameConfig, 'OutputFormat', 'bits');
Could someone help me with what I can try next?

回答 (2 件)

Jiang Zhiping
Jiang Zhiping 2020 年 1 月 30 日
編集済み: Jiang Zhiping 2020 年 1 月 30 日
These two lines work with no error.
I'm using MATLAB R2019b Update 3.

Charan Jadigam
Charan Jadigam 2020 年 3 月 12 日
Hi,
Unfortunately, there is no feature of changing Output format in MATLAB R2019a which can be verified in the documentation here. By default, the second argument is always object of type ‘wlanMACFrameConfig’.
But, this feature has been added in MATLAB R2019b, hence the same command works perfectly in R2019b. For details regarding ‘Output Format’ in MATLAB R2019b go through this link.

カテゴリ

Help Center および File ExchangeGet Started with WLAN Toolbox についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by