Error: "Dot indexing is not supported for this variable"

2 ビュー (過去 30 日間)
Md Anowar Hossain
Md Anowar Hossain 2018 年 9 月 16 日
コメント済み: Md Anowar Hossain 2018 年 9 月 17 日
I am trying to run the MATLAB script ad9361_ModeS.m and getting an error "Dot indexing is not supported for variables of this type" in line 54. Any suggestions?

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 9 月 16 日
編集済み: Walter Roberson 2018 年 9 月 16 日
Line 54 contains
input_content = cell(1, s.in_ch_no + length(s.iio_dev_cfg.cfg_ch));
The error implies that s.iio_dev_cfg is not a struct or object.
That code initializes the iio_dev_cfg to [] . The user is responsible for invoking setupImpl(), which you do. setupImpl() is responsible for calling getObjConfig() . getObjConfig() tries to read a configuration file and sets the iio_dev_cfg to {} if it fails, and to a structure if it works. setupImpl() should invoke error() if it finds that the configuration is empty such as {} .
I would have expected, then, that you would have reached an error condition; I do not see at the moment any other way you could have the error on line 54... unless you are using a different iio_sys_obj_matlab
I suggest that you debug and check to see what class() of s.iio_dev_cfg is when the error occurs.
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 17 日
Perhaps you are using a different version of that function.
Md Anowar Hossain
Md Anowar Hossain 2018 年 9 月 17 日
I am using the same function from your given link.
I am using "AD9361" and "Zedboard".
Is the problem related to the ethernet connection between host PC and FPGA?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by