LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two counters measurement error

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.

 

 

 

Prob1.JPG

Thanks,

Mechanical Engineer
0 Kudos
Message 1 of 3
(2,250 Views)

Yes you cannot create two task for a single resource so configure the two counters in the same task and use the task.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(2,248 Views)

how do you configure the two counters for a single task?

 

Thanks

Mechanical Engineer
0 Kudos
Message 3 of 3
(2,234 Views)