11-23-2011 04:16 AM
I am looking for a way to find out what slot my DMM's are in and their model and S/N.
So far I have been able to get back the info for NI-Switch devices, DAQs and a range of Pickering Cards.
For the NI-DMM’s I have so far only been able to get the S/N model and name via the IVI Drivers.
I have attached the code I have so far so you can get a better idea of what I am trying to achieve.
Solved! Go to Solution.
11-23-2011 02:50 PM
There is a VISA Instrument property that gets PXI device settings, among them is the Slot number. Use Visa Open and a Property Node to get the slot number. Would that work? (sorry, can't get to my LabVIEW right now to be more complete).
11-28-2011 09:09 AM
Already tried this, when I do a VISA open I can't See my PXI-4070 DMMs to be able to use that method, I have used that method on all my Pickering cards.
In MAX the DMMs have VISA aliases and are enable so I don't see why I shouldn’t be able to do as you suggested.
11-28-2011 12:50 PM
Use "niModInst Open Installed Devices Session" for NI-DMM
Then use "niModinst Get Installed Device Attribute" to get the slot number
Returns an integer attribute specified by the attribute ID parameter for a device specified by the session in and index in parameters.
Slot Number—the slot (for example, in a PXI chassis) in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX.
Chassis Number—the number of the chassis in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX.
Bus Number—the bus on which the device has been enumerated.
Socket Number—the socket number on which the device has been enumerated.
11-29-2011 03:31 AM
Thanks Omar,
Had tried this with string but didn't realise that changing it to integer would allow me to find the slot number.
Cheers.