2 Square signal to frequency with DAQCard ?

Hello,
My configuration : PC portable P4 / 1.8GHz, Win 2000, Labview 7.0, DAQCard AI-16E-4, BNC 2110 and two magnetic speed sensors (6000rpm, 120 top/rotary)
1) I would like to recorde the two frequencies with the two counters of the DAQCard. Can I do it with my configuration (2 counters are enough ?) ?
2) Can I synchronize these two inputs with analog inputs ? If not, which configuration I need for ?
Thanks a lot,
Yvan

You can make a frequency measure with only one counter. This method use
the internal timebase as source and your input signal as gate: the
process take the number of clock period in a period of your input to
compute it's frequency.
Accuracy of this method is quite good if the input frequency is small
compare to the internal timebase. So with the sensor you described:
    6000rpm => 100 rotary per second
    with 120 top per rotary => 12000 top per second
The AI-16E-4 use a 20MH internal timebase, so I think there is no problem
More information about frequency measurement...
For the synchornisation, I'm not sure to clearly understand what you
need, but take a look to the DAQmx timming and DAQmx start trigger VIs.
.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  

Similar Messages

  • Permanent square signal

    Hi all,
    I am working with the PCI 6221. I am using it to generate a square signal of a determined frequency. The problem comes up when the computer where the DAQ is plugged into becomes unstable, freezes up,... then i think that the DAQ stops generating the signal. Is it possible????
    Is it possible to make the device independent???, i mean something like to save the instructions inside the board and make it not depend on the state of the computer. I am generating the signal with:
                          DAQmxCreateTask("",&taskHandle);
            DAQmxCreateCOPulseChanFreq(taskHandle,device + "/" + counter,"",DAQmx_Val_Hz,DAQmx_Val_Low,0.0,Frequency,DutyCycle);
            DAQmxCfgImplicitTiming(taskHandle,DAQmx_Val_ContSamps,1000);
            DAQmxStartTask(taskHandle);
    Thank you beforehand
    JRF

    Gracias Jaime,
    I had a look at those examples long time ago and just from your reference it is where I took the code i posted. My PATH is a little bit different but i hope the examples are the same (C:\Archivos de programa\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse\Dig Pulse Train-Cont), this means my examples are in C, i couldnt install solution for visual studio 8.0.
    Getting to the point, with this solution you are pointing to me I think it is not possible to make the task independt on the computer where the DAQ is plugged into. That means that if for some reason, the computer is "frozen" the task could stop...
    Thank you anyway!!!
    Jrojfer

  • Could I use ni6723 to generate square signal?

    I just want to use the AO port of NI6723 to generate square signal with frequency between 10kHz to 500khz. The duty cycle should be 50%. The maximum voltage will be 10V and I want to change the minmium voltage between 0V to 5V.Is that possible?Could you give me an example?Thanks a lot!
    Best regards!
    Ciyuan Qiu

    For generating periodic waveform, you can look for Regeneration mode. Topic like Glitching might be of interest to you.
    Try below example.
    DAQmx AO Regeneration - Dynamically Updating User Buffer Data
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Measure frequency with 2 counters

    Hello,
    I'm measuring a digital frequency signal using a PXI-6602 module using the 'high frequency with 2 counters' method.  From the examples I have found, it seems that you specify only the counter which is doing the measuring and the measurement time.  How does LabVIEW know which counter is used to generate the HF pulse reference train, for example:
    ctr 0 - measuring 200kHz signal
    ctr 1 - generating  50kHz signal
    Do I independently set up and start the ctr1 generation, and as log as it starts before the measurement commences, does LV then sort it all out without any other input?
    Thanks
    Dave

    You should connect the signal (whose frequency needs to be measured) to Ctr-1, and there gonna be an internal connection between the output of the first counter and the gate of the second counter (as described here).
    You may want to check this link as well.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Measuring frequency with counter or analog input?

    I have some frequencies which I need to measure. Some signals are digital and some are analog.
    I have a PXI-6040E DAQ which has both counters and analog inputs. 
    I heard that you can measure higher frequencies with the counters than with analog inputs.
    What is the range of frequencies an analog input can determine versus a digital counter? 
    Where is the cutoff that you must absolutely use a digital counter to determine the frequency?
    Is the cutoff different for different DAQ cards? Or is generally the same.

    Have you looked at the specs for the device? The max sample rate and the max counter input will be listed there. The max frequency for an analog input is based on nyquist sampling theory. Are you at all familiar with? It states your sampling frequency has to be at least twice the frequency you are measuring.
    Since each device might have a different max sample rate, your last question is answered.

  • 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

  • Digital (square) signal error

    Hello
    I have a problem with MultiSIM 9.0.155.
    I have built a circuit shown on this picture http://img237.imageshack.us/img237/9764/digitaltoa​nalogcircutzw1.png.It is supposed to convert a digital (4bit) signal into analog signal (by it's value) so that when the digital signal is 0000 the analog value is 0V, and when it's for ex. digital sig is 1111 the analog value is of 2V... (this circuit uses a two 8-LED bars to indicate which "switch is on", and there isnt an analog signal output yet...)
    This circut should work fine, but: When I tried to simulate a 4bit value with a four function generators (with frequencyes set to 1Hz, 2Hz, 4Hz, and 8Hz) the result is something like this:
    http://img528.imageshack.us/img528/4268/digitaltoa​nalogcircutpoig1.png. In this picture the 4 keys are unpressed, and even then i still have a signal like that on the picture...??
    I replaced four function gens with 4 batteries as a source but still the  signal is the same??...-> an square alternating current with rising and falling edges...
    Here is a closer picture with the batteries as a sourcehttp://img300.imageshack.us/img300/9616/digitaltoa​nalogsourcera4.png.
    I don't know if something is not set properly (but it shouldn't get an square signal with the batteries as a source and the 4 keys unpressed), so if anyone sees what's the problem post an answer please.. 
    I have tried to restart MultiSIM but still with the same results...

    Hi there,
    I'm not sure how you created this schematic, but somehow, the 4 nets (a.k.a wires) that you are measuring have the same name! When Multisim starts simulating, it treats all wires by the same name as a single electrically connected wire. That is why you saw the same signal on all 4 channels of your oscilloscope. There is a way to fix this:
    Right click on one of the wires, lets say the one you labeled bit 0
    Click properties
    Change the net name to b0
    Click OK
    Multisim is going to tell you that you have other wires that have the same name but are not connected. Tell Multisim that you do not want to change the names of the other wires.
    Now repeat this for the remaining 3 bits, but name them b1, b2 and b3
    I bet there may be other wires in your design that have the same problem. Unfortunately, I think you will have to manually go through your design and find them all.
    If you ever find out what you did to make this happen, please let us know. We are always interested to know how to make Multisim easier to use so that mistakes like these don't happen.
    Hope that helps!
    Message Edited by yyao on 02-05-2009 05:26 PM
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • Measuring varying frequency with 9401

    I need to measure a varying frequency with a 9401 in 9178 chassis.  I am using an Express VI.  I have the input connected to the 9401 terminal and can read counts just fine expect that the counts per second vary.  I compared this to a scope and see that the pulse width varies and thus my frequency varies.  When I attempt to measure frequency, I get errors that no data was measured.  I also see the note in the Express VI to connect the input to PFI0.  This I do not understand.  Can someone help me?

    I am using the DAQ Assist Exp VI.  For grins, and to learn, I connected my signal wires to the PFI0 BNC and got an RPM signal.  This answered my question if I really need to do this but it does not answer my question of why?  At this point that does not matter because ultimately I am not after RPM or frequency.  I am really after a steady pulse rate which I also learned is not possible.  The system I am using has an inherent varying flow rate which results in a varying pulse rate.
    So here is where I am at.  I have two of my flow measurement systems in line measuring the same flow.  They are indicating about 0.3% differece after accounting for thermal expansion of the fluid.  The flow rate is on the order of 0.42 mL.  I am then converting this to gallons for the user to better understand but that makes the number really small.  I am suspecting that, because the flow rate is so small and because I am adding each second of mL flow, I am gettng an accumilation error with such small numbers even though I am using double-precision.  My next attempt is to not convert to gallons until all the calculations are complete.  This will allow larger values in the interium calculations.
    Your thoughts?

  • Random square signal

    How do I generate a random square signal of limited duration sign? I mean something like this:
    Please help me
    Attachments:
    signal.jpg ‏16 KB

    Enclosed VI generates finiti signal of amplitude A and with "Length"  elements.
    Regards,
    Andrej
    Attachments:
    Generate Random square Signal Finite.vi ‏13 KB

  • How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

    How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.
    Solved!
    Go to Solution.

    By the time you spend for the nice diadram you might have done the vi
    Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)
    If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 
    Since I don't want to wire others homework here are some pictures
    And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....
    Spoiler (Highlight to read)
    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 ǝɥʇ'

  • Is there a way to use my iPod Nano to listen to a radio frequency with wireless headphones.  It tells me that I have to plug in my headphones to receive the stations and when I do, the wireless headphones don't work!

    Is there a way to use my iPod Nano to listen to a radio frequency with wireless headphones.  It tells me that I have to plug in my headphones to receive the stations and when I do, the wireless headphones don't work!

    No. I'm sorry. But, i think it uses the headphones as an antenna so it has to be plugged in to headphones in order to make it work. but, it burns the battery down so i don't use the radio function that much.

  • Busy signal when faxing with hp officejet 6600 all-in-one

    I keep getting a busy signal when faxing with all numbers.

    Hi @pbr69,
    Welcome to the HP Forums! 
    I noticed that you are getting a busy signal when faxing with the HP Officejet 6600, and I am happy to help!
    I would recommend to look through this faxing guide, to make sure it is properly configured. Cannot Send or Receive Faxes.
    Also depending on the type of phone connection you are using you may require a different type of configuration. Please also see, How to connect your HP Fax Device to an ISDN, ADSL, PBX, or VoIP line, if you are using one of those types of lines.
    Hope this information helps, and have a wonderful day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Send a square signal

    I have a PCi lab card 6025. i need to control one pump, by sending a square signal, between 0 and 5 Volts. I need to send a signal in intervals of 1 second. Could anyone tell me something about this?

    Hello;
    That is a simple application which has several examples you can use as your start point. As you weren't specific on what programming language you are using I can't point you to a specific example.
    As you need one point per second, you just need to specify the Update Rate of your code to be 1, and then change the data points of the array to be written to the output channel to meet your application needs.
    Hope this helps.
    Filipe

  • Digital square signal

    Hi all,
    I want to verify if my digital square signal turn on or off. If someone Has a idea, please help me
    I created a Mask, in such a way that if my signal leave the Mask. I will have a Message Error. It's work but I should each time modify the values of Culsters of the function 'Limit Specification" If I change the Signal
    You Will find in the attached file the block diagram.
    Thank you in advance for your answers
    Best Regards
    Solved!
    Go to Solution.
    Attachments:
    Digital-BD.JPG ‏48 KB

    Do you want to do this comparison on the fly or post processing?  You are currently doing a post processing.
    I'm not understanding exactly what you are looking for.  Are you just looking for when the value changes?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Sweep frequency with NI 5673E

    Hello! I'm want use NI 5673E generator. In the examples I found the "frequency sweep" example for 5673E.  
    My question is: what is the maximum speed of the generator can sweep. How to estimate time the frequency sweep program? For example, I have the frequency range from 2 GHz to 3 GHz, step 1 MHz. How long will it take?How much is the shortest time it can
    sweep the frequency with step = 1 MHz, 0.1MHz? Milliseconds, microseconds can nanosecond?
    Solved!
    Go to Solution.

    Hello,
    Using RF List Mode on your PXIe-5673E will be the most efficient approach for your sweeping application.  The smallest step time you can get is 5 us on this hardware.  However, the speed at which you sweep should be a factor of your specific requirements, such as frequency and power accuracy (more tuning time needed for better performance).  Larger step sizes will require more tuning time for equivalent performance.  It is also worth noting that the maximum amount of steps (limited by onboard memory) in List Mode is 250.  This means that you'd need to reconfigure your sweep after 250 MHz (1 MHz/step * 250 steps) in software.  At that point, your total sweep time will be a function of your computer performance.
    I would recommend you take a look at the PXIe-5673E's specifications starting on page 5 to read about tuning times.  Also, here is a link to the deprecated documentation we have online for RF List Mode:
    Configuration List - http://zone.ni.com/reference/en-XX/help/371025K-01/TOC112.htm
    For the most up to date and complete documentation on RF List Mode, please refer to your computer's RFSG help documentation.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

Maybe you are looking for