Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset PXI-4472 programmatically in traditional NI-DAQ

I am using a modification of one of the S&V examples to do a third octave analysis on one channel at a time, w/ 2 ICP microphones attached to channels 0 and 1 of a PXI-4472.  When I switch the channel from one to the other and rerun the app, I get bogus results unless I first go to MAX (ver. 7.4 traditional NIDAQ)  and do a reset of traditional NIDAQ devices.  The reset devices vi doesn't seem to do the trick.  Is there an established method for this?
0 Kudos
Message 1 of 4
(7,419 Views)
Brad,

Are you making calls to both the NI-DAQmx driver and the Traditional NI-DAQ driver?  These drivers cannot be used together, and you will have to manually reset the driver for Traditional NI-DAQ from MAX to make calls to either.  Make sure you are using one or the other (DAQmx strongly recommended).

Both the "DAQmx Reset Device.vi" and the Traditional NI-DAQ "Device Reset.vi" reset the hardware on particular devices.  It sounds like you are having a driver software problem instead.  Note that right clicking on "Traditional NI-DAQ Devices" and choosing to "Reset driver for traditional NI-DAQ" refreshes the software driver configuration, a completely different functionality.  There is no way to do this programatically, as it should not have to be done.

Make sure that you are handling all errors in your code.  It is rare that devices will begin returning improper values without also returning an error.

Thanks, Brad.  Let me know what find.

Travis W
0 Kudos
Message 2 of 4
(7,393 Views)
No, no DAQmx in this vi.  And the vi runs and completes with no errors indicated...I just put an indicator for now to check the error condition.  The sequence is: boot computer (XP running on a NI PXI embedded controller), start Labview, load VI (lightly modified version of the S&V example of a Noise Meter).  The default config is the 4472 as device 2, reading channel 0.  Run the default (checking the box for IEPE), and the vi does fine (I have a calibrated pistonphone to check the mics).  Stop the vi (no error), change the channel to 1 (move the pistonphone), rerun the vi.  The vi runs, but the levels shown are totally whack...very low, as if nothing is attached.  Stop vi (still no error), fire up MAX, reset the traditional DAQ device.  Restart the vi, and the levels are OK.  I've seen this behavior before w/ other 4472 examples.

I agree, I should rewrite the thing in mx but just haven't gotten time (running a department gets in the way occasionally...).
0 Kudos
Message 3 of 4
(7,389 Views)
Can you post the modified example VI?
Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 4 of 4
(7,383 Views)