LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using External Model Function (Control and Simulation Module) on Linux Target

Solved!
Go to solution

Hi,

 

I'm trying to run the NI "EMI_Integrator.vi" example on a NI cRIO-9024 (and a myRIO).

 

I moved the "EMI_Integrator.so" file to the "/ni-rt/system" on the cRIO and added .so file to the target under the LabVIEW project. I can't browse to the .so file directly so I specified the .so path manually, but the VI is not able to run and reports a -2366 "relink model" error.

 

You can find the original version of the VI in the NI Example Finder", but I've included my modified version that has a LabVIEW project and targets already loaded.

 

Thanks,

Mitch

 

 

 

0 Kudos
Message 1 of 4
(3,419 Views)
Solution
Accepted by topic author BingoCard

Hello Mitch,

 

If you want to use the External Model Node on a 9024, you need to copy the appropriate VxWorks library file (.out) to the target's /ni-rt/system folder. The .out file is located in LabVIEW\Examples\Control and Simulation\Simulation\External Model Interface\EMI_Integrator\RT-Lib\vxworks.

 

In LabVIEW, have the External Model Node reference the appropriate library file for your operating systems. In my case, I use a .dll for Windows located in the EMI_Integrator folder, above.

 

When I run the VI on the cRIO Target, referencing the library on my host computer, it will automatically search the /ni-rt/system folder for a file with the same name, with .out.

 

Regards,

Thomas C.
FlexRIO Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,370 Views)

Thanks Thomas - that fixed it!

 

The issue may have occured because I placed all three RT-based ouput files (i.e. *.out, *.so, and *.dll) on the target. When I had just the .out file is correctly picked it out when ran on the cRIO. 

 

Mitch

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

Sounds great!

Thomas C.
FlexRIO Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,301 Views)