12-11-2006 10:37 PM
12-12-2006 06:20 PM
12-12-2006 10:55 PM
12-13-2006 12:40 PM
Hello JSI,
As soon as you start your counter task (even if the analog task has not be
started/triggered), the counters will count ticks from you encoder. If
you start your counter task before you trigger your analog task you will need
to stop these tics from reaching the counter. Perhaps it would be
possible to AND these TTL pulses with another signal that is high after your
trigger signal is sent.
Next, the error message -200078 is expected when using an STC based device (not
STC2). You can find more information on this here.
If you want to use counter 0, you will need to start the counter after your
analog task triggers or set the data transfer mechanism to interrupts.
You can find the property node to set this in the DAQmx channel property
node. I have attached an image of this below. If you want to use
interrupts, you might have to decrease the sampling rate from 250k because of
the FIFO size of a counter.
Regards,
Jesse O.
Applications Engineering
National Instruments
12-15-2006 08:13 PM