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
(240 Views)

Hi romiadam,

 

use the cheaper USB option.

But use the somewhat better converters with FTDI chips inside!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 7
(237 Views)
Highlighted

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

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
Message 3 of 7
(209 Views)
Solution
Accepted by 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. 

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 4 of 7
(175 Views)

Thanks for advice regarding to FTDI, GerdW.

0 Kudos
Message 5 of 7
(130 Views)

Thanks for information Yamaeda

0 Kudos
Message 6 of 7
(128 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
(125 Views)