11-15-2010 04:28 PM
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!
Solved! Go to Solution.
11-16-2010 04:14 PM
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,
11-23-2010 08:00 AM
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!