Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ PROBLEM

Hello,

I tried to use DAQ Assistant to generate a digital output (1 sample on demand) and at the same time acquire an analog input from loadcell (continuous sample at 10K), but the analog input causes my while loop to slow down.

Generally, I want to turn on a valve with digital output at 10ms and keep it on to 600ms then turn it off for 400ms and repeat it ten times. Also, I want to read my loadcell data during this time at 10k. When I tried to put both DAQ assistant in the same while loop and count the time, the analog input DAQ slows down my loop time counter and when I try to run then in two parallel loops, the analog input DAQ cannot run.

Would you please help me find the problem.

 

Thanks,

Mahsa

 

0 Kudos
Message 1 of 2
(1,827 Views)

If you want 10ms of resolution for your digital output, then you should configure the analog input to read 10ms of data at a time.  At a 10kS/s rate, that would be 100 samples.


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 2
(1,776 Views)