Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a Counter in a Card 6601 for several times in the same VI

When I try to use a Counter two times for read and for write, I get always a error (no. 50103). What should that mean.
0 Kudos
Message 1 of 2
(3,093 Views)
From the menu Help-->Explain Error...
"The specified resource is reserved. The operation was completed by ignoring or overriding the specified resource."

If you are using one particular counter for both read and write operations, you'll need to clear the read task before configuring the write task and vice versa. To clear the task in traditional NI-DAQ, pass in the task id to "Counter Control.vi" with a control code of 'reset'. When using DAQmx wire the task into "DAQmx Clear Task.vi".

Do you really need to use the same counter in both a read and write mode at various times? Are the other three all tied up? Maybe I or someone else can help more if you describe the app and/or post some example code.

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(3,093 Views)