LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulation interface toolkit tutorial

I'm trying to perform the tutorial titled "Converting a Simulink Model into a Model DLL", found on p.22 the Simulation Interface Toolkit manual (http://www.ni.com/pdf/manuals/370420b.pdf).

 

It starts off by building a new Simulink model of a sine wave (p.9).  On step 7 of that process, it mentions a "NISink" block from the "NI Toolkit Sinks" library in Labview.  I do not see this library, and I got zero hits when I searched the libraries for "NISink".  I do have a library callled "NI SIT Blocks" but it does not have a "NISink" block, only "SignalProbe", "SIT Out1", and "SIT In1".

 

I am using SIT V5.0 with Simulink V7.2(R2008b), but the tutorial appears to be a bit older, perhaps from SIT V2.    I assume that "SIT Out1" has replaced "NISink" but, as a novice, assumptions bother me.  Is there a more up-to-date users guide available?  I found the "SIT 2009 Help" file online (http://zone.ni.com/reference/en-XX/help/371504E-01/) but the how-to's there do not contain any tutorials.

0 Kudos
Message 1 of 4
(3,714 Views)

I found a help example that was installed on my system with Labview, obviously a little more up to date.  It’s also found online here:

 

http://zone.ni.com/reference/en-XX/help/371504E-01/TOC5.htm

 

I ran through the help example for the SIT how-to "configuring a simulation" and it worked as expected.  When I then proceeded to the "configuring a simulation on a real-time target", I found that tasks 1 and 2 were already complete and verified working from the first how-to.  During task three, however, step 7 fails at compile time (see attached file matlab_output.txt)

 

It looks to me like it is mssing a header file from the Simulink Real Time Workshop (called rtwtypes.h).  It contains declarations for some sized and unsized generic data types, including uint_T.  However, that file is available in the regular RTW library directory.  Not sure why I can use the SIT server in Simulink to control the s-function with LabView, but I can't build a stand alone DLL for a real time system.

0 Kudos
Message 2 of 4
(3,696 Views)

Hi Chris,

 

I just wanted to post real quick to say that since we already have a phone Service Request open for this issue, I will be communicating with you via email associated with that SR. However, if any other customers would like to post helpful suggestions/comments, that would be much appreciated. Thank you.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 3 of 4
(3,681 Views)

Yeah, that was my intention for posting here, Aaron.

 

As a follow-on (that I've already e-mailed you, Aaron),  the reason I think rtwtypes.h is a missing path or reference is because if I copy that file to a local directory for the build, the compile actually works.  I did a lot of searching for the file that contained the typedefs that were missing according to the error messages I sent you the other day, and eventually found the rtwtypes.h header.  I would have expected that file to be included by Simulink automatically.

 

I've been having a parallel conversation with MathWorks tech support, and I've sent this info to them, as well as posting on their forums.

0 Kudos
Message 4 of 4
(3,668 Views)