I am using a DAQmx in the mode ( Counter DBL 1 samp ) to read and display a frequency input as RPM.
However when there is no rpm input ( the motor is stopped ) the Counter read VI throws up a Time out fault. How to prevent this from happening ? What I want to happen is :
Like any Analog voltage channel, just display "0" when there is no frequency input. Setting the Time out to any value is not possible as there is no fixed pattern of when the motor will stop or start.
One method I had devised is to put the whole thing inside a True/False case and enable the true case only when the motor is running. The other machine functions will however continue uninterrupted in another timed loop. But what I am not clear in this case is this :
Suppose the case is True and RPM readout is happening. Suddenly I decide to stop the process and select the False case and if the DAQmx Read VI is in the middle of a read, will it complete that cycle or keep hanging ?
Any better suggestions to achive what I want is most welcome.
Thanks
Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.