Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port communication

I have been trying to use the serial communication vi's but they don't work. I have already tried using hyperterminal which does work. I don't understand why I cannot use Labview to communicate
0 Kudos
Message 1 of 3
(3,315 Views)
Could you be a little more specific? Are you using the Serial Compatibility VIs or the VISA VIs? Did you initialize the serial port? To the same settings as hyperterminal? Did you remember that hyperterminal sends EOLs automatically and that you have to append them to your LabVIEW strings that you are sending?

We need more information or attach your VIs for us to look at.

Rob
Message 2 of 3
(3,315 Views)
Hi

I used serial port to control my instrument before and the following are my suggestions.

1.Make sure the configuration of serial cable is suitable for your situation like DTE and DCE. This is confused to me at the begining.

2.Make sure the port setting is correct between both machine like baud rate, start/stop bit, parity bit and data bit.

3.Add LF(line feed) or CR(carriage return) after your command is required. You can find the solution from the following knowledgebase.
KnowledgeBase 21LCJ1LI: Why Doesn't My Instrument Respond to Commands?

Bill.
0 Kudos
Message 3 of 3
(3,315 Views)