casu,
Hello again. I've attached a modified example that may help some. Unfortunately, I'm not able to test it now with a 6602, so there may be some small tweaks needed.
Changing freq on-the-fly should be possible, but my previous example didn't try to implement it. I've added it to this one.
I also restructured the way the RPM reading was done by putting it in a separate loop. I made it a continuous measurement, and always read the most recent already-buffered data to compute a median RPM. If you'll always read the same # of samples, I *think* you can place the DAQmx Read property node before the lower loop rather than inside it. But without hw to test it, I'm not certain.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.