Low frequency measurement (1 to 5 Hz) issues - Reg

Hello All,
i am facing a problem in measuring Low-Frequencies in the range of 1-5 Hz. I am using VIs used for pulse-width measurement and the card is PCI-6031E. i am generating frequency using PCI-6013 card.
Actually i am trying to develop an application for measuring the speed (RPM) of the motor which runs very slowly. so if  i miss one pulse  per second also, when i multiply that with 60 it will be big error.
So if any can give me a solution that will be big help to my issues.
Thanks.

Hello sathiskumar,
I'm not sure what you mean by missing a pulse but I think what is
happening is that your counter is rolling over and starting to count
from zero again.  Every time the counter rolls over, it will
output a pulse.  You can connect this signal to another counter
and count how many times your first counter has rolled over.  That
way, if you don't receive a pulse on your first counter before your
counter rolls over, the second counter will have a record of how many
times this has happened.
I hope this helps!
Eric
DE For Life!

Similar Messages

  • Low-Frequency measurements using counter/timer

    I am trying to measure speed, and am using the FP-502 counter timer module to count the pulses from my sensor. The field point example that uses a fixed width gate pulse will not work for my appliation because I need a gate pulse so big that it updates way to slow.
    Does anybody have any sugestions on how to measure a low frequency signal using a counter/timer?
    Thanks
    Dan

    Hello guys
    Thanks for all your sugestions I have the final results. I got it to work but I would like to add some comments for anybody who is trying to attempt this.
    Triggeing on the gate is a must for low frequency measurements. I used the divide by sugestion however using a factor of 3 only gets you about 60 Hz after that you can't sample fast enough. My application required me to measure from 0 to 150 Hz. I added a "gear shifter" routine where the terminal count was set to 3 on frequencies lower then 45 Hz and 15 for frequiencies greater than 45 Hz. Using a terminal count of 15 for all measurements made the udate rate on really low frequencies way to slow i.e. .5 seconds for 20Hz (check the math on this).
    I a
    lso needed to cascade the counters. At low frequencies the count went higher than 6550. Using the previos channel function of the fieldpoint module enable me to get 32 bit worth of terminal count data.
    Finally I needed to add a timeout condition for 0 Hz. If there are no pulses coming from the senser the program displays the last value read. That won't be 0. So I added a time out routine that if I didn't see a pule in a certian amout of time, output 0 and reset the gate count.
    Thank you for you help you relly saved me. I hope my comments made sense.
    Dan

  • Low Frequency Measurements using counter timers

    I am trying to measure multiple speeds using FP-CTR-502 modules.  I am having a resolution problem.  Looking at the post at the following URL (http://forums.ni.com/ni/board/message?board.id=110&message.id=3601&query.id=42252#M3601) looks like exactly what I need to do, but I'm not sure how to program this.  Does anyone have any example code to get me headed in the right direction?

    Hi Tcrower,
    Here is the example that Carl L. was describing in his forum post along with his instructions. Also, there are thorough instructions for using the program in the front panel as well as in File >> VI Properties >> Documentation.
    You can measure frequency in two ways using a counter.
    1) Measure the time it takes for a set number of pulses to pass or,
    2) Count the number of pulses that pass in a set amount of time.
    For low-frequency signals it is best to measure the time duration of a set number of pulses. If we tried to calculate the number of pulses that passed in a set amount of time, we would need a long gate period to get accurate results.
    The drawback of measuring the amount of time it takes for a set number of pulses to pass is that the sample period varies with the frequency of the signal.
    To accurately measure low frequencies with a CTR module, select two counter channels, one output channel, and one gate input channel. Count Input 0 counts the pulses of the signal that we are measuring. The output of the counter is set to high for x pulses and low for x pulses, which is used as the gate of Count Input 1. The source of Count Input 1 is the internal clock reference (the example can be modified to use an external clock reference). During the high phase of Count Input 0, Count Input 1 counts the pulses of the clock reference.
    During the low phase, we read channel 1 and reset the counter.
    For example, if the output of Count Input 0 is set to high for 4 pulses and the signal has a frequency of 20 Hz, the output of Count Input 0 is high for 200 ms. During the high phase, we will count 200 counts if we are using the 1 kHz internal clock reference. So to calculate the frequency, we have F = #pulses/duration = timebase * terminal count/counts = 1000 Hz * 4 terminal counts/200 counts = 20 Hz.
    Regards,
    Hal L.
    Attachments:
    Low_Frequency_Measurement_(CTR).zip ‏77 KB

  • Frequency measurement using Labview 8 and Fieldpoint FP-CTR-502 - wind speed measure

    All the information regarding this kind of application seems to be outdated, I did not find no solution or example to construct frequency measurement VIs using Labview 8
    The examples at "NI Discussion Forums :
    Most Active Hardware Boards :
    FieldPoint Family :
    Low-Frequency measurements using counter/timer" is very strange and so far the steps given seems to be usefull only do old Fieldpoint Explorer.
    I was trying to find a way to learn how to make an anemometer send its signal to a FP-CTR-502 but I have no sucess.
    I am realy very new on this Labview stuff, any help would be welcome.

    (similar thread here)
    Message Edité par Mathieu R. le 12-23-2005 02:28 PM
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • Digital frequency measurement speed in labview

    I am using a USB 6210 device to measure low frequencies of 50 to 1000 Hz. I need to log the frequency every 50ms. I do this in a while loop in labview using a 1 counter low frequency measurement in labview and saving the data using express VI.Each iteration of the loop takes atleast 60 to 100 ms just to read the frequency inside the loop. How do i increase the speed of measurement in Labview ?
    Solved!
    Go to Solution.

    PraveenB,
    Here is a table of the Counter terminals and related PFI lines.  This can be found in the NI DAQmx Help. (http://digital.ni.com/public.nsf/allkb/CCDFC93878BD8781862570FC00559980?OpenDocument)
    Default NI-DAQmx Counter Terminals
    Counter/Timer Signal
    Default Pin Number
    Signal Name
    CTR 0 SRC
    1
    PFI 0
    CTR 0 GATE
    2
    PFI 1
    CTR 0 AUX
    1
    PFI 0
    CTR 0 OUT
    6
    PFI 4
    CTR 0 A
    1
    PFI 0
    CTR 0 Z
    3
    PFI 2
    CTR 0 B
    2
    PFI 1
    CTR 1 SRC
    4
    PFI 3
    CTR 1 GATE
    3
    PFI 2
    CTR 1 AUX
    4
    PFI 3
    CTR 1 OUT
    7
    PFI 5
    CTR 1 A
    4
    PFI 3
    CTR 1 Z
    2
    PFI 1
    CTR 1 B
    3
    PFI 2
    FREQ OUT
    8
    PFI 6
    When you choose counter 1 in the Create channel VI it automatically reserves the gate which is PFI2.  If you use Counter 0 then PFI 2 will work fine.  Likewise if you use Counter 1 you can use anything but PFI 2.
    Message Edited by Jason_D on 10-24-2008 11:43 AM
    Sincerely,
    Jason Daming
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Low frequency Voltage measurement

    Hi,
    I am using PCI 6025E to control load bank and to measure voltage, current and frequency of a generator.
    While current and frequency measurement  is not a problem, voltage measurement is toublesome.
    Since on test bench already there are few PCI boards and huge number of sensors, I do not want to add NI 9205 or any other additional boards and clutter the area (other people are also working there).
    The problem with voltage measurement is that out of three generators two run from 400 RPM to 1600 RPM i.e.. somewhat 15-55 Hz.
    I had two solutions for this:
    1, Putting a step down transformer (230 Vac / 5 Vac) and then measure the voltage. But when testing at somthing like 15 Hz I have to deal with magnetic saturation with commercially available transformer. I do not want to take pain to go on built my own transformer.
    2, Using high precision voltage Divider. The problem is that what should be the galvanic isolation? Isolation transformer, but then again low frequency problem.
    Hence could someone suggest me since there is a bit confusion in my head.
    Thanks.
    Solved!
    Go to Solution.

    If you have a sine generator (15Hz migth be hard for the soundcard ) you can do a calibration of your transformer.
    (If only the voltage amplitude is of interest , use a isolated DMM as reference and run your generators)
    Or you buy a isolation voltage sense amplifier. (weidmueller, phoenix, wago, ...)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • "How to measure very low frequency?​"

    I'm using Labview 5.1 and a data acquisition card PC-LPM-16PNP. How can I measure a low frequency signal like the human pulse of 72 pulses/min or 1.2 Hz. Thanks.

    Virgo,
    When measuring very low frequencies, I recommend measuring the period between pulses and converting to frequency.
    To measure the period, there are a few methods. For something like a heartbeat, I would probably use a peak detector to locate the peaks and measure the distance between the peaks. For other signals, it may be easier to locate zero crossings. Sometimes filtering or smoothing is required to remove noise and improve the results.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Low frequency pulse duration measurement

    We have low frequncy pulse duration measurement to be done . We have tried with pulse measurement but it shows error for the frequency bellow 1.5 Hz. We have input signal of frequency varie from 0.5hz to 3 hz .Please suggest us is there any other method that can be used for mesureing the pulse width with low frequency mentioned above .If this can be done using tick count , please send us the example .
    Regards,
    Sharanu

    Hello Sharanu,
    I'm not sure you will be able to measure a frequency below 1.5 Hz in
    the traditional way.  However, I would like to ask you some more
    questions about your system.
    1) What hardware are you using?
    2) What is the error you are receiving (please include the exact error text)?
    Eric
    DE For Life!

  • Is it possible to detect low frequency signals with a high sampling rate?

    Hello everyone,
    I'm having an issue detecting low frequency signals with a high sampling rate.  Shouldn't I be able to detect the frequencies as long as the sampling rate is at least 2 times the highest frequency I will measure?  The frequency range I am measuring is 5-25 Hz, and I use Extract Single Tone.vi to measure the frequency.  The sampling setting I am using is 2 samples at 10 kHz.  Is there a method I can use to make this work?
    Attached is the vi.
    Attachments:
    frequencytest.vi ‏21 KB

    You are sampling at 10Ks/S, but only taking two samples. What do you expect to see? If your signals are binary (On or Off) you would only see either an on or an off, or if the rise/fall time was fast and you were Extremely lucky, one of each. If you want to see a waveform you have to sample for at least the period of a waveform. So you should take samples for at least 0.2 seconds to capture an entire waveform at 5Hz, ideally longer.   Think of looking at a tide change at a dock. If you want to see the entire tide change you will probably have to measure repeatedly over 24 hours, not just run out on the dock, measure the height twice and leave. That wouldn't tell you anything other than at that precise moment the tide height was X, but not that it was at high tide, low tide, in between, etc.
    I type too slowly, I see that a more technical answer has been given, so mine will be the philosophical one!
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Unstable Frequency Measurement USB6210

    Hi All, 
    I'm struggling to get a stable frequency measurement, to measure the RPM of a motor, using a single counter on a USB6210 board. 
    I'm using the +5V TTL signal to power an opto-transistor, and reading that signal back through Ctr0 (PFI1). See attached wiring schematic.
    I've put a scope in line (between PFI1 and DGND), and at the PFI1 terminal get a square wave, about 50Hz, peaks at about 2.5V. Do I need to be linking this signal to DGND, and how?
    I've set up a task in MAX, and readings fluctuate from 45Hz to 900Hz.
    I've also tried to read this in LabVIEW using the example VI - Meas Dig Frequency-Low Freq 1 Ctr.vi. I then get even more random results of +100,000 (full scale).
    Many Thanks,
    Martin 
    Attachments:
    Counter Wiring.jpg ‏63 KB
    24022010044.jpg ‏397 KB

    thanks a lot John P, i'll try it this vi config.
    well, my flow transmiter should give an 0-5 volts signal with frequency between 0 and 100 hz (datasheet here), and the data i need is codified in pulse frequency, the measured voltaje is wrong but frequency on oscilloscope is ok. i attached pics of my signal on oscilloscope measured on transmitter output, measures at daq card input are the same, i connected my transmitter ground to digital ground (im working on ni pci 6221).
    i tried the  Minimum Pulse Width option with 2.56 ms but now i realized why did'nt worked (voltaje level issues ), but now my typical noise is 3% of my signal, i think noise won't be a big deal.
    and i was surprised too about this system could get data acquisition insteand of data timeout error (because of voltaje level's issues), at first test i performed the system made the measures already mentioned, but i realized the ones who made this system attached the signal acquisition line to waterpump's power source (in fact, they attatched all data signal's lines to waterpump's power source ¬¬) and they hid noise effects with waveform's settings, now i fixed this and the system only shows me data timeout error.
    initially i got confused because if im getting frequency acquisition of milivolts signal i thought daq card's counter input could deal with it, but now i realized it was just noise peak effects.
    best regards
    .:. Pedro Rivera .:.
    i love to work and develop on labview, this is real fun!!!
    Attachments:
    signal acquisition.zip ‏355 KB

  • Frequency measurement error using DAQSTC

    I have modfied the example listed to measure up to 9 frequencies continuosly in the vi as attached.
    When I use the same approach combined with analogue & digital input/output I get a small error in frequency.
    (Input line PF10 reads 6.8Hz for a 6.7Hz input.)
    Attachments:
    measure_9_frequencies.zip ‏50 KB
    Rig_13-2_Monitor-1.llb ‏196 KB

    Hello,
    The code that you are using to take the frequency measurement could be done with lower level VIs that will more than likely resolve this issue. I modified one of the LabVIEW shipping examples: Measure Period (DAQ STC).vi Please take a look at the VI that I have attached.
    Attachments:
    Measure_Multiple_Freqs.vi ‏98 KB

  • High frequency measurement 2 counters range

    Hello,
    I know this info is somewhere but I can't find it.
    When using a Counter/timer to measure frequency there are multiple methods.
    i.e. Low Frequency with 1 counter and high frequency with 2 counters.
    What is the definition of a "low frequency" and what is the definition of a "high frequency"?  i.e. low frequency = frequencies below 100 Hz 
    Also what is the definition of a "large range"?
    Thanks
    Dan

    Hi Dan
    There isn't a specific bandwidth that is defined for use with either the one-counter or two-counter method. However, located in the NI-DAQmx help file there is a section detailing the quantization errors that arise when using either method with a variety of input frequencies. By referring to this information you should be able to determine which method will produce the smallest error in your application and hence which method will be preferable. This help file also explains the errors associated with the large-range two-counter method.
    To locate the help file, you should select Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help, and search for 'quantization error'.
    I hope this helps, just let me know if you'd like anything clarified or if you have any other questions on the matter.
    Regards
    Jeremy T
    Technical Marketing Engineer
    National Instruments UK & Ireland

  • PXI-6624 Pulse Frequency measurement

    Hi.  I'm working with a PXI-6624 and am interested in doing pulse frequency measurements to get both frequency and duty cycle on its inputs using DAQmx.  
    Whenever I go to create the virtual channel however, I get error -200431:
    "Selected physical channel does not support the measurement type required by the virtual channel you are creating."
    "Requested Value: Pulse Frequency"
    "You Can Select: Frequency, Period, Pulse Width, Semi Period, Two Edge Seperation, Position:..."
    Is this card really not capable of doing these pulse frequency measurements?  
    Solved!
    Go to Solution.

    Yes, the "Pulse" (not to be confused with "Pulse Width") measurement was introduced with NI's STC3 devices including X Series and CompactDAQ.  
    Pulse Measurement:
    However, you should still be able to measure frequency and duty cycle on your card with a semi-period measurement:
    Semi-Period Measurement:
    Images are from the X Series User Manual.
    The difference between the two modes comes down to how the data is stored and buffered on the card--with the semi-period method the hardware doesn't distinguish between high and low samples and puts everything into a single buffer.  However, if you start the counter off the appropriate edge (see below property node), then you would know in software the order of high and low samples and can pretty easily calculate frequency and duty cycle from this.
    Best Regards,
    John Passiak

  • FP-CTR-500 and Frequency Measurement: How to modify it to report the frequency (0-10 Hz) every one minute?

    How to modify "Frequency Measurement" to report the frequency every one minute?  
    The signal frequencies vary from 0 to 10 Hz (see the analog output plot and attached sample data file), so I want record the average frequency every one minute. 
    Software: Labview 8.5 
    Hardware: FP-CTR-500
    Program: "Frequency Measurement"  --build in and under "NI example finder", It was attached with this message. 
    Physical wiring: (1) The signal I want to measure to count input 1 (pins 2 and 18).  it is a pulse signal (range from 0 to 1 V, see the plot and attached data file). 
     (2) Wire Output 0 (pin 130 to gate 0 (pin 9).   Do com pins 26 and 30 need to wire together? 
    FP-CTR-5000 was set up in Max based on the program instructions. I have tried different gating pulse frequency, my readings are always "0". 
    Attachments:
    H2O_20130809.xlsx ‏18 KB
    Frequency Measurement.vi ‏35 KB

    CTR-500 high pulse is >=10V. Hence, it always read your pulse as low. With this low voltage pulse, you must use analog input module, and write a program to read pulse from analog level. You must also make sure that you pulse is not so narrow that cFP loop is not fast enough to capture voltage change.

  • Frequency response at low frequency

    I'm working on a bandpass filter, and I'd like to get the frequency response showing that the frequencies outside the lower and higher cutoff frequencies are being cut off. However, the correct plot is shown only when my cutoff frequencies are high (roughly from 1000-8000 hertz). When I use low cutoff frequences(roughly 4-5 hertz), the plot is incorrect. So how can I get the frequency response to my low cutoff frequencies? Thanks.
    P.S. In the code, some parts are irrelevent. In the front panel, the only relevent part is the frequency response plot at the lower right corner, and the specs above it; in the block diagram, only the upper half(with IIR and FRF) is relevent. Thanks.
    Attachments:
    BME_Pressure_Sensor_V1.00.vi ‏591 KB

    Hi Manson
    There is a bug in your diagram since you connected the number of samples where you should have connected the sampling frequency.
    The sampling frequency is related to the pace at which you take the measurement.
    Usually, Fs = 1 / dT
    where Fs is the sampling frequency and dT is the time interval.
    It should work better.
    In any case, to have a better resolution in the low frequency range of your spectrum computations, you have to increase the number of points of your data because there exist the following relationship between dF (space between 2 points in you spectrum), dT, and N (number of data points) :
    dF = 1 / (2 x dT x N)
    Doc-Doc
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

Maybe you are looking for