Measurement of frequency with the NOR-6221


I would use the OR-6221 to measure the frequencies of the order of 200 Hz to 12.5 Mhz.

Is this possible?

Can you guide me were to start?

There are notes of application with examples?

The required accuracy is not high 0.5 percent more or less...

Thank you


Tags: NI Hardware

Similar Questions

  • Measurement of frequency with the NI 9402

    Has anyone successfully was able to measure the frequency in SignalExpress with the NI 9402 module? I have the 9402 connected to a tachometer (on a centrifuge) which puts a TTL signal. For now, I can get the light input line to work. (Right click on the project, acquire signals: DAQmx Acquire: digital input: input line.) When the tachometer completes the first round, light or the 'blip' lights indicating the sensor then goes back to the shore for the rest of the round. I would like to read the frequency of this "blip" instead. I can't understand the required parameters in Signal Express. I tried (right-click project, acquire signals: DAQmx Acquire: entry of meter: frequency) but maybe I do not have the correct settings. This centrifuge works usually between 0 and 3 hz. I have attached a picture of what I have. I am doing this correctly, with incorrect parameters? Or is there a better way to do this? I need to read Hertz over time. Thank you!

    Hi Choover,

    Even if you use the 0 meter to measure frequency, your singal acts at the door of the on-board clock source to measure the length (and thus frequency).  This is why you must use PF1 to connect to the door of the meter.  You can learn more about how DAQmx takes measurements of meter in any manual of cDAQ chassis:


  • I can implement using the NOR-6221 SPI? When I try to generate using ctr0 make an error indicating 'Sample clock' is not a supported option.

    I'm trying to use a NOR-USB-6221 to implement SPI in a C++ application.  When I try to configure a digital output task that uses ctr0 as the clock, I get an error stating that 'Sample clock' is not supported and use instead "on demand".  I would be able to use the NOR-6221 and if so how to do this?  Thank you.

    Hi IntAndTest,

    Maybe silly question: are you sure that you have a USB-6221 and not a USB-6212? The USB-6221 supports clocked DIO, but the USB-6212 is not working.

    A problem with your code: when you specify a terminal DAQmx name, it must be is compared to the device (such as 'Ctr0InternalOutput', "AI/SampleClock" or "PFI0") or contains a slash before the device name (like "/ Dev1/Ctr0InternalOutput", "/ Dev1/AI/SampleClock ', or ' Dev1 / / PFI0"). This does not apply to the names of physical channel (like ' Dev1/port0' or "Dev1/ctr0").

    The error is returned from code that you have not displayed? Your says error message DAQmxCreateDIChan failed, but the code you posted does not call this function. In addition, I don't see a call to DAQmxStartTask or DAQmxWriteDigitalU8, U16, U32, whatever.

    Also, what NOR-DAQmx version are you using?


  • Measurement of high frequency with the NI 9411


    I would like to measure the frequency of a TTL signal with the 9411 OR in a cDAQ-9178 chassis.  1.6 at 48 kHz frequency range.

    With examples of Labview digital frequency meter, it is not picking up on the signal.  Any advice?



    After talking to an applications engineer of NOR, I realized that the input signal must be less than 5 v.  In particular, the bass is between 0 - 0.8V and the top is between 2 - 5V.

    Once I have limited input to this range, the module of frequency meter picks up on the signal very well.

    Thank you


  • Measurement of frequency with CompactRio

    Dear all

    I have an anemometer which sends digital signals. I'm trying to analyze the signal to determine the speed of the wind.

    I have one NOR cRio-9024 and NI 9205. When I connect the anemometer, it gives me some positives square rear tension (see attachment). I wonder if I could turn this to the readings of frequency because it is linear to the wind speed.

    I tried to follow the link below, but my module does not have the option of digital Configuration specialist

    or I should have another module OR who could measure the frequency of the signal directly?

    I would like any ideas or suggestions. Thank you very much!

    LabVIEW Newbie

  • Capture of frequency with the NI 9401 in cDAQ-9172

    Hi all

    I searched through all the examples and find the same results than my own code in Labview. So, I go back to my hardware to solve my problem. I use a digital tachometer that displays pulse with 2 wires (hot and ground). I connected these to the NI 9401 for 16 PINS for PFI 1 and PIN 3 on the ground. When I open the module through MAX, he reads the perfectly when hi and lo as well as count properly if it is placed in the location 5 or 6.

    However, I try to use the frequency max task and the task fails to capture anything in the table. I get a time-out error, even if my tach is read correctly. I have attached my settings of the task. Thanks for any help

    Your samples to read is set to 100.  If all the samples of 100 are not available before the timeout is reached, you will get a time-out error.  What is the frequency of the input signal?  Maybe just try to read 1 sample on request first.

    Best regards

  • Measures of constraints with the NI 9219

    Hi all

    I join this forum and I need bit of advise on measurement of deformation using NI 9219 with lab view.

    I followed the procedure and settings to configure a virtual channel to strain under global virtual channel of NI DAQ mx.

    I need some clarification on strain gauge measures:

    1. If I use 1 quarter bridge configuration should I NI 9219 completion resistors?

    2.i have ordered strain gauges, but I can imitate the calculations of strain with labview gauge using a variable resistor instead of active Gages? as I understand, it's strain gauges to change resistance when the force is applied.based on this notion if I use a variable resistor on one leg of wheatstone bridge and plot the data? all I want is to play with lab view until I get the real strain gauges. (will take a week to get deleivered)

    3. affecting the internal Vex I think that I will not need to apply any voltage to the terminals of the bridge as the strain of installation window.i would just need to connect to the ends of the stone bridge of wheat to the PIN number 3 and 5 in the comment of 9129.please OR who...

    I have to really thank and appreciate all of you for taking the time and reading/commneting on my post.

    Kind regards


    Hi Engr_tech,

    9219 a resistance integrated half-bridge completion, but for quarter-bridge measures, it must rely on resistance measurements 2 son.  It does not support the measures of quarter 3-wire bridge.  I'm not familiar with the help of a variable resistor instead an active gauge so I can't comment on that.  Looks like your #3 idea would work, although I'm not 100% certain.  It will be unsupported, but it could work.

  • Looping/cycling through frequencies with the signal to create VI


    I am trying to operate a PZT with a given signal (of a formula) and to save the output of the sensors. I use a PXI of NI 5421 to generate the signal and an NI PXI 5105 to record signals. I made the attached code that works well, however, I'd like to be able to the frequency and the number of samples (the number of samples is function of frequency) in the VI of signal to create loop so that I can scan a range of frequencies. Could you please help me. I can't find a way to control the frequency outside the edit in the Properties window.

    Thank you


    Sanjay-thank you

    I just thought of it. I Redid the vi and when I ran an error that said come the input signal must be an integer value to a multiple of 4. I made a few simple changes to make and after that everything worked as expected. I guess that the entrance of waveform looked ok but not get operated by material, unless it is a multiple of 4.

    Thanks for your help,


  • Help with the NOR-DAQ example Code

    Hello. I just started to work with the NI IBS-6211. It's the first ADC I have ever used, so I'm farily to this news. I have some programming knowledge. After a search in the installation files, I found some examples of C Code that runs in the command prompt. I changed an a bit to get it to do what I want. My question is...

    Now, I have a few problems. I am trying to print a voltage in the command prompt. I hooked up everything and I used labview to make sure that everything works as it should (it does!). When I compile the C program and the run, instead of returning a voltage that is just acquired points and I really have no idea what are these 'points '.

    Here is the main part of the code example:

    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
                DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,1.0,10.0,DAQmx_Val_Volts,NULL));
                DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000));
                // DAQmx Start Code
                DAQmxErrChk (DAQmxStartTask(taskHandle));
                // DAQmx Read Code
                DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL));
                printf("Acquired %d points\n",read);

    And then he moves right down to the exit clause. Is there documentation anywhere that tells me what DAQ command should I use to print a voltage continuously updated reading? (As a decimal number, such as 5.21V for example).

    Thanks to you all



    The data acquired by DAQmx are written in the array called "data".  The number of points DAQmx wrote in this table is stored in the variable 'read' which was adopted by reference in.  To print the values returned, you need to loop through the array of 'data' and print each value.  See this help topic for an explanation of DAQmxReadAnalogF64.


  • Problem with the HP drivers Download Page

    Don't know where best to post this topic.

    I have problems with the HP driver download Page. Using the Chrome browser, I installed the HP product detection utility. Once installed, I admitted that it runs, and it correctly detected my HP computer and the details about this poster. A detail that he displayed was the guarantee being exceeded.

    Since I had hardware problems and had to replace the hard drive and reinstall Windows, I wanted to make sure that my computer has all the HP drivers and software required. This information would not be displayed. At first I thought it was because I had an active browser add-on. I've disabled and reloaded the page. This is where I'm having the problem.

    The product has been detected once more, but nothing happened when I clicked on the button search solutions for the detection of the product page.

    You have found the difficulty that has the utility.

    I never had a large measure of success with the utility unless I use Internet Explorer. I rarely use Internet Explorer.

  • can I Exchange my nvidia geforce gt420 with the nvidia geforce gt s450 on my hpe-590 and if yes, how e

    I have a HP Pavilion 590PC and would like to know how to change the graphics card GEForce GT420 existing with the GE Force GTS450 and will there be a difference?


    If you need improved video performance, then the answer is Yes.  You will see the difference with the video intensive applications.

    Review the performance of NVIDIA specifications. Look at the specifications of strip memory bandwidth and level of DirectX support.  Also check this comparison.

    The NVIDIA GTX 550 TI is priced in the same way to the GTS 450.  GTX 550 it is a video card faster, compared to the GTS450.  Look at this comparison.

    Open your PC and a few measurement in parallel with the PCI-E x 16 slot to see how long of a video card will fit. The adjacent slot on the PCI-E x 16 slot must be vacant.

    ' HP ' how-to ' articles should be useful.

  • Calculated measure (OLAP language) of the calculated measure (Expression OLAP)

    Hi, once again!

    I need to create a calculated measure in the form of free type AWM (OLAP Expression, with the condition BOX) based on the results of another measure calculated again with the status of the CASE.

    For example, I have a few basic measure number of type 'BM1', 'BM2', "BM3" . And I create a calculated measure "BM_AMOUNT" that returns a number if 'BM1' is not null or 0 with the expression:


    WHEN BM1 = 0 or BM1 is NULL THEN NULL

    ANOTHER (BM2 - BM3) / BM1


    And then I create a different "BM_PT" calculated measure that returns points based on the value of the first expression:



    ANOTHER 20


    Now, when I want to create the second expression I get error: XOQ-01958derived measure is a type of invalid data or data of any kind.

    I found a way to work around this - I create first the measure with the NUMBER type and then change it to the expression of OLAP, and it works.

    However, the problem is when I export the cube and that you want to import on another instance. Then, I get the same error for this measure "BM_PT" and impossible to import the cube.

    The only way I've found is to edit the XML code and remove the measure, then create it manually as mentioned above (type NUMBER then change it), but it would be really nice if there is another way to knit this tour. This is so my question, is it?

    * The example is just to help understand what I want to achieve and what is not correct.

    Re: #2

    If you use OLAP DML, if CUBE_DDS is the name of the cube and DOOD is the name of the measure then the expression to use in the formula of the OLAP DML is _.

    Try with CUBE_DDS_DOOD, CUBE_DDS_F0150, CUBE_DDS_DO0, CUBE_DDS_SF0213, CUBE_DDS_F0180 etc., in the formula.

    In AWM, you can open the OLAP worksheet and check if the following expressions are valid by publishing a




    > If nafill(CUBE_DDS_DOOD,0) eq 0 then na to another ((CUBE_DDS_F0150 + (CUBE_DDS_DO0 + CUBE_DDS_SF0213) * 0.2) - CUBE_DDS_SF0213 - CUBE_DDS_F0180) / end CUBE_DDS_DOOD

  • With the help of the meter from 6525 to measure the frequency: is there a more orderly way?

    I am currently using the high speed on a module USB 6525 meter to measure the frequency of an object in rotation via a sensor hall-effect.

    I was wondering if there was a simpler way / more effective this encoding than that?

    Everything that I currently perform the current meter reading, wait a second, take another reading, and subtract one from the other. The result is the frequency in hertz.

    Is there a way to get the 6525 to return the number / change County after 1 second?

    Thank you

    On the 6525, you have a country of the event and you can't make a measure of frequency.

  • Measure the frequency of the pulses PXI-6624

    Hello.  I work with a PXI-6624 and am interested to make measurements of pulsed frequency for frequency and duty cycle on its inputs using DAQmx.

    When I go to create the virtual channel, however, I have error-200431:

    "Physical channel selected does not support the type of measure required by the virtual channel you create."

    ' Asked the value: pulse frequency.

    «You can select: frequency, period, pulse width, period of Semi, separation of the two edges, Position:...» »

    Is this card really not capable of doing these measures of pulse frequency?

    Yes, the "Pulse" (not to be confused with "Pulse Width") measure was introduced with STC3 of OR including CompactDAQ and X series devices.

    Measuring the pulse:

    However, you should always be able to measure the frequency and the duty cycle on your card with a half measure:

    The half measure:

    The images are in the X Series user manual.

    The difference between these two modes boils down to how the data is stored and implemented in buffer on the map - with the period semi method that the material does not distinguish between high and low samples and puts everything in a single buffer.  However, if you start the meter on the song (see below the node property), then you would know the order of low and high samples in software, and are easy enough to calculate cycle frequency and the duty of this.

    Best regards

  • High speed continuous measurement of encoder with sampling frequency of 1 kHz

    I am able at all times the position of a linear encoder using a PCI-6602 counter card, and I need to know how to set up so that the counter rotating at high speed, but the data is inserted into the buffer at a frequency of 1 kHz.  I am able suddenly to a hydraulic cylinder, and I am not concerned about the event recording to high frequency except to the extent where they throw off the number considerably if the equipment does not run fast enough to detect all the impulses of the encoder.

    Now, I think is that the external sample clock signal control (routed internal pulse output counter) time rate whereby the equipment detects the impulses of the encoder and the rate at which it inserts data into the buffer.  With a pulse 100 per inch encoder and a sampling frequency of 1 kHz, the extended final position of the cylinder is turned off by +/-0.15 inches, which is unacceptable.

    I need calculate a speed of this information, so I prefer not to use software timed sampling to control this (it's more difficult programming for other reasons as well - several asynchronous measures).  Any ideas on how to configure the hardware to count faster than the speed at which she inserts counties in the buffer?

    OK, you're clearly on the right track here, so I will focus on some details.

    1. How do you know that the +/-0.15 "differences are * measurement error rather than * error of movement?  Why wouldn't be an accurate measure and a proposal which can vary slightly from the nominal value?

    2. I wonder some all electric noise and defects that may produce false edges.  The fact that the behavior was better by using a sampling rate limited (200 kHz) in the digital inputs may be that some of these flaws were so short that they were never captured.

    I did a ton of work with the Commission to 6602 encoder and I can certainly confirm that count equipment is sensitive to the edges in a few tens of MHz.  (I know its 80 MHz for edge counting, but I think I remember that it can be of the order of 20 to 40 MHz to accommodate the time of signal propagation extra of the quadrature decoding circuit).

    A small point of clarification.  You're talking about the speed at which the meter "works to.  The value of count is a register whose value is changed completely by the circuit, * independent * of the sampling frequency.  If you enjoy with material-clocked County in memory buffer or interrogation of software without buffer not a bit for circuits that increments / decrements the value of the counter register.  (In other words, I am completely convinced that you would get commensurate with position end even if you took only 1 sample software-polled after the end of the move instead of sampling at 1 kHz all the way through.)

    So, if the value of the counter is disabled, it is because the circuit detects producers of County of the edges that shouldn't be there.  Something you can try is to set up digital debounce filter for input lines of the PFI corresponding to the encoder Source inputs and to the.

    -Kevin P.

Maybe you are looking for