LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No time out at Datasocket read

I read two or more Datasocket items in a FOR loop. The time out flag is set and the time out is 500ms. The problem is that I never get an time out for an item although the item is not written from anywhere. What's the problem ?
0 Kudos
Message 1 of 2
(2,638 Views)
semmar1,

This was a design decision that was made for DataSocket a long time ago. If you read from a dynamic data item that has not yet been written to, you will get the default data value for that item. That is, you will get either a FALSE, 0, or "" as a value. The timeout is there as more of a way to know if the network is down or not.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,638 Views)