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: 

USB<->RS232 VISA Error under Mac OS X

I'm using a IOGear USB<->RS232 adapter (GUC232A) to get a serial port on a Mac running OS X. The serial port seems to work fine in LabVIEW 7 *most* of the time. Sometimes I get a VISA error when performing a VISA write: 0xBFFF003E and the "Explain Error" text is "Could not perform operation because of an I/O error". I can only get back in business by closing the VISA port and re-opening it.

"...because of an I/O Error" doesn't really give me enough information to troubleshoot this problem. Is it a VISA driver thing? Is the the USB<->RS232 thing? Is it a problem with my code? What, specifically, is the I/O error? If this is simply a "catch-all" error code, can you at least figure out what the problem *isn't* caused by?


More info - the error doesn't occur in my Windows version of code, only the Mac version, and I used the same USB<->RS232 dongle.

JIL
0 Kudos
Message 1 of 5
(3,894 Views)
Hello JIL -

What version of VISA do you have installed on each PC? The current versions for each operating system can be found here.

Have you reviewed the document Using NI-VISA 3.0 to Control Your USB Device? It is a very informative document that may help.

If neither of these suggestions work, please let me know. This appears to be an unknown problem and I can file a corrective action request with our R&D department so it can be further investigated.

Have a great day!

Becky B.
Applications Engineer
National In
struments
Becky Linton
National Instruments
Field Engineer
Office: 734-464-2463
Cell: 248-709-2822
Email: becky.linton@ni.com
0 Kudos
Message 2 of 5
(3,894 Views)
Hi BeckyB,

Thanks for replying to my post!

I'm using NI-VISA 3.0 on the Mac; let's just worry about the Mac since the PC version works fine.

I guess I wasn't clear in my post; our device is a serial device, not a USB device. We are using a USB<->RS232 converter (from IOGear) on the Mac to create a serial port on the Mac (since Macs don't come with one). Since our device appears to LabVIEW 7 as a serial port, the "Using NI-VISA 3.0 to Control your USB device" isn't germane to this problem.

JIL
0 Kudos
Message 3 of 5
(3,893 Views)
Hi Jil,
What probably is happening is that your instrument is not in a state to accept commands. Try running an example VI from the help-> find examples called labview<->serial.vi and see if you observe the same behavior. If you do not see the error, then we know that the problem does lie in your code. If not, then we have to start troubleshooting the problem from a hardware perspective.
Email me back incase you have any other questions.
Good luck and have a great day!
Koninika
National Instruments.
0 Kudos
Message 4 of 5
(3,893 Views)
Jil,

I have the same problem at Keithley. I am running NI-VISA through a USB-232 adapter. Issue is that I am having timing errors. I am unsure if it is NI-VISA Ver. or the Adapter. What I am trying to do is have OS create a Serial COM and have NI-VISA pick it up. Did you have any success?
0 Kudos
Message 5 of 5
(3,893 Views)