Dear all,
I am stuck with this programing problem and I can't seem to find my way out. I would really appreciate any help from I can get. So here it is.....
I need to simultaneously acquire angular position of two quadrature encoders using NI USB-6210 DAQ M series card. I need deterministic sampling where I know the exact sampling times, so I can calculate the velocity and acceleration out of the encoder position measurements. Therefore I use buffered (sample clock) position measurement, where samples are acquired using hardware timing. I use external triggering, since internal triggering is not supported. As external triggering source I use the frequency generator of the counter on the card. I route it internaly to another counter terminal that i do not use (CTRn OUT). I run the frequency generator task with desired frequency, and the task for encoder position measurement, which is externally triggered.
This all works fine when I use CTR0, however when I try to run the same code on CTR1 I get this error message:
Error -89137 occurred at DAQmx Start Task.vi:1
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Source Device: Dev1
Source Terminal: 80MHzTimebase
Destination Device: Dev1
Destination Terminal: Ctr1Source
Required Resources in Use by
Source Device: Dev1
Source Terminal: PFI6
Destination Device: Dev1
Destination Terminal: PFI4
Task Name: _unnamedTask<4BF>
I have no idea why I get this message, so please, help me out here!
Jernej