Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Is Task Done on edge counting task on USB-6008

I noticed that an edge counting task on the USB-6008 device will always return true when asked if it is done, even immediately after starting the task. This is of course not true for other devices. Is there some reason why this is so?

0 Kudos
Message 1 of 4
(3,455 Views)

Hi,

 

There has already been filled a Corrective Action Request #276690 to address the issue. 

But in relation to edge counting I do not think you require the DAQmx Is task Done.vi for edge counting, is there any specific reason for you to have this VI?

As you can see in the following examples there is no use of this VI and the function works great:

https://decibel.ni.com/content/docs/DOC-25124

https://decibel.ni.com/content/docs/DOC-11681

-https://decibel.ni.com/content/docs/DOC-25126

 

 

0 Kudos
Message 2 of 4
(3,413 Views)

we use an object that does something like:

 

function get_count():

  if is_done():

    return last_count

  else:

    return daqmxcountedgesscalarblahblahblah()

 

so knowing when the task is running or not is helpful. 

0 Kudos
Message 3 of 4
(3,411 Views)

The file I attached contains two examples about edge counting that could help you with your application. In each example there is no use of the function is done. 

0 Kudos
Message 4 of 4
(3,397 Views)