LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically check whether PXI is connected and on

Hi there,

 

I'm trying to add in to my code the option to measure two signals to obtain a FRF - my problem is that I can't seem to figure out how to check whether the PXI device that would be doing the measuring is a) connected to the PC and b) turned on. Attempting to do the FRF with PXI off crashes my computer, so this is something that needs to be fixed.

I've had a look through a few examples and have tried using the system configuration blocks. So far I've limited it to the one, single PXI that I know can be used rather than a range of devices; I've therefore have tried to minimise any potential errors by querying the serial number and the exact slot number the card is in now. It seemed to work if I turned the PXI on before the PC (since they're connected by serial), but if I then turned off the PXI it still registered as present by the IsPresent attribute.

 

Could anyone possibly point me in the right direction? I've attached what I've put written so far. This VI will eventually be used as a remote panel, but I don't mind limiting it to the localhost only if that is better.

 

Thanks in advance,

Emily

 

LabVIEW 2011

NI PXI-1042Q chassis

NI PXI-5122 Digitiser

0 Kudos
Message 1 of 3
(2,903 Views)

look under the property active device...this example is for DAQs, hope it helps?

0 Kudos
Message 2 of 3
(2,893 Views)

Hi Apok,

 

Thanks for the prompt reply. I tried it but unfortunately DAQmx does not detect the particular card it will be using. It's picking up the PXI-4472B (which are present on the chassis but unused), but not the PXI-5122 which I'm using to digitise the voltage signals.

 

I guess push comes to a shove I could get it to check whether those cards are in there, but I would prefer to be able to find the 5122.

 

Thanks again!

0 Kudos
Message 3 of 3
(2,883 Views)