Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer events between PC and RIO

We have a power supply to be controlled using cRIO - 9022. The power supply is connected to the cRIO via Ethernet. We need to switch ON/OFF, Increases / Decrease the voltage of the power supply. PC will be having a GUI from which we will control the power supply. The communication between PC and cRIO is via Ethernet. When user clicks the ON/OFF Button on GUI displayed on PC the event must be transferred to the cRIO VIA Ethernet(TCP/IP) and cRIO should issue a command to switch ON the Power Supply. Same for Increase / Decrease. 

 

Can we use Queues - with Command/Message BAsed (communication Model). Is there any example for transferring Queue via TCP/IP Protocol.

 

Or there is any other method to send the event between PC and the RIO

 

Thanks

 

Regards 

0 Kudos
Message 1 of 3
(5,189 Views)

Hi

 

If your cRIO is connected to your PC via Ethernet, you can communicate with your remote target from your pc by using network published shared variables. You can create a network published shared variable in your LabVIEW project and use it to send the required boolean values for on/off and increase/decrease functionalities to your cRIO.

https://www.ni.com/en/support/documentation/supplemental/06/using-the-labview-shared-variable.html#s...

0 Kudos
Message 2 of 3
(5,182 Views)

For your use case, I would recommend checking out network streams.  Network streams essentially work like a network queue and tend to work better for sending commands since they are guaranteed not to lose data.  Network variables work great for monitoring applications where you just want to display the latest snapshot of the system.  However, it is possible to lose data with network variables so it can be a little tricky to use them for sending/receiving commands between targets.

0 Kudos
Message 3 of 3
(5,177 Views)