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,839 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,812 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,775 Views)