Hi. Thanks for any assistance you can provide. I'm a beginner to LabView, and have hit a brick wall/deadline.
Right, I have a nice TTL signal coming from a Hall effect sensor on a gear tooth wheel. There are 108 teeth per revolution and my max engine speed will be 3000rpm, so the max frequency is 5400Hz. I want to do a few things with this, coupled with a TTL signal of TDC.
1) I want to calculate the speed of the engine accurately. I think I can use the Measure Frequency VI, but only if I start it correctly - otherwise it depends if it measures the right no. of pulses. What is the best way to trigger this?
2) The TDC signal will hopefully be used to start counting the pulses/teeth from the sensor. After an EXACT
no. of pulses, I want to then write to a digital line to control fuel injection, and an EXACT no. of pulses later do the same for ignition. The VIs I've found and experimented with do not seem to be able to monitor the COUNT exactly, due mainly to WHILE loop iteration speed (I think). I tried using a static DIO line and my own program with Digital Read Line VI, and it worked at slow speed, but nowhere near the speed I need it to. The VI takes too long to execute as far as I could work out.
I initially thought I'd get away with a PCI-6503 board, but soon realised I probably need counters. I am now testing on a PCI-MIO-16E-4, and have ordered a PCI-6023E which will be used finally.
Any suggestions would be appreciated.