10-23-2014 03:33 PM
Hi All,
Is there a way (CVI API) to get the GPIB address of a GPIB instrument from an alias or a VISA resource name defined in MAX?
Thanks,
Rick.
10-23-2014 11:51 PM
Open the resource , check if if is really a GPIB resource by reading its VI_ATTR_INTF_TYPE attribute, then read the VI_ATTR_GPIB_PRIMARY_ADDR ( and maybe VI_ATTR_GPIB_SECONDARY_ADDR) attributes with viGetAttribute().
10-29-2014 10:06 AM
Thanks mkossmann, I was actually looking for an api that would get the gpib address from the visa resource name defined in MAX which has already scanned in the gpib instruments.
I guess it may not be good that way even if there's such an api because instrument gpib address might get changed and if MAX has not been asked to rescan then the address will be out of sync.