Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset 6602 Counter with Software

How can I reset a 6602 counter through software (using DAQmx functionality i assume) while a counter task is running?  I would like to be able to reset the counter at any point while the task is running without restarting the task itself.
Message Edited by MREDAY on 06-08-2009 02:46 PM
Message Edited by MREDAY on 06-08-2009 02:47 PM
0 Kudos
Message 1 of 7
(5,282 Views)

Hi MREDAY,

 

The only way to reset the counter is to stop the task, clear it, then start the task again.  From this KnowledgeBase, there is no way to reset the counter while the task is running.  

Regards,
Jim Schwartz
0 Kudos
Message 2 of 7
(5,271 Views)

Thanks Jim,

 

I got it working this morning and that is basically what I did to get it to work.  My initial implementation tried to be more cleaver in the stop/start sense in that I tried to use the Stop (F) input to the DAQmx Task to stop/start the task.  That was not working properly so I had to explicitly call DAQmx Task Stop and Start.  That worked fine.

 

Thank you very much for the reply!

 

Adam 

0 Kudos
Message 3 of 7
(5,269 Views)

Hello

 

I have a problem with ending a task before reset the board :

When I debug my program (with CVI), I sometimes stop it, and there is no way tu use te board again but restart the whole PC.

Does anybody have an other (soft) solution?

 

Thanks

 

Nico

0 Kudos
Message 4 of 7
(4,969 Views)

Hi Nico_PSA,

 

This could be because you are stopping the card without releasing all the resources like when you use DAQmx to stop and clear the task.  Could you try resetting the card in Measurement and Automation Explorer?  You can do this by right clicking your device and selecting Reset Device.  When you are done with your program, make sure that you are properly stopping and clearing the task with DAQmx.

Regards,
Jim Schwartz
0 Kudos
Message 5 of 7
(4,967 Views)

We are having the same issue using the cDAQ-9174 chassis and a 9411 module (digital input).

I was told to stop the task, write a new initial value to a property node, and restart the task.  It works a few times and then crashes the program, the DAQ module, and the computer.

Counter 0 and 1 both showed the problem.

Can you explain why this is and/or suggest a fix?

Clearing the task and restarting gave me a similiar problem.

 

Thanks,

Sam

0 Kudos
Message 6 of 7
(4,782 Views)

Sam,

This sounds like a very strange problem, and difficult to diagnose without more information.  Is it consistent about how many times you can stop and restart the task before running into this problem?  Can you go into MAX and start and stop the Test Panels repeatedly without any issues?   What about running the example programs, do they work fine?  Also, does it give you any kind of error message when it crashes and/or the next time you open your program?  (What are you using to communicate with your cDAQ?  LabVIEW?)  

Also, which version of the DAQmx drivers do you have?  If you don't already have the latest version (9.0.2), I would recommend upgrading.  You can download the latest ones here.   Do you have any other computers that you could try this on?  It would be interesting to see if you see the same behavior there.  

 

-Christina

0 Kudos
Message 7 of 7
(4,767 Views)