LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can use VISA Read and the Wait Function properly

I am trying to read an instrument. The is a simple instrument because all it does is feed data; there aren't not any write commands whatsoever. I am trying to read the instrument in time intervals. It seems to work fine except for the one second interval. Every 5 seconds I don't get reading and there are zero bytes at the serial port. Any suggestions on what I should do?
0 Kudos
Message 1 of 3
(2,541 Views)
One suggestion, don't try to read zero bytes.
0 Kudos
Message 2 of 3
(2,540 Views)
There is a Visa serial VI called VISA Bytes at Serial port. Use a comparison node for =0 and wire this to a case structure. In the false case, read your data.
Message 3 of 3
(2,534 Views)