“操作员的左侧必须是有效的示波器标识符”错误是什么?以及如何解决这个问题?

22 views (last 30 days)
Parin Shah“class=
Parin Shah on 6 Aug 2021
评论: Parin Shah2021年8月10日
Hi,
I am trying to perform SIL testing and while executing the test cases, I get the following error:
错误:文件:c:\ program文件\ matlab \ r2018b \ rtw \ c \ c \ tlc \ mw \ mw \ capi.tlc行:1200列:53
A的左侧。操作员必须是有效的范围标识符”
Initially, I developed test cases for MIL environment which I could execute without any error. Now, I changed the harness for SIL testing and trying to execute the same test cases but, getting above-mentioned error.
我正在通过创建测试安全带测试SW,使用MATLAB中的UniteSt开发测试案例,并由测试经理执行。
有人可以帮我吗?
谢谢,
Parin

Accepted Answer

Parin Shah“class=
Parin Shah 2021年8月10日
我的MATLAB工作项目目录中有自动代码gen文件(来自同一SWC的先前构建)。我对测试安全带进行了一些更改,当我进行SIL测试时,MATLAB指的是先前构建中的文件,而不是从头开始创建自动代码Gen Files。删除那些以前的文件后,我可以解决此错误。
1条评论
Parin Shah“class=
Parin Shah 2021年8月10日
我希望Mathworks在其新版本中提出了有关此类问题的解决方案,因为每当我更改线束时,我都需要手动删除那些自动代码代码gen文件,然后为SIL构建模型。

登录发表评论。

更多答案(1)

沃尔特·罗伯森(Walter Roberson)“class=
Notice the message about dot indexing not supported.
The most common reason for that message is that some operation returned [] when you expected it to return a struct or an object.
However it can also occur if a variable that was a struct or object was overwritten with a numeric object. It can also occur if the variable previously existed as a numeric object and the code that you expected to overwrite it with a struct or object does not do so.
9条评论

登录发表评论。

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!