LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read serial data

Respected sir,

 

I am trying to read the serial data using labview VISA. but, after running the program, time out error will be shown, if there is no data in that port. so, I am asking how to check whether the data is available on that port or not before reading. if it is availale only then we can read the data.

 

Thanking you.

 

kind regards,

K.Jegan

0 Kudos
Message 1 of 2
(2,507 Views)

You can wire the VISA wire to a property node and select the bytes at port property to know how many bytes are waiting. You can also drop it already selected from the palettes (it's called "VISA Bytes at Serial Port"). Note that you will probably have to call it in a loop until you get the number you want and that you will also need another way to stop the loop if you don't get the data.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,504 Views)