02-20-2008 07:37 AM
Hello,
I’m using a ni USB 6215 with labview 8.2, the problem i have is related to counters. I’m using two counters to measure two different shaft speeds as well as 3 analogue inputs. The problem i found was when the shaft is not turning or turning very slow that the vi does not take any readings.
It basically freezes until the shaft start running.
If I do not wire a time out value to the DAQ this error occures.
Fehler -200284 ist bei DAQmx Read (Counter 1D DBL 1Chan NSamp).vi:1 aufgetreten
How can i runn the vi constantly even when the safts are not turning
Can somebody help me with this problem?
Thank you for your help in advance
Regards
Fred
02-20-2008 07:41 AM
Handle the error, this is an expected error, you are reading counts, and when the shaft (encoder?) is not turning no counts come in, so there are no points to read in the counter. To deal with this you want a timeout. If you get a timeout, your read should be 0 counts and the error should be cleared.
Paul
02-20-2008 08:12 AM
Hello Paul,
This stops it form sending the error code, but the data collection is not going on until a pulse comes.
All the analogue results wait until a value larger than zero is measured on the counters.
I attached the vi
Thanks for your help so far.
Regards,
Fred
02-20-2008 11:43 AM