Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VI_ERROR_RSRC_BUSY

I have LabView 6.0, Run-Time Engine 6.0.1, VISA Interactive control 2.6 and VISA Run-Time 2.6.0 and I need to control a HP34401A via seria port. When I run the VI it works properly, but when I built the application, it gives the message error VI_ERROR_RSRC_BUSY. I've tried to build a very small code just to initialize a visa section and I didn't have success. I was wondering if someone could help me.
0 Kudos
Message 1 of 2
(4,395 Views)

In the NI-VISA 3.0 (the next version to 2.6.x) README text, I found the following description:

For a Serial INSTR resource, viOpen will now open a port if the process
that had been using that port exited ungracefully (such as with Ctrl-C).
The previous behavior had been that viOpen would return VI_ERROR_RSRC_BUSY.

Although I don't know if this is concerning to your problem, try to check the following:

1) Check if your app does call viClose (VISA Close) function before exiting the app.
2) Try to upgrade NI-VISA 3.x or later.

Makoto

 

Message 2 of 2
(4,383 Views)