Here I'm using USB-6000 to find the RPM and
using this function
I'm getting count values..Now i want to find the RPM can any one please help me how to do that....
Unfortunately USB-6000 lacks the capability to get frequency / period measurements so you cannot use it fro RPM.
With DAQmxReadCounterScalarU32 you are performing an edge counting, that is you are simply counting how many slopes are present in your input signal; to obtain the frequency (and thus the speed) you should have a precise timebase to divide with, which your board is missing.
To get frequency / period measurements you must use higher class devices like the USB-6210.
Thanks for the reply ....I have another DAQ device USB-6009 Can i do with that...& How to check weather my DAQ is compatiable to do or not...... if i brought the compatialbe DAQ how to find the RPM of a motor ...Please do reply for this....
USB-6009 too cannot perform frequency measurement. To check this, look into board specifications (here those for the 6009) and search for capabilities of the counter section: in this case you find Counter measurements: Edge counting, which means the board can only count events, without time correlation.
For comparison, specifications for the 6210 recitate:
Counter measurements: Edge counting, pulse, semi-period, period, two-edge separation (I have highlighted the one you can use for frequency measurement).
Once you have chosen a board, you can look into CVI examples to see if some code exists that can help you. Open CVI, next open the example finder (Help >> Search Examples...) and search by keyword and board type: this will guarantee you also that the board supports the functions needed.
Thanks a lot for the clear information.
Here I have one VI file which shows the RPM and works with the USB-6009(It is their in attachment).I want to use the same thing in labwindows but it not went on..can you please help in this.
Becauese now I can use this DAQ usb-6009 only to find the RPM 😞
I cannot open the VI because is too new for the version of LV I have installed. Nevertheless, you can have a rough speed measurement with the 6009: you can simply read the counter in two moments and divide the difference in reading by the time elapsed between readings: this will give you the frequency in Hz of the transducer. Once got the frequency, divide it by the transducer pulses per revulution and multiply by 60 to get RPM measurement.
The problem here is that you cannot be sure of the time component: besides the inaccuracy of the OS timebase, you cannot correlate the counter reading with a precise moment in time, since you suffer for all the delays of the software and the communications channel. For these reasons, the value calculated must be intended as a tough approximation of the actual speed. Depending on your requirements it may be enough or not. Nevertheless, consider that this measure is totally unreliable on the long run: there is absolutely no guarantee that some OS task will not interfere with your system delaying activities and making the measure inaccurate.
HI Proven ,
As i am looking for same scenario in my application here i am asking you some thing regarding your answers
2 time moments :set 2 timers say ( one for 100msec and other for 200msec ) th(count1 - count 2)/100msec = frequency
Now what does the sentence "transducer pulses per revulution" mean here , i am not quite sure on this please help me to get in with this .
please let me know am i on correct path in understanding your concept for RPM measurement ?
That's quite simple. The basic idea is that you have an encoder or similar device mechanically coupled to the motor that generates the output frequency. Depending on its design, the encoder may have a fixed amount of pulses per revolution (ppr): I've seen 1024, 4096 and similar but also 600 and 3600 ppr; your actual encoder may have a different design.
Let's consider for simplicity you have a 4 pulse/rev model: when you count the pulses, you know that count/4 gives you the revolutions made by the encoder. The same applies for frequency (which is pulse-per-second): frequency / 4 gives you the rotations-per-second value. Multiply it by 60 to obtain rotations-per-minute value, or RPM.
Thank you for the information you provided on this,let me implment it in my application and let you know the result