LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Tension Test Data From a Serial Port

Hi, I created a small program to read data coming in from a tension tester through a RS 232 serial port, this is the first part to a much larger program, at the moment when i run the program and exert force on the tension tester, the force reading changes on the tension tester but the force on the labview program stays at 0 Lbs. The program is attached below, pls let me know what i need to fix to get the force on the labview program to change as it changes on the hardware.

0 Kudos
Message 1 of 4
(232 Views)

There is no program attached.

Please also save for previous version.

 

It probably stays 0 because the VISA read time-outs. 0 is the default value for a numeric indicator.

0 Kudos
Message 2 of 4
(226 Views)

can you confirm that your program is receving the proper data from the tester ?

 

Check the serial port configuration, wiring (sometimes ports on serial port are inverted), sometimes they require other wires(besides Rx/Tx/GND)

 

0 Kudos
Message 3 of 4
(200 Views)

@LVNinja wrote:

can you confirm that your program is receving the proper data from the tester ?

 

Check the serial port configuration, wiring (sometimes ports on serial port are inverted), sometimes they require other wires(besides Rx/Tx/GND)

 


One way that I test Serial Connections is to open MAX, find the Serial Line that I want to check, and open a Test Panel.  This lets me set parameters for the Serial Port, send "Test" messages, and try to read the responses.  If it doesn't work "manually" with MAX, it probably won't work "programmatically" with LabVIEW.

 

Bob Schor

0 Kudos
Message 4 of 4
(196 Views)