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

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

Résolu !
Accéder à la 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 Compliments
Message 1 sur 5
3 537 Visites

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 Compliments
Message 2 sur 5
3 523 Visites

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 Compliments
Message 3 sur 5
3 511 Visites
Solution
Accepté par l'auteur du sujet 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 Compliments
Message 4 sur 5
3 507 Visites

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 Compliments
Message 5 sur 5
3 498 Visites