Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI .NET ResourceManager Find Method response incomplete?

Hello,

 

I am trying to use the IVI .NET VISA SW components to interface my Instruments with MATLAB.

 

Using NI VISA Interface Control SW (and clicking "refresh"), I am able to list and see all the interfaces.

NI_VISA_Interactive_Control.JPG

And the NI IO Trace acquisition shows 8 interfaces :

NIOtrace_VISA_IC.JPG

I am interested in the last one in the traces: the instrument on GPIB...

 

Now, I am using the IVI .NET VISA SW component.

Running the Find() method of the GlobalResourceManager class, the result is different !

The number of detected interfaces is reduced to 6 instead of 8?

I have lost the GPIB ones, unfortunately.

 

I am using : Ivi.Visa.GlobalResourceManager.Find('?*') or Ivi.Visa.GlobalResourceManager.Find() - with same result.

And when running this line, the NI IO trace shows:

NIOtrace_IVI_NET.JPG

 

Only serial interface are listed here and no longer GPIB ones.

What is the difference between what is done by the NI VISA interactive control SW and the ResourceManager.Find() method I am trying to use?

Shall I do something different, what am I doing wrong?

 

Thank you in advance for your help and advice.

Best regards,

 

Laurent

0 Kudos
Message 1 of 3
(3,133 Views)

Hi lmart,

 

What version of NI-VISA and NI-488.2 did you install on your computer?

Did you try to open a connection to the GPIB instrument by using the name displayed in NI-MAX?

Did you try to research specifically the GPIB using this expression: GPIB?*INSTR ?

 

Regards,

Clement

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

Hi Clement,

 

I have installed the latest versions : NI-488.2 20.0 / NI-VISA 20.0 and NI-ICP 20.0

I should be up to date regarding NI drivers and NI SW components.

Using NI-MAX, I am able to detect my instrument on GPIB::4::INSTR, then I am able to open a VISA connection and send + receive commands => with NI-MAX and NI VISA Interactive Control SW everything works quite fine.

But using .NET interface with MATLAB, when trying to open a connection to the same GPIB address = 'GPIB::4::INSTR' as mentioned in NI-MAX, I encounter an error. The IVI .NET Open() call did not succeed => VISA Error 0xBFFF00A5 (VI_ERROR_INTF_NUM_NCONFIG) returned as error.

I opened a dedicated thread on this error too => https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VISA-Error-0xBFFF00A5-VI-ERROR-INTF-NUM-NCON...

 

I also tried many .NET Find() calls with numerous query strings ('?*', 'GPIB?*INSTR', ...) but here again, no success.

It is like .NET interface is filtering in some way the USB-GPIB adapter ???

 

Many thanks for your help.

I am still trying to understand the issue, because everything is OK with NI tools 😞

 

Regards,

Laurent
0 Kudos
Message 3 of 3
(3,064 Views)