Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a VI_ERROR_RSRC_NFOUND error when I call the viOpen() function

Hello everybody,

I try to map a VME VISA module.
At the begining I call the
::viOpenDefaultRM(&defaultRM))
this call returns VI_SUCCESS.
The next call is:
::viOpen(...)
this call returns VI_ERROR_RSRC_NFOUND.

Thanks for your help,
Gelu
0 Kudos
Message 1 of 2
(5,655 Views)
You should check to see if you have connectivity to your VME device through either Measurement & Automation Explorer (MAX) or VISA Interactive Control (VISAIC). With VME devices, you need to go through a procedure to add them to your system in MAX since they have no configuration registers to help detect them independently. In VISAIC you can test communicating with the device by opening a session to the device and using the tabs to select the appropriate I/O.

For your program, I would recommend using the examples found in your VXI driver to guide you in correct syntax. These examples are found in C:\Program Files\National Instruments\VXI\NIVXI API\win32. If they are not there, you may need to alter your NI-VXI driver installation in Add/Remove Programs, with
the option selected to include these API files in your driver installation.

Ryan Tamblin
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,655 Views)