Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

counter is not ready

Hi,

 

I am trying to use a counter out from NI 6221 and change the output frequency of TTL waveform on the fly. I have used examples from NI and I figured out I need to use property node of " Couter ready for new value". It is working fine when I am changing frequency but at the moment I set frequency= 0 (Counter says zero is not valid so I set the minimum value which is 0.009313226) the counter does not accept any new value. Basically counter would not get ready for any new value and I have to stop the loop and start it over.

 

I am wondering if any of you has any idea to reslove this issue,

 

Thanks,

Saridar

0 Kudos
Message 1 of 2
(5,096 Views)

Hi Saridar,

 

Is there a particular reason why you need a frequency of 0 Hz? At 0 Hz the output look like a straight line and from the error message it sounds like your device does not support a pulse of 0 Hz. If the DAQmx task encounters an error then the tasks will stop and throw and error message and you will have to stop the loop and start over in order to recover from it, which would be consistent with the behavior you described. You could possibly catch a specific error and clear it before the DAQmx task is stopped and cleared. Here’s a community example that shows you how to do this:

 

 

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

 

 

Regards,

 

K. 

0 Kudos
Message 2 of 2
(5,063 Views)