Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

VISA Error 0xBFFF00A5 (VI_ERROR_INTF_NUM_NCONFIG) encountered via IVI .NET when connecting to Instr through ADlink USB-GPIB3488A

$
0
0

Hello,

I am trying to connect to my instruments using the ADlink USB-GPIB3488A converter.

When using NI-MAX, everything is fine. The instrument is detected through the USB to GPIB converter and I am able to communicate with.

But then, my goal is to automate measurements using Matlab.

In this aim, I am using IVI .NET SW components to access the instruments. And here, I encounter the error mentioned in the title.

I launched the NI IO Trace utility to see what happens.

 

In the case I use NI-MAX, here are the captured traces: file = CaptureUSB3488A NI-MAX.txt

Here the call to viParseRsrc function returns OK.

 

I just close NI-MAC, open MATLAB an launch my script.

The M function is nearly simple at the moment :

     function obj = VISA_Instr(resourceString)
          % Initiates a new VISA connection defined by resourceString (ex: "GPIB0::4::INSTR")
          assemblyCheck = NET.addAssembly('Ivi.Visa');
          Session = Ivi.Visa.GlobalResourceManager.Open(resourceString);

          ...

 

In this case, here are the captured traces: file = CaptureUSB3488A Matlab IVI_NET.txt

Here the call to viParseRsrcEx function returns the error.

I am just calling Ivi.Visa.GlobalResourceManager.Open() with "GPIB0::4::INSTR" as argument.

Shall I do something prior to this call?

How could I explain the difference between the 2 session opening (via NI-MAX or via IVI .NET interface)?

 

As everything is working fine with NI-MAX, I assume I am doing something wrong, but did find what?

 

PS : I have installed latest NI 488.2/NI-VISA/NI-ICP 20.0 packages. Thus, I should have everything up to date.

 

Thank you in advance for your help and advice.

Best regards

 


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>