Frequency measuremen​t with pci6229

Hello
I’m trying to measure a frequency with my PCI 6229 device. This frequency can be between 1 and 200 Hz, so I use the one counter method. The problem with the signal is that there is a lot of jitter on it. So my device measures the frequency of the jitter and not the frequency of the square wave. What can I do to measure the signal right?
Another problem is the signal connection. I have connected the signal to the gate of the counter and the GND of my signal to the source. Is this the right way?
Thanks in advance!!
Attachments:
signal.JPG ‏31 KB

Hello Markske,
You will need to add a low pass filter on the signal that you are trying to measure to make sure that there is no high frequency noise that can get by.
Concerning the connection of your signal, it is only necessary to connect the signal you're interested in to the gate of the counter. The source would only be necessary in case you want to do the measurement with an external clock signal. If you choose to take an internal clock, the source can stay unconnected.
Using counters to measure frequency however is only possible with TTL-compatible signals (see link below). The screenshot that you added does not show a TTL-compatible signal so I presume this is due to some type of scaling that you added?
http://digital.ni.com/public.nsf/websearch/ACB4BD7​550C4374C86256BFB0067A4BD?OpenDocument
Regards,
WouterVH
National Instruments

Similar Messages

  • Frequency measuremen​t with PCI6624, timout problem at startup, i.e measure 0 Hz.

    I want to use my PCI 6624 for measuring of frequency signals from a gear flow meter. The problem is that when I start running the VI there is no pulses from the flow meter and the VI stops to run and I get a Timeout error message. I.e is it possible to measure 0 Hz with the 6624 input used for frequency measurement?
    With hardware from IOtech and Daisylab I don`t have this kind of problem.
                                        /Thanks in advance

    Having similar problem,
    Did you manage to resolve the issue?
    I have attached the the solution given by NI for error code 200474, if its any use. The problem I have just found with this Vi is that if one channel has no signal it forces the other channel to grind to a halt. This problem has existed for me on the cards being used in this project PXI-6289 and PXI-6236, also other DAQ cards used in a different project earlier in the year.
    It seems to be a serious flaw in the application of the NI DAQ cards to general purpose data logging where counter signals might not be connected by the end user or they are very low frequency and the whole system hangs.
    Labview Version 8.5
    Labview Version 8.6
    Labview Version 2013
    Attachments:
    FLOWMETER_21.vi ‏37 KB

  • Frequency measuremen​t with High Speed Digitizer using External Trigger

    Hello:
    I have a

    Hello Brooks:
    Thank you for attention !
    I will try to explain my application:
    I need to measure a signal of a speed/position sensor. This sensor works with hall effect principle and is placed in front of a wheel with some teethes. Is used for automotive purpose in CAM and CRANKSHAFT applications. So, I need to measure period, duty cycle, rise time, fall time, Vpp, Angles for each teeth x encoder, everything from 40 to 7500 rpm.
    I'm using CH0 to measure a signal of this speed/position sensor.
    I'm using CH1 to measure a signal of an encoder connected to wheel.
    I'm using EXT Trigger to sync acquisition with encoder's INDEX signal.
    I need to measure the frequency of EXT trigger to know the instantly speed of the wheel.
    So, If I know that my encoder has 2048 pulse/rev, I can measure FFT_FREQUENCY of CH1 with scalar measurement functions and calculate the speed !
    The NI-Scope is wonderful because it can measure a lot of things automatic and fast, like period, frequency, duty cycle, rise/fall times ...
    Now I have one more question:
    I want to use 10:1 attenuation but I can't use a common probe. I want to connect the CH0 to sensor with a special connector.
    I've tried to make the same circuit with 9MOhms and capacitor like explained on site, but I reached bad results. The industrial probes has special characteristics for capacitance and noise rejection.
    Do you know how can I solve it ?
    Thank you.

  • Frequency measuremen​t with External Trigger

    Hello:
    I

    Hello Brooks:
    Thank you for attention !
    I will try to explain my application:
    I need to measure a signal of a speed/position sensor. This sensor works with hall effect principle and is placed in front of a wheel with some teethes. Is used for automotive purpose in CAM and CRANKSHAFT applications. So, I need to measure period, duty cycle, rise time, fall time, Vpp, Angles for each teeth x encoder, everything from 40 to 7500 rpm.
    I'm using CH0 to measure a signal of this speed/position sensor.
    I'm using CH1 to measure a signal of an encoder connected to wheel.
    I'm using EXT Trigger to sync acquisition with encoder's INDEX signal.
    I need to measure the frequency of EXT trigger to know the instantly speed of the wheel.
    So, If I know that my encoder has 2048 pulse/rev, I can measure FFT_FREQUENCY of CH1 with scalar measurement functions and calculate the speed !
    The NI-Scope is wonderful because it can measure a lot of things automatic and fast, like period, frequency, duty cycle, rise/fall times ...
    Now I have one more question:
    I want to use 10:1 attenuation but I can't use a common probe. I want to connect the CH0 to sensor with a special connector.
    I've tried to make the same circuit with 9MOhms and capacitor like explained on site, but I reached bad results. The industrial probes has special characteristics for capacitance and noise rejection.
    Do you know how can I solve it ?
    Thank you.

  • Triggering frequency measuremen​t with 9402 and cDAQ

    Hi all,
    I'm trying to take a speed measurement off of a shaft using a hall effect sensor and a 9402 module in a 4 module cDAQ 9174 chassis. I've used the low frequency measurement example using DAQmx but if the shaft isn't spinning I get a timeout error.
    Two questions, is there a way to use the Express VI's to accomplish this and how do I create a trigger to start the measurement?
    -Ian

    Why not clear the timeout and report 0 RPM.  The timeout is 0 rmp but you dont want to wait forever and block program flow.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Frequency/​Period measuremen​t with USB-6218

    I have been trying to get a USB-6218 to measure either frequency or period and have been running in to issues. I have attempted to connected to each counter gate (PFI1 or PFI2) and have not had any luck. I am attempting to meausre lower-frequency signals (1Hz-1KHz) so the Low-Frequency, 1 counter approach seems to be the one I need. The end goal is to get it working in Labwindows. I have made attempts using both sample LabWindows programs as well as MAX. In each of them, it appears that the frequency measurement is actually coming back with the pulse width of both the low and high portions of the signal. For instance, if I am trying to meausre the period of a 100 Hz signal, with a 75% duty cycle, it will toggle between 0.0075 and 0.0025 seconds for the period. If I increase the frequency of the signal to 10 KHz, it measures the frequency well. Is there something I am missing? Based on the manual, I should be able to meausre lower frequency signals using this method. Any help is greatly appreciated.
    Thanks.

    Can you upload a screenshot of your Task in MAX is setup? Is this happening at all lower frequencies or just at 100 Hz? Lets make sure we can get this working in MAX before adding LabWindows/CVI on top of it.
    Sometimes this can happen if the rise/fall time of the signal is not within the specifications of the device. This KnowledgeBase article shows the acceptable rise/fall times. 
    Applications Engineer
    National Instruments

  • Data acquisition and frequency generation togather with PCI-6251 and LV8.2

    Hi friends,
    I am a new user of Labview. I am using LB8.2 with PCI-6251 .
    I have to generate frequency and then measure the data and then for next frequency and so on.
    i know that for this i have to use looping and that is not a problem. The real problem for measurement is to identify whether the frequency is been generated. if yes then measurements starts otherwise it should wait until it started. then after finishing the measurements send a signal to generator for changing the frequency and amplitude.
    Now these two things {generation and measurement} togather are not working correctly for me. so i make 2 diff file, one for generation and other for measurements <by modifying the examples>. I can run both file togather and it works. But it need lots off effort and time. I have to measure from 10Hz to 1000Hz in 2Hz frequency step and i cannt leave in between .
    can anyone help me how to syncronize these two togather .
    Trying to attatch. both the files here ..
    main_v1.1.vi --> for Measuring
    Oscilloscope.vi --> for waveform generation
    Attachments:
    main_v1.1.vi ‏150 KB
    Oscilloscope.vi ‏37 KB

    Hay thnx dude..
    I found the example and now it works
    once again thanks a lot

  • Digital Frequency Measuremen​t for cRIO

    Hi,
    I'm new to LabView, and I'm having problems setting up a VI for frequency measurement. Any tips would be greatly appreciated!
    Task: I am using a cRIO with a digital I/O module (NI 9403). My goal is to connect the sensor that I am using (a MAXIM 6576 temperature sensor with period/frequency output in the form of a square wave) to the cRIO and have a VI measure and output its current frequency or period. 
    I've tried working with the Count and Period.vi, but when I tried to compile I found out the 9403 module does not support SCTL. I also looked at a thread that was posted in 2009 (http://forums.ni.com/t5/Counter-Timer/beginner-stu​ff-cRIO-digital-frequency-measurement/td-p/826656/​... that discussed a similar problem, but when I tried using the Host VI I got the multiple error messages saying "Function not supported in current target". This happened even when I tried using the original Count and Period (Host).vi with no modifications (but the original Count and Period (FPGA).vi works just fine). 
    I don't know how to approach this problem - should I be using FPGA or Scan Interface mode? Are there any basic examples of frequency measurement or digital counters that do not involve NI data acquisition devices? For a basic counter, how would you set up the VI so that it could measure the period or frequency based on the counter values? 
    Thanks a lot for your help!
    Andrea

    Hello,
    A great place to get started when using a cRIO is the NI CompactRIO Developer's Guide.  It will explain both Scan Mode and FPGA.  The difference between them comes down to the functionality and what you would like to complete in the program.  The simpler of the two is Scan Mode but you have more functionality with FPGA.
    We offer a lot of good examples in our NI Example Finder by going to Help >> Find Examples.  In here you can narrow the examples by hardware or just browse to different categories.  We do have a counter example that will work with the NI 9403 you can get to the example by going to Hardware Input and Output >> NI Scan Engine >> Module Specific >> Digital Input >> “Digital Line Input – cRIO.lvproj.” 
    Regards,
    M. Whitaker
    ni.com/support

  • Frequency measuremen​ts using NI cRIO 9073 and NI 9425 or NI 9422 modules

    Hi everyone!
    I'm trying to measure two frequency signals using a cRIO 9073.
    I'm already using a NI 9425 module for digital inputs.
    I need to measure two (2) frequency signals.
    Is it possible to use this module (NI 9425) or NI 9422 for frequency measurements either in Scan Engine or FPGA mode?
    In case it is, if you could point me to any example, it would be appreciated.
    I'll try to be more explanatory:
    These two frequency signals are in completely different ranges.
    The first is a frequency signal from a DC motor tachometer and the second one is from a mass flow meter.
    So the frequency ranges vary from KHZ for the tachometer output, to Hz for the MFM output.
    The rest of the channels on the module are simple Digital Inputs.
    Also, I have the option to use a NI 9422 module if NI 9425 is not appropriate.
    Thanks in advance,
    t81

    t81,
    It is possible to make frequency measurements with either the 9422 or the 9425 but each will have its own limitations in the range of frequency it will be able to accurately measure.  
    A few things to know:  
    1. What are the frequency ranges for each sensor (tach and MFM)? More than just knowing Hz/kHz will be helpful.
    2. To what accuracy do you need to measure these signals?
    The 9422 supports a specialty digital configuration counter input that can be configured for frequency measurement (see link)
    http://zone.ni.com/reference/en-XX/help/372603F-01​/riohelprt/crio-9422_rt/
    The specialty mode is only available when using Scan Interface mode, not with FPGA.  
    But the max clock rate in the specifications for the 9422 is 4kHz so this may not be sufficient for the tachometer.  I believe this is the max rate at which the module will update its state no matter how fast the underlying software (RT controller) is running.
    The 9425 has a higher clock rate (~140kHz) but doesn't support the specialty digital mode mentioned above.  It is also a software timed only device but this shouldn't be a problem if you use FPGA.
    Dan

  • Low frequency measuremen​t from Parallel Port

    Hi there...
    I need to calculate the "on" and "off" time and duty cycle in pulse form from a parallel port. By making the circuit in 5 or 0 V, I just simply put it in my parallel port. The problem comes when I need to measure a very very low frequency. In this case, I want to measure the duty cycle from my operated refrigerator. I need to know when the thermostat goes "on" and when it comes to "off". In my experience, the thermostat will be "on" in about 5-10 minutes and "off" in about 20-30 minutes. So, the pulse might be take for a long periode each.
    I've tried with Timing and Transition Measurement wizard or even by using Pulse Measurement.vi which is included in Waveform Measurement category. It only works for 2 Hz and . If I try to set it with 1 Hz or below, it comes the message :
    "Error -20308 occurred at Timing and Transition Measurements -> Untitled 1
    :4"  (waveform index 0 of 1)
    Possible reason(s):
    Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units."
    Could someone help me please ?
    Regards,
    Ricki

    here is a quick shot to give you an idea
    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 ǝɥʇ'
    Attachments:
    port logger.vi ‏22 KB

  • Changing frequency measuremen​t

    Hello,
    I´ve sampled a signal from a hall sensor on a belt pulley. I get six pulses per rotation. So I get a higher frequency on a higher belt speed.
    How can I analyse the frequency or pulse width for each pulse with LV?
    Best regards,
    Andy

    Andy,
    Typically period measurements are used when pulse by pulse data is needed.  You could either measure the width of a pulse or the period of a cycle.
    In either case you need to define a minimum speed, or maximum pulse width or period you want to detect.  When the shaft slows down the time between pulses or edges gets longer and longer.  Make sure your period measurement process has some kind of timeout or maximum time limit so that it does not hang up waiting for another edge onyour signal.
    Lynn 

  • High frequency and resolution with 6036E

    I am trying to drive a triangular wave signal with about 250Hz, with the greatest resolution possible. However, due to buffer restrictions and sampling restrictions, I can't seem to be able to produce more than about 10 Hz. Is there a really good way to produce such a higher-frequency signal, with no loss to resolution?

    It looks like you need a faster output card. The best that the 6036E can do is about a 10kHz update rate. Do the math and that means cranking as hard as it will go, the card will only put about 40 updates in each cycle of the output waveform.
    From what you said, a 10 Hz signal is ok. So if you extrapolate out to 250Hz you need to be looking for a card with an update rate of about 250kHz--all things otherwise being equal.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Scxi 1126 frequency measurement along with other scxi modules

    I want to measure frequency signal using sxci 1126. I have gone through the example code for sxci 1126. I am using NI-DAQ and Labview 7.1.
    The example code is applicable when am acquiring only from 1126. I have to acquire data also from 1102 102B along with 1126.
    In the example code along with AI config.vi and Ai Start.vi there are two additional vi's like AI paramete.vi and AI Trigger config.vi I understand that they are used for reading from 1126. My worry is how this is going to affect my acquisition from other scxi modules as all the modules are in multiplexed mode.

    Hi Bipin,
    Looking at your code, I see that you are still using Traditional DAQ. Since you have LV 7.1, you can take advantage of the new features of DAQmx.
    With DAQmx, you can create a virtual task that includes all of the different types of measurements you want to make. Once you set up the task in MAX, you can place it on the block diagram and automatically generate the code necessary to execute this.
    To do this, open up the Measurement and Automation Exlporer (MAX). Select "Data Neighborhood" from the tree on the left. Then click the button labeled "Create New." Create a DAQmx Virtual Channel. Follow the series of menus to set up your first type of acquisition (1126 frequency measurement). When you are
    done creating the task, you can add the second type of measurement to that same task. In the task config page, you will see a white box with the name of the channel you just created in it. Above the name you will see an "Add" button. Click on this button and follow the menus to set up your second measurement (1102 module).
    Once they are set up, save the task and open LabVIEW. Place the DAQmx Task Name constant on your block diagram found in All Functions >> Data Acquisition >> DAQmx... the task name constant is a purple colored box. Clicking on the box once its on the block diagram will expand a menu that will let you choose your task. Once selected, right click on the task name and choose Generate Code >> Example. This will automatically generate the code necessary to run the tasks. Simply hit the run button and enjoy!
    Thanks,
    Sal

  • I have an optical sensor how do I get a RPM or frequency measuremen​t?

    I have three optical sensors on a gyroscope rig connected to
    a 6601 card producing a square wave of 0-5V. I can get an edge count.  But how do I get an RPM or frequency
    measurement?

    Dear Ian
    I have to say I’m not having a lot of luck with the example finder.  I have three optical sensors all hooked up to LabVIEW.  I can count the pulses no problem, I just don’t seem to be able to connect a clock.  As I think I want a “Period Measurement” or a “Buffered Period.”
    Best wishes
    Robert

  • Ac voltage measuremen​ts with ni 9219

    Hello
    i am trying to measure an ac voltage through lab view using NI 9219 module.for test purpose  i have connected an Ac voltage source HI to pin #4 and Lo to Pin # 5. by setting up the DAQ assistant i plotted the output value of a 5 Vp-p sine wave.
    i am expecting a sine wave but i can only get a straight line of few milli volts in the output graph(lab View).i am not sure if the NI9219 internally converts it to dc Voltage or  i have some problems with the connection diagram.if NI 9219 has internal ADC converting the input to DC how can i de activate it so i can get an AC waveform 
    Please comment.
    Thanks,
    Ali

    Well you have to sample a pure sine wave at a rate of at least twice its frequency otherwise you will not have enough resolution to properly reconstruct the original analog signal.  http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shann​on_sampling_theorem  More complex signals require even higher sampling rates (and fancy filters) to avoid aliasing issues.
    The 9219 is a rather specialized module designed for strain gauges, thermocouples and other low-frequency application.  Have you read its spec sheet and manuals???  http://sine.ni.com/nips/cds/view/p/lang/en/nid/208​789
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

Maybe you are looking for

  • Iphone 3g stuck in recovery mode(error 14) after failed 3.2.1 update

    My Iphone is stuck in recovery mode after it failed to update to operating system 3.2.1 . When I press restore in itunes, the process stops at around the 20% mark and come up with error 14. I have already manually deleted and redownloaded the update

  • SEM BPS/BCS FOR BW

    HI FRIENDS, I  HAVE KNOWLEDGE IN BW, I WOULD LIKE TO LEARN SEM-BPS AND BCS . I HAVE KNOWLEDGE IN SD PP AND MM . FOR SEM-BPS, BEC NEED ANY EXTRA KNOWLEDGE IN ANY OTHER MODULES, CAN I GET ANY SCREEN SHOTS MATERIAL FOR SEM- BPS AND BCS LIKE BOOK IS THER

  • Problem with Premiere Pro and Old School X3100

    Hi everyone, Got a problem here and really looking for help .  I know the intel 965 or X3100 chipset/GPU (in a Dell inspiron 1720 running Win 7 64 bit) is way old school, but as we're waiting for a couple of i7/i5 laptop upgrades, this is what I have

  • Web Appearance Large Images Extra Large: how to increase size

    Hi! When selecting Web > Appearance > Large Images > Extra Large Lightroom exports the fotos 1275 px wide. I would like to have them quite a big larger - where can this setting be edited? Thanks a lot for your time! Andreas Weber www.motiondraw.com

  • Yosemite re-installation question

    For a certain reason, I'm thinking of temporarily reinstalling Mavericks over Yosemite on my laptop hard drive. I can do this with SuperDuper! from a backup on an external drive. I've already dragged the Yosemite installer icon to another drive for s