06-07-2024 10:11 AM
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.
06-07-2024 10:30 AM
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.
06-07-2024 01:33 PM
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)
06-07-2024 01:40 PM
@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