Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple serial data stream inputs

Solved!
Go to solution

I am trying to display the outputs from two different RS-232 instruments that are operating asynchronously with no handshaking.  Each meter (one a weight scale and the other a DVM) are updating at different rates.  I would like to sample them every 100mS and display the values at that time.  The problem appears to be that when I use the attached vi the DVM is putting more data in the buffer than the scale. When the while loop pulls data out of the buffer it is stale and the two data streams are way out of sync at that point.

 

I have tried using the VISA flush buffer but have not been able to get it to work.

 

 

What I need to do is basically -

 

When timer triggers the while loop, go get the most recent data from each instrument, and display the data.  I do not need anything that has been transmitted prior to that time.

 

0 Kudos
Message 1 of 2
(2,791 Views)
Solution
Accepted by larosts

Duplicate post


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,786 Views)