08-25-2017 09:52 AM
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 foult 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.
Thank you,
Chris
08-25-2017 10:52 AM
Hi Chris, I see 2 things:
08-25-2017 11:01 AM - edited 08-25-2017 11:02 AM
Thank you for the reply. I did try that with the hope to eliminate the sample clock issues however I got an error stating that multiple counters can not be on the same task for input operations. I had to add a separate task for the other counter.
Chris
08-25-2017 11:09 AM
Ok, just checking! I haven't worked with counters before