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.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting MAX to recognize my USB/Serial converter?

Hi all, I'm trying to communicate with a machine that uses serial, connect to it through this USB/serial converter. I'm running Windows 10, I have LabVIEW 2015 SP1 32 bit, and NI MAX v15.3. I've installed the drivers that came with the USB/Serial converter. I've updated all the things I can in the NI update service. The USB/Serial shows up in my device manager as COM3.

 

I've communicated with the machine with this USB/Serial converter on this computer, using Python, so I know it works, the machine works, and I can communicate with it on this machine. However, getting it to work with MAX/LV is giving me a lot of trouble.

 

With it plugged in, when I go to MAX, under "devices and interfaces", there's a VISA error:

 

0xBFFF003A (VI_ERROR_INV_SETUP)

viFindRsrc returned 0xBFFF003A (Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).)
Please make sure VISA is properly installed on this system.
Possible causes for this error:
1. More than one Passport may be attempting to claim the same resource. You can try disabling Passports to figure out which Passport is causing the error.
2. You have connected multiple unconfigured plug-and-play devices that have the same resource name. For example, the vendor ID and serial number may be the same.

By default, all my passports were enabled. If I uncheck the serial one (NiViAsrl.dll), and restart MAX, the error goes away but nothing shows up under devices and interfaces.

 

If I put that one back and instead disable the USB passport, now it shows up under D&I as ASRL3::INSTR "COM3". However, when I try communicating with it in the VISA test panel, I just get timeout errors. Likewise if I try with a simple LV VI.

 

If I only disable the PXI passport, ASRL3::INSTR also shows up, but I still can't communicate with it. Likewise with the Tulip passport.

 

What's going on? I know I'm 90% of the way there because I've actually communicated with the machine on this PC, but for some reason MAX doesn't want to play with it. The termination character for this machine is \r, carriage return, which I've tried setting in MAX, and my LV VI, but it doesn't seem to make a difference.

 

What can I do?

 

 

 

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

Hi,

 

Digging a little bit I've stumble with a couple of resourses on the web that are related to the error you are seeing, please give them a try and let me know if it works:

 

Error -1073807298 When Using a Third-Party USB-Serial Adapter

http://digital.ni.com/public.nsf/allkb/0C2ABA463217342686256E2E006DF187?OpenDocument

 

Error 0xBFFF003A (-1073807302) When Using a VISA Event With VXI

http://digital.ni.com/public.nsf/allkb/DDE6A6A773A4B1DC86256BC0005C8A8F?OpenDocument

 

Using Virtual COM Ports or Third-party USB-to-Serial Adapters with VISA in MAX

http://digital.ni.com/public.nsf/allkb/6E1922B526572CB8862571AA00544057?OpenDocument

 

Let me know if this is helpful.

 

LuisG

 

 

 

 

 

 

 

 

 

0 Kudos
Message 2 of 2
(3,130 Views)