LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 commulication

how do make a connection through RS-232 serial port with the computer?
do i need a DAQ card that can connect RS-232 or i can just connect my
device to computer's serial port and make the computer communicate
with my instrument? if i don't need DAQ card to do so, how do make
the computer talk to my instrument through RS-232?
thanx
0 Kudos
Message 1 of 2
(2,602 Views)
LabVIEW has VISA, a general purpose interface tool, and CLASSIC serial port handlers.

VISA is more efficient at runtime, but requires drivers to be installed (if you build an executable to be run outside the development system).

CLASSIC drivers use the built-in serial handlers.

No DAQ card is necessary, unless you want more ports than are built in to your system (I've programmed a system with 32 serial ports).

Use VISA CONFIGURE SERIAL PORT to specify baud rate, parity, etc.

Use BYTES AT SERIAL PORT to detemine how many bytes have been received.

Use VISA READ to fetch that number of bytes.

Use VISA WRITE to output bytes to your device.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 2
(2,602 Views)