LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to speed up reading from VISA serial ie. read only when buffer is ready?

I have a remote device which sends serial data, terminated with CR about once per second.  ( Transmitting each line takes about 1 second, and this is fixed)

 

I am reading the packets using VISA serial.

however, this limits the loop time of my entire VI to about once per second, as the VISA read sits waiting for the serial data.

 

There must be a way to poll the VISA resource to find out when the entire line of serial data has completed, and then do the VISA read only when it's ready.

 

I can't figure out how to arrange this.

 

 

Any ideas or example code ?

 

William Reed

0 Kudos
Message 1 of 3
(2,585 Views)
Let VISA read work in an other parallel Loop.
0 Kudos
Message 2 of 3
(2,580 Views)
thanks - I am just looking into that now.  I know there must be a way. 
0 Kudos
Message 3 of 3
(2,578 Views)