LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with running Simulink model dll on RT target

Solved!
Go to solution

Hello!

 

At the beggining I will specify software and hardware I am using:

LabVIEW 8.5

Simulation Interface Toolkit 4.0.0

Microsoft Visual C++ 6.0

MATLAB 7.4.0 (R2007a)

NI cRIO-9014

 

At first I made a simple Simulink model (Sine generator, gain and a out sink), then I started with blank vi file and dropped there numeric control for the gain and Waveform Chart for tthe Sine. I have entered SIT Connection Manager and have chosen Simulation Environment checkbox. Then I have loaded a model file, mapped controls and indicators. Everything worked like a charm. Problems started when I was trying to make it run on a  RT target.Maybe I will describe step by step what have I done and post the error message at the end.

 

1. I have created a dll file from a MATLAB simulink model. I have selected in Real Time Workshop a C language and set target to "nidll.tlc". The I compiled it with no errors.

2. I have entered SIT Connection Manager in LabVIEW and changed Execution Host to Real-Time Target. File browser has popped up and I have selected already made dll file of my model.

3. In Add Targets and Devices On window I have selected "existing target or device" and I have chosen in other menu Real-Time CompactRIO. There was my compactrio system, I have selected it and LabVIEW started to discover devices.

4. After that I've clicked "Ok" button in SIT Connection Manager.

5. I've clicked on Run button in front panel of my vi file and LabVIEW started deployment.

 

And over here deployment has failed with following error message:

 

Deploying 192.168.1.2  (successfully deployed target settings)
Deploying compatOpenFileOperation.vi  (5.35 K)
Deploying SIT Copy Replay Values to Inports.vi  (10.96 K)
Deploying SIT Expand Log Signal Names.vi  (4.99 K)
Deploying SIT PostOutputs.vi
Failed to download SIT PostOutputs.vi
LabVIEW:  Failed to load shared library SITs.out:PostOutputs:E on RT target device.

 

I have tried to do everything one more time and got a little different error message:

 

Deploying 192.168.1.2  (successfully deployed target settings)
Deploying Common Path to Specific Path.vi  (22.25 K)
Deploying SIT runtime DLL query.vi
Failed to download SIT runtime DLL query.vi
LabVIEW:  Failed to load shared library SITs.out:TaskRunTimeInfo:E on RT target device.

 

 

What am I doing wrong? Any ideas? I will be extremely grateful for any insights! 🙂

 

best regards,

Pawel

 

0 Kudos
Message 1 of 6
(4,624 Views)

It looks like your cRIO controller is running the vxWorks embedded operating system. VxWorks uses the .out format for shared libraries instead of a .dll. SIT can create and deploy .out files just like it did for .dll files, but there's a couple extra steps in the workflow.

 

Refer to this document for help getting started in the process and reply back if you have any questions.

 

I just realized you're using SIT 4.0 instead of 5.0, which I don't believe has the code generation for .out files. Is there any chance you can upgrade to 5.0?

Message Edited by Jarrod S. on 08-12-2009 08:21 AM
Jarrod S.
National Instruments
Message 2 of 6
(4,620 Views)

Is this the only solution? 😞

 

So the update from 4.0 to 5.0 is not free right? 🙂

0 Kudos
Message 3 of 6
(4,604 Views)

Ok, I've asked around in my workplace and there isn't a possibility to upgrade my LabVIEW from 8.5 to 8.6 to allow use of SIT 5.0.

 

So, my problem can't be solved without upgrading?

 

Many thanks for help!

0 Kudos
Message 4 of 6
(4,571 Views)
Solution
Accepted by topic author qkieu

SIT 4.0 does not support VxWorks targets such as your cRIO. SIT 5.0 was the first version to have any level of support for this.

 

I would recommend contacting support to discuss a possible workaround. If they have any questions, you can reference this forum post and they can get in touch with me. Hope this helps.

Jarrod S.
National Instruments
Message 5 of 6
(4,541 Views)
Ok, many thanks for an answer! Maybe I will be able to get proper versions of required software, so there is still hope 😉
0 Kudos
Message 6 of 6
(4,529 Views)