From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT cRIO 9025

Hello everyone,

i have a question about the real time control design.

my harware's are:

NI cRIO 9025

chasis cRIO 9112

Analog input NI 9215

Analog output NI 9264

 

I have a Matlab model. I use a (SIT) simulation interface toolkit to obtain .dll file

than open blank .vi mapping SIT connection manager, select .dll and mapping with the graps and indicators.

 

But in the Hardeware I/O selection when I am try to map hardware, there is only show the ip number of my device 169.254.84.198

I cant see the any analog input and output ports therefore i cant map the Hardware I/O with my Matlab model.

Is there any problem with my procedure.

regards

Sinan B.

0 Kudos
Message 1 of 18
(6,664 Views)

Hi Sinan,

 

Using SIT with a cRIO target is a little more complicated then that. For one thing, you cannot run DLLs on VxWorks; you have to generate a .out file. For another, to interface with the hardware i/o through the fpga you must create a custom bitfile in order to create a .out file that will work for your setup. 

 

This tutorial takes you through all of the steps necessary to get this model running on your cRIO with proper mapping: http://www.ni.com/white-paper/11654/en

Its specific to the sinewave example but you can use the steps it goes through to implement your own model.

 

Generally, we recommend a newer product, VeriStand, for doing this sort of thing if you're interested. It does everything that SIT does and much more.

0 Kudos
Message 2 of 18
(6,655 Views)

Hello Alisha P

 

How to generate .out file. In matlab there is nidll.tlc but there is no nidll_vxworks.tlc.

How can i add it to matlab to generate.

 

Regards.

Sinan Başaran-GYTE

0 Kudos
Message 3 of 18
(6,642 Views)

Hey Sinan,

 

Sounds like VxWorks support has not been enabled. 

 

Did you try looking at the info in Step 1 under "Compiling the Model..." in the tutorial I referenced?

 

This references this Knowledge Base article: http://digital.ni.com/public.nsf/allkb/A564E382D31ABFCA862574CE006B228D

 

Have you followed the steps in the attached readme?

 

Getting your model to run on cRIO with SIT has a number of steps (as you can see in the tutorial). Each one must be followed carefully in order for it to work.

 

Good luck!

0 Kudos
Message 4 of 18
(6,638 Views)

Hello again.

i finally compile and generate the .out file than press the play button. 🙂

But there is an error dialog box 

hata.png

 

is there any idea about this error?.

 

Regards.

Sinan Başaran-GYTE

 

 

0 Kudos
Message 5 of 18
(6,603 Views)

Hi Sinan,

 

Have you been able to rule out the troubleshooting suggestions in the error message?

 

Do you have SIT and NI-VISA installed on the cRIO?

In the SIT Connection manager were you able to map the I/O to your hardware?

Do you have a solid connection with the target?

Are you able to run an example model - like the example Sine wave model?

0 Kudos
Message 6 of 18
(6,590 Views)

I do all of them.

and i cant run the example model. it gave the same error.

 

0 Kudos
Message 7 of 18
(6,567 Views)

Hi Sinan,

 

Were you able to develop a custom FPGA VI for your 9025? This step can be tricky.

 

Can you post screenshots of the software installed on your cRIO and the series of dialog boxes in the SIT Connection Manager? Perhaps, post your FPGA VI so I can check if it's been customized appropriately.

0 Kudos
Message 8 of 18
(6,555 Views)

Hello Alisha P;

I upload my sit  Example Sinewave Model. can you look at these, is there anything wrong?

 

0 Kudos
Message 9 of 18
(6,537 Views)

Hi Sinan,

 

What you have looks good. However, you have not included a custom FPGA bitfile (at least, I could not find one). Have you created the necessary bitfile as instructed in the linked tutorial?

0 Kudos
Message 10 of 18
(6,523 Views)