LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rpm sensor

I have made an rpm sensor cct that uses an opto switch and a comparator. I am trying to use the measure period.vi to measure the frequency by feeding the signal to the digital input of a 6025E daq. Can I feed the signal to the analog input of the daq and measure the mean voltage and calibrate? Let's say the mean voltage of 10mV correspond with 1000 rpm then 1 mV will correspond with 100 rpm. Thus an analog input of 3.5mV will correspnd with 3500 rpm. Is that possible?
0 Kudos
Message 1 of 5
(3,957 Views)
Does the analog output from the tachometer varies with the rpm?
0 Kudos
Message 2 of 5
(3,939 Views)

Hi

I think that value of analog output is direcly connected with rpm.

bogdani

Message 3 of 5
(3,932 Views)
If you want to use the TTL signal which you have conditioned from the opto sensor into an analogue intput you will have to create a Frequency To Voltage Convertor on your conditioning cicruit. From memory a Diode and a capacitor / resistor network should suffice. The Diode prevents the capacitor being discharged back into the digital conditioning circuit. This then causes the capacitor to store an average value of frequency. Again from memory any old diode will suffice (1N4005) and a 1uF capacitor together with around a 100K resistor (you may have to tinker with the values a bit). If you don't put a resistor accross the capacitor; then the the capacitor discharges quite slowly into the analogue input due to its very high impedance. Also its discharge rate will change significantly if you try to measure the output with another / different instrument (volt meter). There are other more complex circuits, I am sure every one has thier favorites. Without a conditioning circuit, all you will see is an alias sampling of the square wave input which will be based on the sample interval of the analoge input channel.

I think that the 6025E has a counter input, would not this be the better option to measure a frequency? It does of course depend on the overall configuration that you are aiming for. You need to consider this and the accuracy that you need to achieve. Also you will have noise on the analogue channel that will make it fun. So then you have to decide how you are going to handle the measurement on the analogue channel.
Message 4 of 5
(3,929 Views)
Hi labview1958,

As bogdani pointed out, I believe your tachometer's output voltage is directly correlated to the rpm it is reading.  If your sensor only outputs this analog signal, then measuring the signal with the digital input or counter input lines on the 6025E probably won't work, as those are designed to measure TTL pulses (0-5V) and calculate the frequency betweeen these pulses.  On the other hand, if your sensor outputs both a TTL signal in addition to the analog signal mentioned, then you should be able to measure both signals with your DAQ card simultaneously.  If you are measuring the frequency of the TTL signal though, the counter input may be a better way to go than using the digital input lines like Conseils has mentioned.  The counter is meant for timed TTL operations like the frequency measurements you are doing.  Hope this is helpful.  Let us know if you still have any questions.

Thaison V
Applications Engineer
National Instruments

Message Edited by Thaison V on 04-24-2006 04:05 PM

Message 5 of 5
(3,901 Views)