06-08-2012 01:02 PM
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.
Solved! Go to Solution.
06-08-2012 03:07 PM