LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[SIT 5.0] Problem with running Simulink model dll on RT target

Hello!

 

This a continuation of my problem described here: http://forums.ni.com/ni/board/message?board.id=170&thread.id=431616

 

At the moment I am using following versions of software:

LabVIEW 8.6.1

LabVIEW Real-Time 8.6.1

NI-RIO 3.1.0

Simulation Interface Toolkit 5.0.0

Microsoft Visual C++ 6.0

MATLAB 7.4.0 (R2007a)

NI cRIO-9014

 

I have done everything mentioned in http://digital.natinst.com/public.nsf/$CXIV/ATTACH-AEEE-7JSQXS/$FILE/readme_sit_vxworks.txt

After that I was able to build nidll and nidll_vxworks using Matlab. Then I have configured SIT Connection manager, mapped controls and indicators, selected model dll etc. But when I have tried to deploy it on RT target I got following error message:

 

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying NI_SIT_Replay.lvlib
Deploying NI_SIT_driversupportVIs.lvlib
Deploying NI_SIT_ClientConnMngr.lvlib
Deploying NI_FileType.lvlib
Deploying NI_SIT_Data Log.lvlib
Deploying XDNodeRunTimeDep.lvlib
Deploying NI_SIT_util.lvlib
Deploying NI_SIT_SITServer.lvlib
Deploying project01_Driver.lvproj
Deploying NI-cRIO9014-00E9D6B1(successfully deployed target settings)
Deploying MD5Checksum pad.vi(8,86 K)
Deploying NI_SIT_Replay.lvlib:Read Select Data Packet FIFO.vi(24,89 K)
Deploying NI_SIT_driversupportVIs.lvlib:SIT Driver FP Strings.vi(2,39 K)
Deploying NI_SIT_Data Log.lvlib:Allocate Data Log State Machine Buffers.vi(10,17 K)
Deploying compatWriteText.vi(9,04 K)
Deploying NI_SIT_Replay.lvlib:Wait for Ack.vi(5,29 K)
Deploying NI_SIT_SITServer.lvlib:SITs Read Data Buffer.vi(20,24 K)
Deploying NI_SIT_ClientConnMngr.lvlib:Find Channel.vi(8,23 K)
Deploying NI_SIT_Data Log.lvlib:Get Current Configuration from Queue.vi(9,46 K)
Deploying NI_SIT_Data Log.lvlib:Send New Group Probe List.vi(5,82 K)
Deploying NI_SIT_Replay.lvlib:Write to Active FIFO.vi(8,71 K)
Deploying NI_SIT_Replay.lvlib:Create Configuration FIFO.vi(6,29 K)
Deploying NI_SIT_driversupportVIs.lvlib:sit Microsecond Timer.vi(9,62 K)
Deploying NI_SIT_Data Log.lvlib:Get All Configurations from Queue.vi(9,30 K)
Deploying NI_SIT_Data Log.lvlib:Switch Active Configuration.vi(9,77 K)
Deploying NI_SIT_Data Log.lvlib:Update Current Configuration Log Filename.vi(8,85 K)
Deploying NI_SIT_SITServer.lvlib:SITs Send Packet.vi(26,80 K)
Deploying Invalid Config Data Reference.vi(2,86 K)
Deploying NI_SIT_driversupportVIs.lvlib:SIT Set Project Directory Path.vi(16,94 K)
Deploying NI_SIT_Replay.lvlib:Update TCL Position FIFO.vi(16,39 K)
Deploying XDNodeRunTimeDep.lvlib:loadlvalarms.vi(32,39 K)
Deploying NI_SIT_driversupportVIs.lvlib:SIT Task Loop.vi
Failed to download NI_SIT_driversupportVIs.lvlib:SIT Task Loop.vi
LabVIEW:  Failed to load shared library SITs.*:TaskTakeOneStep:C on RT target device.
Deployment completed with errors

 

I was hoping that upgrading my software will fix all problems. But sadly, it didn't. Any idea? Many thanks for help! 😉

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

Hello,

I also had quite a lot of problems using Labview 8.6.1, RT and SIT 5.0.1. I upgraded a software using Labview 7.1 and SIT 2.0.3 beeing used for 5 years now and it was real pain.

I not using the SIT as you are (just load the model from a DLL, use a timeloop to step the model and finally close the model) but it seems that SIT 5.0.1 has a bug (confirmed recently by NI tech support) concerning inputs and outputs if you are using an array.

It seems that if you use an array for the input during the transcoding of the simulink model to the DLL an index is not well taken into account resulting in a model not beeing able to read its intputs. In my case whatever the inputs data could be the outputs were always 0.

The model has been changed to use only scalar data and everything works fine, ... well using the developpement software :

I cannot generate an RT target executable as during the deployment it fails all the time.

I saw once a message concerning SIT VIs deployment errors and it happened shortly after i upgraded my target : SIT 2.0.3 was still installed after SIT 5.0.

 

I spent a few years without updating Labview and i am amazed at how many problems occurs with all versions above 8.0.

 

Good luck,

Message 2 of 4
(3,937 Views)
Thanks for an insight! I will certainly look into it 😉
0 Kudos
Message 3 of 4
(3,932 Views)

Have you installed SIT to the RT target from MAX?  That is my first guess of what is wrong.  In MAX under the Software section of your RT target you can verify what is installed.  If SIT is not installed on the target you can use Add/Remove Software option for your target to install it.  Note that SIT is not inlcuded in any of the pre-configure 'recommended software sets' for the cRIO, so you need to pick the Custom option and specify to install SIT.

 

Carl L

National Instruments

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