LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read numerical data with visa serial read

Hi!

I have bidirectional communication, but i dont know the exact
number of streambytes from hardware. The hardware basically sends bytes until the PC tells
it not to!

/Fredda
0 Kudos
Message 11 of 12
(474 Views)
Create a while loop that contains the Bytes At Port function. When the function returns a number greater than zero, exit the loop and call the VISA Serial Read function to read the bytes. Put all this in an outer loop to repeat over and over until a stop button is pressed or some other stopping action.
- tbob

Inventor of the WORM Global
0 Kudos
Message 12 of 12
(465 Views)