Hi,
Here is the basic setup, I have written a multi-threaded application that does Data Acquisition on PXI-6031E cards and controls a GPIB-based power supply at the same time. The application uses ComponentWorks controls like CWAI, CWAIChannel, and CWVisa to interface with the instruments. Whenever the power supply has an Over-Voltage trip, the application needs to send a Reset command to it in order to restore it to a good state.
The problem is whenever the application sends out the Reset command after an Over-Voltage trip, the Data Acquisition fails, returns errors, and then stops. In addition, the application loses its Visa connection to the power supply too.
A few things I noticed were, if my application sends out a Reset command when the power supply is NOT in an Over-Voltage trip state, then Data Acquisition is not affected. Although the power supply takes less time to perform the Reset when it's not in an Over-Voltage trip state. This lead me to believe that it might be a problem with the power supply. However, if I send out a Reset command during an Over-Voltage trip using other clients (like the NI 488.2 Communicator client), the power supply is reset without affecting Data Acquisition in my application. Thus it seems more like a software problem than a hardware one. So I was wondering if this problem might be caused by using multiple ComponentWorks controls in a multi-threaded application.
Thanks in advance to anyone who can help.
VRMan