Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx misses samples and time value when long execution

Hello!

 

I am using a NI USB 6009 to track the signal from a load cell and a VI to control a stepper motor using this signal via parallel port in order to keep a constant load applied. It works fine normally, but at long executions some problems with the DAQ seem to happen. After more than 15 hours running the program, the data misses some values and behaves strangely.

 

During the first execution I found two intervals around 10 mins long when the samples had an absolute time value of -518,050s. This time value shows up at between 5 and 40 samples in a row, then alternates with chains of correct values, and after 5 or 10 minutes it gets fixed by itself. It also lacks some samples, around a 10%, but due to this time tracking problem I cannot find out if the missing values are at the beginning or the end of the instability.

For the second execution the problem was similar, with the difference that the time value recorded was -5100,050s.

 

The problem is not happening when writing the signal, because it drives to instabilities in the control loop, so it has to be referred to the data acquisition.

 

I haven't found any similar problems in the forum, any help would be appreciated. Thank you very much.

 

Ari

0 Kudos
Message 1 of 3
(3,722 Views)

My first thought is to check your USB power settings.  Make sure they are set to never turn off.  I have seen the USB hub turning off power (to save energy) cause some really weird things on this board.

 

Othan than that, I would probably have to see some code to diagnose any further.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(3,711 Views)

Hi

 

Thank you I will give it a try, I didn't disable the USB power saver because I thought the DAQmx drivers made that by automaticaly. I will reply if it worked in a couple of days.

0 Kudos
Message 3 of 3
(3,707 Views)