LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from serial-usb converter?

I have an oxygen detector with serial out

 

link to the owners manual with serial info 

http://www.yokogawa.com/an/download/manual/IM11M10B01-01E.pdf

 

 and I want to hook it up to my laptop to record the data but i am having trouble as my laptop has no serial port. so i bought this:

 

http://www.newegg.com/Product/Product.aspx?Item=N82E16812120901&nm_mc=OTC-Channel&cm_mmc=OTC-channel... 

 

How do i read from the usb converter? I can program serial in with the visa on an old pc no problem, but this is giving me some trouble. Any advice would be appreciated thankyou.

0 Kudos
Message 1 of 13
(2,929 Views)
Using a converter is no different than using a built in port. Saying you have ' trouble' is an inadequate description. Provide details such as error codes and messages.
0 Kudos
Message 2 of 13
(2,921 Views)

And install the VISA driver 😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 13
(2,916 Views)

I have installed all the drivers i think. I guess my problem is getting started. I don't know how to tell labview to look for a plugged in usb device. Normally with serial I just use the serial configure block and take it from there, but i can't seem to find one for usb, and it does not report anything back for the converter.

0 Kudos
Message 4 of 13
(2,906 Views)

Does the new COM port show up in your PC's Device Manager?  If not, you didn't install its drivers.  If you see it, note the COM port number so you can set it in LabVIEW VISA.  Beware, it could be assigned to any random COM port number and sometimes it MAY get re-assigned a new COM port after a reboot.  This is not always the case but those USB to COM converters are a notorious source of trouble for many people.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 5 of 13
(2,901 Views)

A serial port, even plugged through a serial-USB converter is usually seen just as a serial port.

 

So:

1) Find out with MAX the serial port name (e.g. "COM2"). Note: in the description of the serial port you may find some hint about it coming from a USB converter.

2) Use the VISA Vis as usual pointing to the serial port you have just found

 

Marco

 

0 Kudos
Message 6 of 13
(2,900 Views)

Where would the number be? I am in the devices and printers section on the control panel on windows 7 and if i hit properties i can see this for the com name maybe? Port_#0004.Hub_#0005

0 Kudos
Message 7 of 13
(2,896 Views)

I just ran the driver setup wizard in visa and got this error for the keyspan dongle.

0 Kudos
Message 8 of 13
(2,893 Views)

No.  You're looking for COMxx where xx is a number assigned to the port.  I don't use Win7 but there must be a Device Manager.  In WinXP it's right-click My Computer > Properties > Hardware > Device Manager > Ports.  A Win7 user will have to help if that doesn't get you there.

 

As noted above, NI MAX also provides this info: Devices and Interfaces > Ports.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 9 of 13
(2,891 Views)

@superomario wrote:

I just ran the driver setup wizard in visa and got this error for the keyspan dongle.



That might be bad news.  My company actually assigned an engineer to buy every USB to COM converter he could find and test them all with as many apps as possible.  There were many models that were problematic.  You might need to just try another brand (or two (dozen!)).

 

Still, check the Device Manger or MAX just in case you get lucky...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 10 of 13
(2,889 Views)