Instrument Control (GPIB, Serial, VISA, IVI)

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

IO Trace: What is VISA Attribute 0xBFFF0002?

Résolu !
Accéder à la 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 Compliments
Message 1 sur 3
4 846 Visites
Solution
Accepté par l'auteur du sujet 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 sur 3
4 819 Visites

Fantastic, thanks very much!

 

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

 

Jim

0 Compliments
Message 3 sur 3
4 782 Visites