05-10-2012 06:53 AM
Hello Everyone,
I was trying to count the edges of an encoder using counters. I faced an error which says:
Error -201133 occurred at DAQmx Start Task.vi:4
Possible reason(s):
Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.
If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.
Device: cDAQ9191-16C68FEMod1 Digital Port: 0 Lines: 4, 6
Task Name: _unnamedTask<2C>
I don't know how to solve it. It seems that I need to add two DAQmx channels and then split them. You will find a picture of part of the VI.
Thanks,
05-10-2012 06:58 AM
Yes you cannot create two task for a single resource so configure the two counters in the same task and use the task.
05-14-2012 01:54 AM
how do you configure the two counters for a single task?
Thanks