10-17-2013 08:57 AM
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
10-17-2013 09:32 AM - edited 10-17-2013 09:33 AM
look under the property active device...this example is for DAQs, hope it helps?
10-17-2013 09:54 AM
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!