LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically get the PXI slot that the PXI-4070 (DMM) is in?

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 5
(3,530 Views)

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).

Richard






0 Kudos
Message 2 of 5
(3,516 Views)

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.

0 Kudos
Message 3 of 5
(3,504 Views)
Solution
Accepted by topic author xyzSean

 

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.

Valid Values

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.

Omar
0 Kudos
Message 4 of 5
(3,500 Views)

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.

0 Kudos
Message 5 of 5
(3,491 Views)