08-09-2007 03:20 PM
08-11-2007 03:33 PM - edited 08-11-2007 03:33 PM
Message Edited by Matthew W on 08-11-2007 03:33 PM
08-13-2007 09:26 AM
Hello and Thanks for your response,
The frequency signal is generated from an optical encoder and is used to
measure angular velocity.
I should be clear that there is no error generated by DAQmx. Since 0Hz
frequencies is not an unusual event in my application the task timeout is
disabled. It appears that the program waits at the stop task function. There is theerefore not crash. The program simply waits. I would
think that stopping the task would override the need to acquire all the samples
in the task but this does not appear to be the case.
EP
08-15-2007 08:13 AM
The waiting is an expected behavior due to the low frequency of the input signal. The counter is comparing your signal to an internal source of about 1.9Hz for timing purposes. Since your signal is 0Hz, it will cause your application to wait and hang until it times out. Your best option is to enable timeout for your counter and also pass/ignore the error that would be generated by the waiting for a frequency below the internal comparator. (See Matthew's forum link above)
Alex A.
08-15-2007 08:58 AM
Thanks for your responce,
Ok, I will try this. But I really think that stopping or aborting the task should override the measurement request.
EP