LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket event

Hi

Am using DataSocket to communicate between 2 applications, one of the application will be running on the RT PXI, and other on a normal PC. Presently I have created a while(1) loop in labview with DSread function in it to check arrival of latest data, this would not be very efficient, is it possible in any way that I can trigger event on change of data, in DataSocket item, As far as I know event structure can be used only for UI control's and that will not be used in RT. kindly give any suggestion

Arun
0 Kudos
Message 1 of 2
(2,240 Views)
hi

when using the datasocket read function you can use the "wait for new data" switch in conjugation with the timeout parameter of the functions. the function gives you an output that indicates a timeout. by doing so the function waits until new data arrives or the timeout occurs.

see attachment

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 2
(2,234 Views)