Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx slows down system

Background: I am using cDAQ 9188 with 9425,9476 and 9222. My application basically performs endurance tests on relays. Each relay has to be tested for different duty cycles and cumulative cycles or hours based on the test requirements. The architecture of my application uses asynchronous calls to separate VIs for each type of relay test selected by the user.

 

Since I need to measure the voltage drops, I had to read a number of analog inputs at the same time but in different VIs. As most of you may know, this throws an error saying the resource has been reserved and to get rid of this, I was using a separate VI that would pass all these values from DAQmx to global variables for use in the test relay VIs. However for working the relays, my digital outputs are being sent out through DAQmx write functions only. 

 

 

problem: If I run more than two relay test VIs ( which I have to! ) the system is slowing down considerably!

i.e if say the relay was supposed to  be ON for 2 sec and OFF for 10 sec,  it is actually ON for 8 secs and OFF for more than 10 secs. The increased ON time may damage my load component or the relay itself!! 

 

What do I do to resolve this? uptil now the system was working fine, but since I started using DAQmx functions within different VIs, the system has become sluggish.

 

Smiley Sad

0 Kudos
Message 1 of 2
(5,383 Views)

my system configuration: Intel Xeon(R) e31220 3.1GHz, 4 GB RAM, Win 7 SP1

0 Kudos
Message 2 of 2
(5,380 Views)