MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [Simulink相关] simulink切换系统运行中提示错误:Attempt to reference field of non-structure array. (https://www.labfans.com/bbs/showthread.php?t=17124)

ddxiner 2012-07-02 10:18

simulink切换系统运行中提示错误:Attempt to reference field of non-structure array.
 
大家好,我在simulink中搭建了一个切换系统,它有两个子控制器,使用了switch这个模块,这两个子系统单独运行都没有问题,组成切换系统时,如果把仿真时间改的小一点,能够发现该系统能够使用第一个控制器正常运行,但这时还没有达到预期位置,将仿真时间改得大一点的话,就会出现以下提示:
Attempt to reference field of non-structure array.
Error in 'sw1/fejienn/invnn' while evaluating expression: Attempt to reference field of non-structure array.
而这个“invnn”的输出是要连接到 switch这个模块的第二输入处的,就是将这个函数的输出与switch模块事先给出的阈值进行比较,而关于这个“invnn.m”我单独运行过是没有问题的,那问题出在哪里呢?


所有时间均为北京时间。现在的时间是 03:22

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.