03-20-2013 10:09 PM
Could someone kindly look at this VI and explain how I can resolve getting the reserved task error of - 200022? The VI sets up a clock task to monitor motor steps and another task to monitor inputs from the motor on the NI-9401. There has to be a way to do both tasks together I would hope somehow without this reserve error showing up. If not, how would I manage to do this differently?
Thanks.
Solved! Go to Solution.
03-20-2013 10:20 PM
BTW, the NI-9401 is being used in slot 3 of the NI-9188. I hope this helps to answer my problem. Thanks again for any help.
03-21-2013 08:19 AM
Is this question really that difficult that no one knows how to resolve it?
03-21-2013 03:03 PM
You are getting that error message because you are accesing the same resource for two different tasks.
To run your VI there is needed the emaxState.ctl. I got broken arrow.
Regards
03-21-2013 03:21 PM
Thanks. Yes I realize what the error is, but need to know how to resolve it. I'm currently using cnt1 and inputs 4-7 on the 9401. Would moving the counter down to cnt0 and leaving the other inputs I need on lines 5-7 solve the problem since they would be on difffernt nibbles of that port or would this still throw the reserved error? I attached the missing .ctl file so you can run the VI and maybe help me reconfigure the port setup so I can have a counter with inputs I can monitor on this module.
Thanks so much.
03-21-2013 04:18 PM
- When I ran the VI I got error -200463. I could solve that issue changing in the DAQmx create channel the input line grouping to one channel for each line.
- Then I ran the VI and I got error -200022. So as workaround you need to change the counter (ctr0) if you are using 4, 5, 6 and 7 as digital lines. However if you make that change you are going to get error -201133. Check the link below to solve that issue:
Regards
03-21-2013 04:19 PM
03-21-2013 04:25 PM - edited 03-21-2013 04:26 PM
Thanks. I wondered if using the counter task on the same nibble of the port as the input line task would cause a conflict. I actually moved my inputs up to Line0-2 and left my PWM line on Line 4 keeping the counter at cnt1. I reserved the counter task, then started the input line task for lines0-3 then started the counter task and it all worked! Thanks again for the heads up on the 201133 error too.
Thanks again.