Error: Initialization commands cannot be evaluated while working with xpc target supported A/D library blocks!
조회 수: 8 (최근 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!