Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

viParseRsrcEx returns empty string for rsrcClass, etc.

NI VISA 3.0, Windows XP. ViParseRsrcEx returns empty strings for rsrcClass,expandedUnaliasedName,and aliasIfExists. Session (from viOpenDefaultRM) and instrument description (from viFindRsrc) look good.
Max indicates alias exists. Also, how do I interpret the number returned in intfType?
0 Kudos
Message 1 of 2
(3,130 Views)
A few questions:
1) What resource string are you using?
2) What API are you using? (C standard, COM standard, Measurement Studio C++, etc.)

Since you are using XP, you might want to upgrade to NI-VISA 3.2 and see if that helps.

The number returned in the interface type is an enumeration defined by the VISA spec - a different number for each type, such as GPIB, VXI, TCPIP, etc. See the NI-VISA Help for VI_ATTR_INTF_TYPE for details.

Dan Mondrik
National Instruments
0 Kudos
Message 2 of 2
(3,130 Views)