LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation Interface Toolkit build error

I am using Simulation Interface Toolkit v2.0.3 with the following Matlab/Simulink versions:
 
MATLAB                                                Version 7.0.4      (R14SP2)
Simulink                                              Version 6.2        (R14SP2)
Real-Time Workshop                                    Version 6.2        (R14SP2)
Real-Time Workshop Embedded Coder                     Version 4.2        (R14SP2)
Stateflow                                             Version 6.2        (R14SP2)
Stateflow Coder                                       Version 6.2        (R14SP2)
 
I am also using MS Visual C++ v6.0 and Labview 7.1.1.
 
I can successfully autocode and compile simple models into "nidll" dll targets.  However, I have a larger model that won't autocode correctly.  I get the following error messages:
 
### TLC code generation complete.
### Generating TLC interface API.
...............................................................................
...............................................................................
...............................................................................
....................................
Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 257 Column: 51
The specified index (1) was out of the range 0 - 0
Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 257 Column: 51
The specified index (1) was out of the range 0 - 0
Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 257 Column: 51
The specified index (1) was out of the range 0 - 0
Error: File: C:\SimulationInterfaceToolkit\ModelInterface\basic.tlc Line: 257 Column: 51
The specified index (1) was out of the range 0 - 0
 
Line 257 of my basic.tlc file is:
  %assign width = Dimensions[0]*Dimensions[1]
 
I have isolated one block in my Simulink model that seems to trigger the error condition.  If I remove this particular block, the autocode will complete.  (I haven't tried to compile yet -- I'm just working on the autocoding first.)  This problem block is straightforward and contains just a few matrix multiplication, gains, and summations.  I can't be certain that this block is the source of the error, however.  If I create a new model that contains only this particular block, it seems to autocode OK.
 
Any ideas on what could be causing these "index out of range" error messages?
 
Thank you.
0 Kudos
Message 1 of 4
(2,749 Views)

Hi M.J.,

Most likely this is due to the fact that version 2.0.3 of the Simulation Interface Toolkit was released before Matlab Release 14 and was not tested with it.  I would urge you to upgrade to SIT 3.0 as it was not only tested with Release 14 but also contains numerous new features.  You probably want to contact your sales representative for upgrade pricing.

You are also welcome to try this updated basic.tlc file.

 
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 2 of 4
(2,734 Views)

Thanks Doug.

I tried the new basic.tlc file and the code generation seems to be working now.  For starters I'm just selecting the "Generate Code Only" option.  Next I'll try to build the .dll.   (Using my original v2.0.3 basic.tlc I couldn't even generate the code without errors.)

I was not aware of SIT 3.0.  When was this released?   We ordered SIT in May 2005 and received v2.0.2.

The release notes for SIT 2.0.3 state , "This release adds support for MATLAB Release 14 and fixes some bugs."  The patch is dated August 2004.  I believe Matlab R14 was released in June 2004.

Thanks again.

 
0 Kudos
Message 3 of 4
(2,729 Views)
M.J.,

Yes, thanks for pointing that out -- I think it must be one of the service packs of Release 14 that eventually caused the incompatibility.  SIT 3.0 was released right around December 2005.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 4 of 4
(2,724 Views)