Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Remotely accessing cRIO variables

Solved!
Go to solution

I have a cRIO-9014 with a cRIO-9114 that is used as a standalone system controller (we utilize several types of AI/O and DI/O c modules).  I want to connect an ethernet cable and view select I/Os to facilitate control PID tuning.  I am currently using global variables to communicate between the host vi on the PC and the rtexe vi.  This only works whent the rtexe vi is launched from the PC.  If I try to launch the host program while the rtexe is running on the cRIO, when the variables deploy it halts the rtexe.  If I prevent the variables from deploying, the global variables in the host do not communicate with the cRIO.   Does anyone know how to get real time data from the CRIO without interrupting the control program running on the cRIO?

 

Thanks!

0 Kudos
Message 1 of 3
(3,994 Views)
Solution
Accepted by loves2

If you use Network Published Shared variables, and host them on the target (make sure the library is under the target in the project explorer), the variables will remain deployed when you launch the host VI. That way you won't interrupt the control program on the cRIO.

 

See the KnowledgeBase article: How Do I Deploy Network Shared Variables from a Compiled Executable? for more information.

 

Hope this helps,

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 2 of 3
(3,974 Views)

I was able to accomplish my goal by adding the Invoke Library node to the .rtexe block diagram.  It seemed to work regardless of whether the Target IP Address was the cRio or the host computer.  Thanks for the help! 

0 Kudos
Message 3 of 3
(3,918 Views)