From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial port on laptop for serial communication

Solved!
Go to solution

Hi,

 

For I student school project, I would like establish a communication between labview and PIC micro controller via serial port. I will use only Rx, Tx (please see the attached picture). My notebook does not have serial port. There are two options:

1. Using the standard USB serial R232 adapter in to USB port

2. Using a serial adapter in to ExpressCard slot which creates native serial port

 

I do not know which of these to buy.

The option 1 is cheaper, but not sure  whether it will works (whether Labview will detect that serial port).

The option 2 theoretically should work (but not sure too), because the manufacturer states ("will add a serial COM port as if you had a native port on your laptop")

 

Which option do you recommend me. Anyone of you has tried the serial communication using the USB-Serial adapter or ExpressCard adapter on laptop?

 

Thanks for help.

0 Kudos
Message 1 of 7
(2,878 Views)

Hi romiadam,

 

use the cheaper USB option.

But use the somewhat better converters with FTDI chips inside!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(2,875 Views)

I've used many USB serial dongles, they generally work fine.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 7
(2,847 Views)
Solution
Accepted by topic author romiadam

Well they will be the same from a LabVIEW programming aspect, as both of these devices will install a virtual serial port.

 

You use NI-VISA to access a serial port in LabVIEW exactly the same regardless of that serial port being a hardware RS232 serial port on 220h IRQ2  or a USB device that installs a virtual serial port. 

 

Also beware of cheap USB to serial converters, many of these have counterfeit Prolific chip sets in them. 

 

Recent Prolific drivers can detect the counterfeit chips and either not work at all or worse yet cause intermittent failures.

 

http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=155&pcid=41

 

I recommend only buying FTDI USB to Serial converters from a reputable source like Digi-Key.

https://www.digikey.com/product-search/en/cable-assemblies/smart-cables/1574108?k=FTDI

 

Also if you look closely you can buy these USB to Serial devices with a 3.3V or 5V TTL output eliminating the need for the MAX232 in your circuit. 

========================
=== Engineer Ambiguously ===
========================
Message 4 of 7
(2,813 Views)

Thanks for advice regarding to FTDI, GerdW.

0 Kudos
Message 5 of 7
(2,768 Views)

Thanks for information Yamaeda

0 Kudos
Message 6 of 7
(2,766 Views)

, your answer completely cover my question. The 3.3V or 5V version is a good point to save MAX232. I do not need for this project a standard RS232 logic. Thank you too.

0 Kudos
Message 7 of 7
(2,763 Views)