LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview serial communication with RS 232

Hello,

 

I am new to LabVIEW and wanted to know how to get started with serial communication. I have a usb-serial adapter which shows up as a COM port. I want to send custom pulses through the COM port and read in pulses in response not using any known protocall. Is this possible using LabVIEW, or will I have to create a separate program to do this?

0 Kudos
Message 1 of 3
(2,987 Views)

If you are trying to make a cheap DIO, you would have better luck with a parallel port.  A serial port that you are likely to buy uses a UART chip, which is a specific protocol for sending bytes between periferals.  Or am I completely misunderstanding what you are trying to do?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,979 Views)

There are plenty of examples in labview to show how to use the serial port.  In labview go to help/find examples and search serial or visa.  Also if youre trying to send pulses you can set the state of the DTR and RTS lines. The links below should help get you started.

 

http://digital.ni.com/public.nsf/allkb/1ECEFAA7AD52994986256966005356EA

 

http://forums.ni.com/t5/LabVIEW/VISA-Serial-Setting-DTR-State-and-RTS-State-to-quot-Unasserted/td-p/...

 

http://digital.ni.com/public.nsf/allkb/022A3C75A1F36DFF86256E6200705996



-Matt
0 Kudos
Message 3 of 3
(2,977 Views)