Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

buffered counting and signal connect at M-series DAQ

Hi All
 
I have a 6259 and want to use it to do a simple motor control.
 
I'd like to get the 2 encoder signals into 2 counter and use 1 AO.
There is a shipping labview example "PID control-counter input.vi"
that seems match my need. This program needs an external
clock for buffered counting.
 
However, I don't want to use external clock for this program and
I can't use another counter to generate clock train because I have
2 encoder.
 
I guess I could use "ai sampleclock" as my clock source for counter
and AO, so I use "DAQmx connect Terminals.vi" to connect
aisampleclock and countr0_gate. there is no error at this part but
the counter still cannot work and get "200474" timeout error at
"DAQmx read counter DBL 1sample.vi"
 
So can I use a onboard clock as the sample clock source of this VI?
Or did I do anything wrong at connecting aisampleclock and CtroGate?
 
I've attached a screenshot of my block diagram below.
 
Thank you
 
Ryan
0 Kudos
Message 1 of 1
(2,863 Views)