Error: Initialization commands cannot be evaluated while working with xpc target supported A/D library blocks!
9 次查看(过去 30 天)
显示 更早的评论
I am trying to use the Humusoft Analog Input s-function block available in the simulink A/D library of xpc target version 5.3 with respect to the following working scenario:
Host PC : Notebook(Installed with MatlabR2012b 32-bit compatible with xpc target version 5.3, Windows 7 OS)
xPC Target PC: Industrial Computer(compatible with Windows 7 OS, xpc target supported LAN Interfaces and PCI Data Acquisition Board)
I connected the Humusoft Analog Input block to the xpc target scope. And whenever i run the simulink model, the following error appears:
*Initialization commands cannot be evaluated.
Caused by: Invalid range value: valid range values are -10*
Has anyone encountered this kind of issue before? If yes, is there a way to debug this problem?
Please give me your feedback regarding the above mentioned query!
0 个评论
回答(2 个)
Suneesh
2014-3-7
I am assuming it is the AD512 block. What value are you setting the 'Range vector' mask parameter to? The error you mention will be seen if it isn't one of the valid values for input range as mentioned in:
0 个评论
Sriniwas@AT
2014-3-10
2 个评论
Suneesh
2014-3-10
The AD622 block has 'Range' but is hidden. The value of that parameter is set to '-10' in the shipping library. Perhaps this has been changed inadvertantly. Check this first by: 1. Selecting the AD622 block in your model. 2. With the block being the highlighted block execute the following at the MATLAB prompt:
get_param(gcb, 'Range')
If this does not return [-10] then that is the cause for the error. you may use SET_PARAM to set it to the correct value.
Also, I think to access MathWorks documentation online you just need to register.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!