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

RS-232 Inconsistent Reading

$
0
0

Hi,

 

I have a scale connected to RS-232 to record the weight change respect to time. Unfortunately, I am getting inconsistent string output which does not conform with the format string I assigned. I set the format string based on typical reading as below:

 

Typical String:

"ST,GROSS       100 g "

 

Output String when Error Occurs:

"GROSS      100 g "

"SS     100 g "

"g "

 

For typical string, output byte size is always 22. I am thinking something is wrong with my VISA property. If you have any suggestions, please let me know.

 

FYI, if you are counting to see typical string has 22 byte size, it might not. I put arbitrary number of spaces just for this post. I am also running this with 2 different scales at the same time in the same VI. Both having 2 separate VISA open/read/write/close. (Think of it as a duplicate except for sharing a same while loop.) 

 

Please leave a comment or question. I would appreciate your feedback.


Viewing all articles
Browse latest Browse all 5627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>