LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows / Simulink Interface for HiL Simulation

We want to set up an interface between a LabWindows based application (which essentially incorporates a test rig control), and a Simulink model of the component (say an engine) that is to be tested on the test rig, and simulate the interaction between both systems.

 

In the “real world”, the LabWindows application communicates via Profibus, CAN and digital/analog I/Os with the component. Essentially, there are two ways of accessing the Simulink world: (i) directly out of the Labwindows application, (ii) behind the communication interfaces (which would make our life a bit difficult I guess)

 

How can we handle the situation in the simulation environment? Does LabWindows support a Simulink interface? Any suggestions?

 

Thank you for your help!

 

Regards,

Michael
0 Kudos
Message 1 of 2
(3,301 Views)

Hello Micheal,

 

 

 

 

 

Thank you for posting to the NI Discussion Forums.  Unfortunately there is no LabWindows/CVI-specific interface to Simulink.  Simulink can create C code which can be compiled to DLLs which can be called by CVI, but there are no CVI tools built in to do this.

 

 

 

 

 

Do you have LabVIEW?  There ARE tools at your disposal if you open your development up to the LabVIEW arena, and if you have legacy CVI code, you can always build these into DLLs and call them from LabVIEW.  The best example I can think of is our Simulation Interface Toolkit (now called the Model Interface Toolkit https://www.ni.com/en-us/shop/product/labview-model-interface...) which basically sounds like it would do everything you need.  If you are working with LabVIEW and SIT, there are ways to communicate with CVI if you need to keep the UI in CVI, but we can discuss these possibilities if getting LabVIEW and SIT is an option for you.

 

 

 

 

 

I apologize that there is no easier way from CVI, please let us know if you have any additional information or feedback for us.

 

 

 

 

 

Thanks again for posting – have a great weekend!

 

 

 
Travis M
LabVIEW R&D
National Instruments
Message 2 of 2
(3,262 Views)