LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Low-level non VISA serial communication question: LV5.1 NT4.0

I am attempting to communicate with an instrument through an RS232C
port. I've been able to talk to it through Hyperterminal (as suggested
by the LV website) but am not able to get the basic serial communication
VIs to work with it. Under LV, I've initialized the port with the
proper baud rates, parity, etc. I issue a simple serial write VI,wait a
couple of seconds, and read the number of bytes present in the buffer
with the serial read. The command string is properly terminated with a
carriage return to the best of my knowledge.

Result: I generally get one or two of the characters I sent out in the
command string but not the "correct" response I get if I sent the exact
command through Hyp
erterminal. I think LV can initialize the port
properly as I'm able to do a loopback test successfully. I'm running
without any handshaking. The manufacturer of the instrument suggests an
"Echo ON" handshaking method but that is not part of the LV serial VI
options as best as I can tell.

Suggestions appreciated. I'd rather not use VISA since it adds overhead
and I've found the documentation to be impenetrable. By the time it gets
through describing all the layers, protocols, and whatnot, I've
forgotten the objective.

--- Ravi Narasimhan


--
Ravi Narasimhan
Department of Physics and Astronomy, UCLA
http://www.physics.ucla.edu/~oski
0 Kudos
Message 1 of 1
(3,706 Views)