I am trying to synchronize two counters to collect data from a rotational and linear encoder. I have followed several examples on how to do this however I am having trouble triggering the counters. I am using a dummy voltage input to set the clock source and I set the source of the sample clock to ai/sampleclock. When I run the vi it collects no data and gives me a 200284 error. I assume it is due to the external clock not being routed to the counter sample clocks. I can not figure out how to make the route beyond changing the timing engine to ai. I change the sample timing engine to ai (option 2) by setting the DAQmx timing property.
I also have a random 201133 error stating that one of the counters can not be configured for I/o because it is being used by another task. I have reset the tasks at the beginning of the code and I still get the error. I assume it is because the task is not cleared after a fault but the reset device vi should fix this.
I am using Labview 2013 with a cdaq-9174 with a Ni-9401, NI-9263 and b-9201.
Note: this was previously posted in the Labview board but I think this is a better location.
Thank you,
Chris