How to measure frequency using daq 6009

HAI..
   Im using PFIO line to measure the frequency..i have attached my vi along with this..output is read approximately to the given input when i highlight the execution,but when i use run and run continuosly alone,am getting incorrect values..im totally confused..suggest some ideas..
another doubt, may i use analog port to measure the frequency of an oscillator?if so kindly help me to create a vi for this also..
Attachments:
counter.vi ‏19 KB

From your VI, one thing is clear, you are creating a task, but you are not clearing it. Please take a look at this example:http://decibel.ni.com/content/docs/DOC-8172

Similar Messages

  • How do you measure frequency using the onboard counter on PCMCIA 6024-E

    I am using LABView 6.1 and NI-DAQ 7.2 with a SCXI-1000 chassis and a PCMCIA 6024-E on a laptop. I need to measure a frequency of about 3KHz and would like to do that using an 1180 direct through connector.
    Firstly, should I see this 1180 in MAX like any other module?
    And secondly, how do I use this 6024-E card to measure frequency? Which pins are supposed to be used on it to measure, and will I see the counter run in the test window in MAX according to the frequency measured?
    I know NI also have a frequency module for the SCXI chassis. So lastly, will it be better to use that, rather than measure directly off the 6024-E?
    Any help, advise or comments will be greatly appreciated!
    Thanks!

    Hello,
    I think I can help out with some of your questions. First, the 1180 module won�t show up in MAX since it is really just a feedthrough cable which allows you access to your unused signals from the DAQ card.
    You definitely can measure frequency using your 6024E. An example installs with NI-DAQ 7.2 which shows how to accomplish this. To access this example go to the LabVIEW start up screen and hit the Find Example button. When the Example Finder opens up browse to the following location: Hardware Input and Output -> DAQ -> Counters -> DAQ-STC -> Measure Frequency (DAQ-STC).vi
    This example measures frequency and has a connection diagram on the front panel. The documentation for the example can be accessed by going to File -> VI properties -> Document
    ation, after you have opened the VI.
    You are correct that we offer a frequency input module for SCXI (SCXI-1126). This module would be useful if your input voltages are non-TTL, or if you need to measure more than one channel of frequency signals. This module has an input range of +/- 250Vrms and 8 input channels.
    I hope this helps! Let me know if there is anything I can help with or clarify.
    Ken S.
    Applications Engineering
    National Instruments

  • How to Measure Frequency to RPM NI-DAQmx Tasks

    Hello,
    I am trying to measure frequency using NI DAQmx task and then convert this to an RPM if at all possible.
    I have the following hardware options at my disposal.
    I have SCXI 1126 Module along with a SCXI 1327 terminal, as well as a PXI 6289 Multifunction DAQ.
    I have wired in a mag sensor to ai7 on my 1126 and when I pass a metallic object I get a amplitude of 6  - 8  so I am able to read the mag sensor.
    What I am trying to do is to somehow convert this analog measurement into a RPM while only utilizing the NI DAQmx task.
    Any help would be appreciated.
    Tim
    Solved!
    Go to Solution.
    Attachments:
    Freq Set Up.jpg ‏2993 KB

    So I would select new in "Custom Scaling"
    Then would I select linear?
    Your calculations are simple but I am unsure if this would give me the desired result.  From my attachment I am seeing an input amplitude of 6 Hz for each pulse.  What I mean by this is that every time I bring a ferrous object near my mag pick up I get a pulse, this is what I was trying to illustrate in the attachment.  The analog pulse comes in a 6 Hz so I would simply multiple this pulse by 60 (assuming I get one pulse per rotation) to get RPM?
    How would this make sense if I only input one pulse for a long duration of time? 
    I have notice the amplitude of the pulse input increases with increased pulse frequency.  Does this mean the lowest RPM I can record is 360 RPM?  
    Tim

  • How to measure frequency when no static line

    Hi. I think to directly measure frequency using DAXmx function my input signal should be connceted to DAQ PFI Lines but in my application the clock frequency is outputted on P0.0 line . Is there any way to directky measure frequency uding DAQmx function or I should do it manually?
    Thanks

    Hi tintin,
    you really should have learned to post good ( read as: meaningful, with sufficient explanations and background information) questions after more than 200 posts in this forum…
    What frequency do you want to measure?
    What is the relation to outputting your own "clock frequency" on some DO pin?
    Which hardware do you use?
    Why do you need to measure a signal frequency when you know that frequency as you output that signal?
    How do you measure frequencies "manually"?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to measure RPM using digital I/O

    Please tell me how to measure RPM using Digital Input or please give me a code for this.

    You probably aren't going to find anyone to just give you code. Especially because you don't specify the hardware you're using. Doing this on FPGA is different than using DAQmx to do it. With FPGA you count pulses over a specified time. Using boolean logic from the digital DI node is a common way but there are others. (if you are using FPGA I can draw up an example, but I believe there is one on NIs website if you search google for it),. Then, if you want, you can run the data through an IIR filter, especially if you have a low resolution or slow moving encoder. Either of these conditions can result in very large difference of RPM even if the actual speed is not varying much (if you need an example why I can provide more detail, but some simple math calculating RPM should explain this. Obviously lower resolution will giv eyou less accurate results).
    If you use DAQmx you can set up a frequency task and it will return the number of pulses in a specified time frame; then you can convert this to RPM based on your encoder resolution and take the same steps of running it through a filter to smooth it out if need be.
    CLA, LabVIEW Versions 2010-2013

  • How to measure frequency

    hi i have made FM Jamer circuit in multisim 13 , my circuit image you can see below , now i want to measure the Measure Frequency which is Generated it L1 Inductor , so i do not know how to measure frequency in multsim , please help me , or also it would be good to use Antena instead of inductor or not , i have not see any Antena component in multsim 13 

    Hi Zahis,
    The measuring probe measures frequency, this video shows how you can use a probe in Multisim:
     http://www.youtube.com/watch?v=xKEQ3EXEaP8
    Tien P.
    National Instruments

  • How to measure frequencies of two sources simultaneously using 6602?

    I am using pci-6602 & LabView to measure frequencies of two sources. I wired Measure Frequency (NI-TIO).vi to do it, but it seems the counter only works at one channel at a time. Can anybody send me an example vi?
    Many thanks in advance
    ZYuan

    Hi ZYuan,
    To measure the frequencies simultaneously, you would need to duplicate the code for the single counter example twice and link the error cluster from one set to the next. I don't have a specific example but the following example can be used as a guide.
    Simultaneous Buffered-Event Counting on All Eight Counters of the 6602 or 6608 Devices
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC9F56A4E034080020E74861&p_node=DZ52325&p_source=External
    Hope that helps. Have a good day.
    Ron

  • How to Measure frequency of less than 300 Hz

    Is it possible to measure frequency without a counter module? All I have is a cDAQ with 9205, 9221 and 9263 modules.

    Hello,
    I am assuming that you want to measure analog frequency, since you have analog input and output hardware.  There is a useful LabView Help file titled Measuring Analog Frequency.  You will be able to measure analog frequency using just software and no counters.  However, this involves using Fast Fourier Transform (FFT) functions that are only available in LabView Full and Professional versions.  Please also take a look at the examples in the Example Finder.  Some helpful ones are titled … Signal Generation and Processing.vi, Spectrum Measurements.vi, and Simple Spectrum Analyzer (sim).vi.  These example’s block diagrams are a little busy, however you can see how they are using simulated signals with the FFT Power Spectrum.vi.  Note that the example titled Spectrum Measurements.vi uses express functions.  These functions are going to involve less programming, but offer lower program efficiency.
    Samantha
    National Instruments
    Applications Engineer

  • How to measure ripple using DVM

    Hi,
    What's the best way to measure ripple using DVM (PXI-4072)? My customer's limits are Vp-p so I think digitizing it would be the best way, but I also think that measuring true RMS would also be a good way to measure it. With digitizing the signal there's some post-processing required. Would calculating just V peak to peak in acquired signal be sufficient?
    Thanks for any comments,
    CT.

    Hi CT,
    To measure ripple, you should be able to use the digitzer mode of the 4072 to measure signals up to 1.8 MS/s.  As long as your ripple voltage is not a higher frequency than that you will be able measure it.  The Developer Zone article linked here gives some more information about DC power  supplies and some considerations for measureing ripple.
    Regards,
    Jim Schwartz

  • How to measure frequency with PCI-4474 card

    Hi,
    I'm trying to measure frequency with PCI-4474 card.
    Any sample code available?
    Thanks.

    Hi,
    Thank you for posting the the NI forums.  There aren’t any example programs that ship with the DSA drivers.  Will you be using this with the Sound and Vibration Toolkit?  If so, there are numerous examples that install with this software package.  Check out the LabVIEW Example Finder >> Toolkits and Modules >> Sound and Vibration Toolkit. 
    In addition to this, you could also use the signal processing VIs that ship with LabVIEW.  There are also examples that ship with LabVIEW that use these VI in Example Finder >> Analyzing and Processing Signals FFT and Frequency Analysis.  There is an entire Signal Processing palette that should contain the functionality that you need.
    I hope this helps.  Post back if you have further questions. 
    Ed W.
    Applications Engineer
    National Instruments

  • Measuring rpm using DAQ device

    How to measure the count value determined from the encoder to rpm value?Cn anyone pls explain?

    1. Write a program to read a count every second.
    2. Find count differene between this loop and previous loop.
    3. rpm=count difference*60/pulse per round.

  • How to measure freq. using usb6008 daq?

    hai,
    i have to measure the frequency of the o/p pulse from the proximity sensor. which is the best method to measure the frequency. do u have any example code.
    thank u.

    Hello visswa,
    The only counter operation you can do with the USB-6008 is simple event counting. But, you can use that example, along with some software timing to calculate the frequency of your signal. Take a look at the example attached. It isn't as accurate as doing a hardware frequency measurement but with the USB-6008, it's probably your best option.
    -Alan A.
    Attachments:
    Count Digital Events_Calculate_Frequency.vi ‏73 KB

  • How to measure frequency by USB 6211?

    Dear all,
    I'm using USB 6211 to measure the input analog voltage signal, then use a counter to yield the frequency. Please find the VI figure in the attachement.
    The problem is the insteal of measure the right frequency, which is from 300Hz to 1000Hz. There is a lot of high frequency noise from thousand to milliion Hz. I think it pick up the high frequency harmonics. How to avoid it or use a more effective way to achieve the measurements.
    Regards,
    Alan
    Attachments:
    flow rate frequency measurement.JPG ‏43 KB

    You have to suppress high frequencies on the analog side of your signal. You must set it to a frequency which is not higher than half of your aquisition rate. If you sample with 10 kHz your filter must have a cutoff frequency of max. 5 kHz. Otherwise you will see the signal mirrored at the half of the sample rate. A 6kHz signal will lead to a 4 kHz signal after the sampling.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Measure frequency using 6023E

    Hi,
    I would like to measure the frequency and magnitude of the input voltage signals around 60HZ. Can I use the onborad counter of 6023E and labview 7.0 to do frequency measurement function per cycle , if yes, how to configure the hardware connection between input source and connector box? then can I use the analog input function to find magnitude at the same time? Welcome any suggestion.
    Fred

    Hello Fred,
    Gus is correct: generally you shouldn�t use the onboard counters on your 6023E to read an analog signal. These counters are made to input and output TTL signals.
    Here are a couple of options that may be good for you:
    1) Use external signal conditioning to read your input signal and convert the frequency to voltage. For this you could use the SCC-FV01 module or if you have a higher channel count you could use the SCXI-1126. Both of these modules convert an input signal�s frequency to a voltage which can then be read by one of the analog inputs on your 6023E. Here are links to the product pages for these two modules:
    SCC-FV01
    SCXI-1126
    2) Read in the signal on an available analog input from your 6023E and use post-processing to measure magnitude and frequency, as gus suggested. In LabVIEW there are some helpful VIs to analyze acquired waveforms. These VIs are located on the function palette at the following location: All Functions -> Analyze -> Waveform Measurements<\strong>
    I hope this helps!
    Ken S.
    Applications Engineering
    National Instruments

  • Measuring frequency using a 6602 device

    Hello,
    How can we measure the frequency of a signal using a 6602 device? How many counters are needed for this purpose?
    We intend to use our own device driver, hence detailed instructions will be much appreciated.
    Thank you,
    Itai

    The origin of the time stamp depends on the type of network module you are using. The following discussion covers how time stamps are generated with the FP-1600 and FP-1000:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000020230000&ECategory=Distributed+I%2FO.FieldPoint
    My best recommendation is to purchase another CTR module. Using software timing will usually give you erratic results. That being said, make sure to use the "tick count (ms)" function if you must use software timing. That is the most accurate method for software timing. Also, you should set the counters to reset on read as recommended in Method 2 of this KnowledgeBase:
    http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc108
    62567a100753500/d8db42f9fdc3607e862568640047f144?OpenDocument
    Regards,
    Michael Shasteen
    Applications Engineering
    National Instruments
    www.ni.com/ask
    1-866-ASK-MY-NI

Maybe you are looking for