Measure a Voltage Pulse

I have a tachometer used to measure our centrifuge that puts out 5v every time it makes a full turn. I need to read the frequency of this 5v blip (0 volts otherwise) in Hz or RPM's - (Prefer Hz). I am not sure how to build this VI in labview, as I become confused on what to do after the voltage is acquired. From there can I measure the frequency of this 5v pulse that is generated? Which function would be best for this? I should be able to do the math from that point. Or would I use some kind of counter?  I am fairly new to labview; plan on taking courses but as of right now any help would be greatly appreciated. Thanks!
Chris
Attachments:
Centrifuge Tach.vi ‏50 KB
Centrifuge Tach.JPG ‏15 KB

Choover wrote:
I have a tachometer used to measure our centrifuge that puts out 5v every time it makes a full turn. I need to read the frequency of this 5v blip (0 volts otherwise) in Hz or RPM's - (Prefer Hz). I am not sure how to build this VI in labview, as I become confused on what to do after the voltage is acquired. From there can I measure the frequency of this 5v pulse that is generated? Which function would be best for this? I should be able to do the math from that point. Or would I use some kind of counter?  I am fairly new to labview; plan on taking courses but as of right now any help would be greatly appreciated. Thanks!
Chris
You are reading the Tachometer input that is giving 5V pulse when it completes a rotation. You tried to compare it with "5"?
Analog input will never give you a value exactly what you are expected, it should always have tolerrance of atleast 2% added to your expected input.
I have added a quick example on calculating RPM Value this may not give you precise result but it will give a kick start for you to use low level VI's
Good luck
The best solution is the one you find it by yourself
Attachments:
Centrifuge Tach.vi ‏17 KB

Similar Messages

  • Measuring time between pulses to find velocity

    Hi all!
    I'm trying to program a velocity monitor to keep track of how fast a motor is going so that I can start a recording once it reaches my desired constant velocity.  I'm measuring the velocity of my motor with a light sensor that senses a piece of white tape attached to the outer edge of my motor (aka, it pulses once per rotation)  which means that if I know the time between pulses I can calculate the velocity.  I think I understand how to do this for one iteration but I want to keep on measuring the velocity after I tell it to change until it's the constant velocity I desire. Can anyone help me with a program to continually measure the velocity?
    Thank you,
    Lost Student

    OK, I set it up as follows but I'm not getting very logical numbers.  For a fairly constant rate they vary in series like 6, 3, 1.5, 2, ext which would mean I'd be going something like 1 rotation every ms, which I am not doing. Do I need to change something in the DAQ assistant?  I think Citabria's program is measuring the the total sample times before the T/F is satisfied, which would solve for the time between high voltage pulses but I'm not sure how his program adds the times.
    Thank you
    This is what I'm measuring, there is a 10v pulse every time the white tape is hit with a light

  • I'm trying to set up a DAQ assist just to measure some voltage, how do i get the graph to start from 0 (time) every time I press run

    Hi all,
    I am trying to set up a simple DAQ assist to measure some voltages (currently a 9 volt battery to aid set up), when choosing to use a waveform chart to log the voltages the graph doesnt start from 0 (time seconds) how do I do this and get it to reset every time I press run or even stop.
    What I want to see at the end is a chart for the full lenght of the test showing voltage against time in seconds.
    Any ideas peeps
    many thanks
    Shane

    Hi Shane,
    Look at this VI
    Here, I clear the chart before running the VI, using a 'history data' property node ( i pass an empty array to clear it)
    In effect, each time you run the VI, the chart will begin at 0:00
    Hope this helps
    Regards
    Dev
    Attachments:
    chart_start.vi ‏20 KB

  • Can the analog inputs be daisy chained to measure higher voltages?

    Can the analog inputs of a PXI-6289 be connected in series to measure higher voltages than normally allowed at the analog inputs of the PXI-6289 (i.e. 10 VDC)?  For example, let's say I wanted to measure 18 VDC using an analog input channel of the PXI-6289.  I would then pick two AI channels and connect the positive of one to the negative of the other and then the two remaining leads would be placed across the 18 VDC.  Resistors could also be placed across the 18 VDC to form a votage divide.  One AI would measure the voltage across one resistor and the other AI would measure the voltage across the remaining resistor.  I have tried this and the voltage measurements appear to loose accuracy.  Thank you for your help.

    Hello Rafi,
    You may want to invest in a high voltage attenuator for signal conditioning prior to reading the signal.  The documents below may also be helpful:
    High Voltage and Isolated Measurements
    http://zone.ni.com/devzone/cda/tut/p/id/10693
    High-Voltage Measurements and Isolation
    http://zone.ni.com/devzone/cda/tut/p/id/3410
    Regards,
    Roman Sandoval | National Instruments | RF Systems Engineer

  • Trouble using one Keihtley 2400 to preform a current sweep to drive a laser diode and use a second to measure a voltage from a laser power meter.

    I am trying to drive a laser diode with one 2400 Sourcemeter using a current sweep, while simultainiously measuring the voltage of the analog output of a Thorlabs Pm100a powermeter. I have been attempting to cobble together the triggered measurments example with the sweep and measure example, but I cant quite figure it out.
    Attached is the franken-vi I have created.
    Any help is greatly appreciated.
    Dan R

    Are you getting any error codes when trying to run this modified VI? What are the results when running?

  • DAQmx Counter Input Measure a single pulse's pulse width

    Trying to measure a single pulse's pulse width. It appears that the DAQ only makes the measurement on the read command instead of after starting the task. I just get a timeout error. Is there any way to arm to counter for measurement or am I better off making a seperate thread to trigger my single pulse?
    double measured;
    int numSamp;
    TaskHandle taskHandle;
    DAQmxCreateTask("", &taskHandle);
    DAQmxCreateCIPulseWidthChan(taskHandle, "Dev1/ctr0", "", 0.025, 0.120, DAQmx_Val_Seconds, DAQmx_Val_Rising, "");
    DAQmxSetChanAttribute(taskHandle, "", DAQmx_CI_PulseWidth_Term, "/Dev1/PFI10");
    DAQmxStartTask(taskHandle);
    //Trigger the single pulse here
    DAQmxReadCounterF64(taskHandle, DAQmx_Val_Auto, 10.0, &measured, 1, &numSamp, NULL);
    Thanks,
    Dan

    Which device are you using?
    If you configure implicit timing (DAQmxCfgImplicitTiming) your measurements will be buffered and will begin when the task is started.  The minimum buffer size is usually (always?) 2 samples, but that doesn't mean you have to read two samples back.  
    Best Regards,
    John Passiak

  • MSI 6600GT AGP - Measured fan voltage

         I wanted to know exactly what was going on with the fan on my MSI 6600GT AGP so I measured the voltage. The fan runs at a constant 12 volts even under load. No matter what temperature the card is the fan runs at full rpm's.
    I'm not sure if this a change from earlier revisions, because this is my second 6600GT. The fan on the first one seemed to vary the fan speed going by what I heard, but I never had a chance to actually measure it. So I could be mistaken and it also was running at full rpm's all the time.

    Quote from: Glenn on 27-February-05, 07:49:55
    I had the exact same thing happen with my X800 but in reverse, the one I currently have seems to vary fan speed, I can tell at startup, the fan is pretty loud, at first I thought it was my burner but after investigation, I see that it is my card. My son has the other one and it runs constant, but it isn't much louder as I remember. He has case fans that are louder.
    For me, it's a no care item. That may be a different story for you.
    I'm glad it is running constant because if it wasn't I was ready to mod it. It's not loud at full voltage either so its better all around IMO.

  • Can I measure AC voltage using FP-AI-102? I want to measure in the range of 0-120 VAC

    Can I measure AC voltage using FP-AI-102? I want to measure in the range of 0-120 VAC

    Hello Luis,
    The update rate on the AI-102 module is 360Hz, which means that you can only accurately acquire waveforms with frequencies below 180Hz. 
    FieldPoint wasn't made for high speed measurements, so you will have to make sure that you are able to acquire the waveform you want to with the hardware that you have.
    If you want to know how you would do the acquisition, I urge you to take a look at the LabVIEW shipping examples.
    Help»Find Examples... and browse to Hardware Input and Output»FieldPoint»Analog IO
    As for writing to the file, you can take a look at examples under Fundamentals»File Input and Output.  You can use the functions included in the Functions Palette under Programming»File I/O.
    I hope that this helps!
    Kameralina
    Ask NI (ni.com/ask)
    Search The KnowledgeBase
    NI Developer Zone
    Measure It. Fix It. ni.com/greenengineering/
    NI Vision ni.com/vision/

  • Is it possible to measure ac voltage using cFP-AI-100​?

    I have the cFP-AI-100 module.. is it possible to measure ac voltage with this analog input module?
    Is there is any specific module?

    Hi ELUE,
    I will need a little more information to give a good recommendation.  What range of voltages will you be measuring?
    The following link will bring you to all the analog input compact FieldPoint modules we have:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/115​75 
    Other things we need to consider is what frequency the signal will have, and if we need isolation between the channels.  Any further information would help.  Have a good day.
    Brian K.

  • Measuring the voltage of series connected batteries

    Hi, I am using the ADC of PIC18 to measure the voltages of the battery bank in which the batteries are connected in series. I have to measure the voltages of each battery in the bank. I am using differential op-amp with voltage divider to bring the voltage into the range of the ADC. Now as the batteries are connected in series so when I connect it with the circuit it is measured as zero. while not connected in series the measurement is fine. I need soluton for this problem any help will be greately appreciated. what should I do to measure the battery voltages while connected in series. Thanks
    If you are young work to Learn, not to earn.

    Do you have a wiring diagram or circuit to show your setup?
    What is the voltage of the batteries?  What is your supply voltage for the Op-Amps?  How many batteries?
    What I'm guessing is that the common-mode voltage of the battery is higher than the supply voltage and therefore both sides of the differential op-amp are railing and therefore no difference.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Measuring network voltage

    I have scxi 1327. The gain is set to 1/100, so when i measure AC Voltage directly from the grid i have max 303V instead 222*sqrt(2)=313V (the grid voltage measured by a multimeter is 222V). In Measurment and automation studio everything is set correctly. Is it something about the max voltage that i can measure or... Thank you

    Hello;
    The multimeter will give you the RMS voltage of the measurement, while MAX and Labview will give you the actual instant value, which will register all picks of ths waveform that is being read.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Measuring DC voltage

    Hi Am trying to Measure the Voltage of a 9V Battery.After disconnecting the battery the value of the voltage in the indiacator in the VI goes down very slowly instead of falling to zero immd.Am using AI sample channel.vi to get the output from the virtual channel.How can I bring it down to zero as soon as the battery is disconnected?

    I´m using LabVIEW 8.0 with Real Time 8.0 and a Desktop PCs as RT Target.
    In the host.vi, I have a Waveform Chart, and a cluster with four double controls to pass the values of the Frequency, Offset and Amplitude. I have created with the cluster a custom shared variable.
    In the traget I have within a Timed Loop the Simulated Signal.vi and a Shared variable, double one. I have selected both shared variables to be Network-Published, and the period of the Time Loop is 1 ms.
    I intend to be able to change the senoidal waveform´s amplitude and frequency while running, but I don´t get any value. I have reproduced the vi to run just under the LabView in local mode, without the RT target, and it works fine, although I can not get the frequency to mach the time...  
    Any idea why my system does not work.
    Simbani     

  • Is it possible to measure single voltages without creating a new task every time

    I need to take voltages as input in the event loop of a program. If I create a task, take a measurement, then stop the task I get roughly 10 - 20 measurements a second. Is this the most efficient way to do this, I would need many more measurements, but have to do other things in my program in between?

    Nevermind, found my answer in other threads.
    Looks like there's no real work-around.  It may be too that it is creating new clips on dropped frames.
    Not sure.  testing different theories.
    Thank you!

  • DAQmx - Measuring only the pulses w/o pauses of a pulse train

    Hi everyone,
    I've got a problem which I hope you can help me with.
    I'm using a NI 4461 PXI DAQ-card on a PXI realtime system and LabView 8.5.
    I'd like to measure a pulse train @ 1900 Hz with very low duty cycle. In order to reduce the aquired data, I want to measure not the whole train but only the pulses leaving out the pauses in between. I set up the task to aquire a certain amount of pulses (100) at the maximum sampling rate (204,8 kHz) with a definite numbers of samples per pulse (50) and using an available trigger line to trigger the measurement of the individual pulses. I thought to set the Read out butter size to (number of pulses) * (samples/pulse) = 5000 to be able to first measure the high frequency pulses and read them out after the number of pulses is reached.
    But unfortunately it's not working at all.
    Could you tell me, how to configure a task to do that job, please?
    Thanx in advance,
    Ralf

    Hi Ralf,
    Thanks for posting your question here. Are you still working on that issue? When you have done this, do you use the DAQmx-VIs or do you use a DAQmx-Assistant to configure the acquisition? There is also a website helping you to begin this ni.com/gettingstarted or this tutorial.
    Feel free to post any other questions here regarding this topic.
    Regards
    TomBaum

  • Trying to trigger multiple analog measurements with each pulse of a 500PPR encoder

    I am trying to take multiple analog measurements form 6 sensors with each pulse of a 500 ppr encoder and write these to a file.  Problem I have run into is I am not getting 500 readings with 1 revolution of the encoder the most I have received is 187 however this isnt consistant.
    using
    6024 E Series card
    BEI L25G encoder
    Still relatively new to labview along with using an older version 7.0
    Thank You in advance
    Solved!
    Go to Solution.
    Attachments:
    Rotary.vi ‏213 KB

    Never mind after looking at it somemore i found i was using the wrong sample rate

Maybe you are looking for