09-13-2016 09:57 AM
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?
09-13-2016 10:08 AM
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?
09-13-2016 10:11 AM
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://digital.ni.com/public.nsf/allkb/022A3C75A1F36DFF86256E6200705996