LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a simulated version of code with cRIO I/O

I have been given crappy code and I have to troubleshoot and modify code.  It uses a cRIO 9074 and has a lot of shared variable I/O in it.  Unfortunately I don't have access to one right now due to company budgets (Work harder, not smarter).  What is the best way to change the code to convert the I/O to controls or indicators so I can run it without the cRIO device?  I need to test the operation of it to understand some of the logic of the code.

 

I just wanted to find what the easiest method was before I go off and do a lot of work using conditional structures of some kind.

 

Thanks for your help.

0 Kudos
Message 1 of 3
(2,604 Views)

If you're using shared variables, could you not move the location of the shared variable library to the RT target / windows and reference them in the same way (even though they are in a different location)?

 

It's not something I've ever tried as I don't use shared variables but it might be possible?

 

Failing that, you could wrap your shared variable I/O nodes to allow you to switch in/out the real ones for some simulated ones.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 3
(2,581 Views)

Did you try to move, in the project, the code and the shared variables from the real time target to My Computer.

It may work without changes if the code is not using some real time specific code, like turning LED on/off, etc...

 

I remember trying this with a project for cRIO 9024, but it was just the controller and the real time Modbus TCP/IP, without a chassis.

 

0 Kudos
Message 3 of 3
(2,561 Views)