LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication through RS232c serial interface using labview

i am trying to communicate with a device through RS232c serial interface using labview 6.1....i have tried to run the example "Serial communication.vi" provided in 6.1 and it doesnt work....do i need any special hardware or do i need to configure my hardware to communicate through RS232c...
thanks in advance
shri
0 Kudos
Message 1 of 4
(3,205 Views)
You don't need any other hardware to communicate with your device. Check the documentation for your device to ensure you have the right cable, port configuration (that of device and Labview must match), termination character, etc. Another thing you can do is to test communication with your device with applications like Windows HyperTerminal.
0 Kudos
Message 2 of 4
(3,205 Views)
Jus an add-on the above,

Some instruments having remote control options for either RS232 or GPIB. Do check your instrument's I/O setting to ensure that it is set to as RS232 communication.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 4
(3,205 Views)
Seems like I placed a small (maybe 30ms) delay at the end of the serialcommunications.vi structure.. for some reason my PC didn't like running as fast as it tried to go. Also look into the actual serial communication.vi and open the vi's inside it - check that the port setting (0 or 1) are ok, the baud rate (probably 9600) are ok. I'm running with only three wires in my application, TX, RX and Common. The PC may need to be rebooted to enable the com port - or use device manager and see if it says the com ports 0 and 1 are both OK..
Try buildinga loopback plug with TX to RX, RX to TX, and Common to Common and see if hyperterminal (or other serial communications program works - there is also Loopback.VI in the NI library somewhere that can be used. Good Luck!! Dave

Message 4 of 4
(3,205 Views)