Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

Lag in duel VISA read write program plotting to waveform chart

$
0
0

Hello, Hopefully someone here knows the solution, which may be hardware, but I don't know. 

 

I have two Ohaus digital weight scales that I need to plot data from simultaneously via RS-232. My biggest issue is that one scale works fine, and plots the change in weight in real time, whereas the other, there is a large delay that gets worse over time. 

 

Also, sometimes the scale outputs nothing for multiple loops, which my code reads as zero.

The scale, when it sends nothing, sends two bytes as \r\n. So at minimum, it sends two bytes no matter what. When there is a number, it's 9 bytes. It has a max weight of 8,200 grams and has been set to output numbers only so I don't need to worry about the unit 'g' at all. 

 

Any idea why one works in real-time, but the other builds up a lag? 

 

Thank you for the help in advance. 


Viewing all articles
Browse latest Browse all 5565

Trending Articles