LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP driven event / Interrupt

Hi all,

I thought about a better way of detecting the change of a value of a data socket connectin (OPC) than a loop with 50ms delay which continually polls the opc-server.
Is there a way in LV to react on events which are not induced by a frontpanel input but by a change of a value of a data socket connection?
Or is there another way to react on a change of a value of a data socket connection like an interrupt?

Best Regards,

Toni
0 Kudos
Message 1 of 2
(2,949 Views)
Depending upon the structure of your code you could use threads and block on the socket - then when data is recieved use one of the sychronisation tools (queues, semaphores etc) to "wake up" or tigger an event in another thread.
0 Kudos
Message 2 of 2
(2,949 Views)