Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset PXI-6509 under program control

At the beginning of my TestStand sequence I would like to reset the Modules in my PXI chassis to the default state. I can reset the NI-4060 and PXI-6025E by inputting the device numbers into the Device Reset.vi. I don't seem to be able to do the same with the PXI-6509. Any suggestions?
0 Kudos
Message 1 of 6
(3,877 Views)
Hi Steve,

Do you get an error when trying to reset your PXI-6509 with that VI? I would like to know how you know that the device has not been reset.

Thanks!
Laura
0 Kudos
Message 2 of 6
(3,864 Views)
Hi Laura,

Thanks for helping. I have tried various combinations with both the device and device string inputs to the Device Reset.vi. Using the device input results in the error: "-10005 badDeviceError The device is invalid". I've tried various string inputs (just guessing really) and I get the error: "-10001 syntaxError An error was detected in the input string; the arrangement or ordering of the characters in the string is not consistent with the expected ordering".

So far, it appears that I can only reset the two modules listed in Measurement and Automation Explorer/Traditional NI-DAQ Devices (PXI-4060=Device 4, PXI-6025E=Device 5). The PXI-6509 is only listed under Measurement and Automation Explorer/NI-DAQmx Devices (PXI-6509:"PXI1Slot2").

Thanks,
Steve
0 Kudos
Message 3 of 6
(3,862 Views)
Hi Steve,

Ok, I think I see the trouble. The PXI-6509 is a DAQmx device only, so you must use the VI "DAQmx Reset Device" which is in the DAQmx - Data Acquisition >> DAQmx device configuration palette.

Regards,
Laura
0 Kudos
Message 4 of 6
(3,858 Views)
Thanks for the help but I think I have solved the problem

I found another reset vi that appears to work for the modules that are listed in Measurement and Automation Explorer as NI-DAQmx Devices. The vi is: DAQmx Reset Device.vi. After placing the vi on the block diagram I selected create constant on the device input and got a dropdown menu that listed the PXI-6025E and the PXI-6509 as options. Select either one and that device will be reset when the vi runs.

I tested this vi by toggling some inputs with the 6509 then running the DAQmx Reset Device.vi. All of the inputs returned to the default state.

Steve
0 Kudos
Message 5 of 6
(3,857 Views)
Laura,

Looks like I was replying while you were.

Thanks again,
Steve
0 Kudos
Message 6 of 6
(3,856 Views)