05-02-2017 03:32 PM
Hello,
I'm having a problem getting the weight data (load cell) from my pallet scale to read into LabVIEW. I'm sure I'm trying to configure the interface incorrectly, however I can't seem to find the right settings.
The scale's output is RS-232, and I'm using a RS-232 to USB converter. Using the scale manufacturer's software, I can read the scale data in real time. I've attached the .vi I made to try and accomplish this.
When I run the program with Highlight Execution I always get the error: (-1073807360) at the configure port step. If I change the parity to ANYTHING other than none the code changes to: (-1073807330) .
Any help would be greatly appreciated!
Andrew
Solved! Go to Solution.
05-02-2017 03:51 PM
Hi,
We would need to know more about the scale to be able to help. What kind of scale is it?
05-02-2017 04:00 PM
It's a Triner TSM Low-Profile Floor Scale.
http://www.floorscalesdirect.com/tsm5-44-b-ntep-floor-scale.aspx
The Digital indicator it uses is the TS-700 MS.
05-02-2017 05:10 PM - edited 05-02-2017 05:11 PM
According to the manual http://www.trinerscale.com/DOCS/OperatingGuide_TS-700_Series_V2.0.pdf
Your flow control setting is wrong
Also, you don't need to use bytes at port in your loop. Visa is already configured to use 'LF' termination. Just put the byte count to a value larger than you expect from a single read.
05-03-2017 05:38 AM - edited 05-03-2017 06:04 AM
That worked great to clear that error!
I'm not getting any errors now, but still no luck on getting the data to display from the scale.
Am I correct in thinking the output from the VISA Reader is a string?
05-03-2017 06:01 AM
@aricard60 wrote:
I'm getting any errors now, but still no luck on getting the data to display from the scale.
What error? Do you have code you can share?
05-03-2017 06:05 AM
I apologize cross, I mis-typed. I edited my post to reflect the situation.
Andrew
05-03-2017 06:17 AM
The only way to get through the VISA Read command error free is if the byte count is set to zero. Not sure if this is correct.
05-03-2017 06:28 AM
@aricard60 wrote:
The only way to get through the VISA Read command error free is if the byte count is set to zero. Not sure if this is correct.
Definitely not. That is telling the VISA Read to read nothing. Again, we need to see code and we need to know what errors you are getting.
05-03-2017 06:35 AM
Attached.