From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IO Trace: What is VISA Attribute 0xBFFF0002?

Solved!
Go to solution

Hi all,

 

The Question:

Can someone tell me what VISA attribute 0xBFFF0002 correlates to so that I can track the bug?

 

The Context:

 

This week I've been asked to help troubleshoot some odious bugs that others are encountering.

 

In continuing that theme, I've got a VISA IO trace that someone has handed me, and there are several lines with an invalid session/reference error.

 

That error occurs when "VISA Get Attribute (0xBFFF0002)" occurs. I really need to know what attribute it's trying to fetch and a hex code doesn't tell me anything by itself.

 

 I saw that a couple of other such requests in the past went unanswered - I'd greatly appreciate any input.

 

Thanks,

 

Mr. Jim

0 Kudos
Message 1 of 3
(4,207 Views)
Solution
Accepted by topic author Mr._Jim

from visa.h file:

 

#define VI_ATTR_RSRC_CLASS (0xBFFF0001UL)
#define VI_ATTR_RSRC_NAME (0xBFFF0002UL)
#define VI_ATTR_RSRC_IMPL_VERSION (0x3FFF0003UL)
#define VI_ATTR_RSRC_LOCK_STATE (0x3FFF0004UL)

.....

Message 2 of 3
(4,180 Views)

Fantastic, thanks very much!

 

Knowing where to look is always a huge part of finding the solution. Much appreciated.

 

Jim

0 Kudos
Message 3 of 3
(4,143 Views)