Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

wrong Default Resource Manager session

Hi, I have the following problem. In NI MAX I can see my miscellaneous visa resources and the devices are communicating. When I want to use MATLAB, the visa object won't open at all, because of the wrong identifier for the Default Resource Manager session. Does anyone know a solution to the problem?

 

NI_VISA_MATLAB.png

 

NI_VISA_VISA_Test_Panel.png

 

 

  

 

0 Kudos
Message 1 of 4
(478 Views)

That identifier doesn’t look like your problem. The numeric value is just a pointer like value that will frequently have a different value depending on which application opens the VISA session and several other factors.

 

The main difference seems to be the use of viParseRsrcEx instead of viParseRsrc but it’s not clear to me how that would affect your situation.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 4
(424 Views)

According to the error 0xBFFF00A5, the interface number (GPIB1::1::INSTR) is wrong. But I guess the problem is that I'm using a GPIB adapter from Keysight. I use VISA Tulip Passports so it should be OK. I don't understand that it works through NI MAX and the interface number is OK, but it has a problem in MATLAB.

0 Kudos
Message 3 of 4
(393 Views)

Maybe Matlab bypasses NI-VISA and interfaces directly to HP IOlib when it detects that being available?

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(369 Views)