Measure speed

Hello,
I want to measure the speed through an encoder.
So My system is composed by
- a PXI 1000B with 2 6025E
- on the first 6025 E, I connect a BNC 2090
So I used the BNC 2090 to connect the encoder with the user BNC and PFI7.
In my application, I synchronize the signal of the BNC2090 and the signal of SCXI1112 connecting to the second 6025E.
But in my application, I don t know how to have the same scan rate for the speed. For the moment I use the Measure frequency.vi but I have the speed only every 0.2s and I need every 0.01s.
So I can I proceed.
Thanks

Hi mous,
Try taking a look at the example: "Measure Buffered Period (DAQ-STC).vi" in
the examples bundled with LabVIEW.
Knowing the gating time and number of encoder pulses per unit, its easy to
calculate the speed in units per second.
Happy Wireworks
Hans Christian
"mous" skrev i en meddelelse
news:[email protected]..
> Hello,
>
> I want to measure the speed through an encoder.
> So My system is composed by
> - a PXI 1000B with 2 6025E
> - on the first 6025 E, I connect a BNC 2090
> So I used the BNC 2090 to connect the encoder with the user BNC and
> PFI7.
> In my application, I synchronize the signal of the BNC2090 and the
> signal of SCXI1112 connecting to the second 6025E.
> But in my application, I do
n t know how to have the same scan rate for
> the speed. For the moment I use the Measure frequency.vi but I have
> the speed only every 0.2s and I need every 0.01s.
> So I can I proceed.
>
> Thanks

Similar Messages

  • How to increase measuring speed of Agilent 34401A

    The process of my program (written in Labview) is:
    1) A control code is automatically generated by the program, and the code is sent to multiplexing circuit (the chips I used are ADG706) through digital port (USB6501 from NI)  then a coresponding channel is selected. (for example code hex0000 selects 1st channle,0001 selects 2nd channel, and so on......)
    2) Multimeter Agilent 34401A measures the current value of this channel, and send this value back to the computer for storage. After this, the program goes back to step 1) for next channel, and this program executes like this.
    The functions mentioed above are all realized, and the program works well, but the problem is the speed is slow. It takes a little more than 1 second to measure one channel, totally I have 2048 channels (32 groups and 64 channels in each group, I used two layers of "for" cycles), and it takes about 32 minutes to finish measure all these 2048 channels, too slow, I'd like to reduce them to 10 minutes.
    I tried to reduce the resolution to 4.5, turn off the autozero function of multimeter, but nothing happens, no change of the speed. Now every time the multimeter measures a channel, it makes a "click" sound, does it mean that every trigger the multimeter only takes one measurement? Is there anyway I can increase the measuring speed? Can I send the multimeter 64 control condes a time, and then let the multimeter takes 64 measurments in one trigger? Is it right? If so, how can I realized it?  If I'm wrong about it, can you give me some solutions?
    Thank you very much! 

    I don't have the manuals with me, but I do have a couple of these in my lab.   There is an internal buffer where you can store (I think) 512 readings.   You can use a digital output to trigger the DMM, and only transfer after every 512 readings (4 times) or perhaps one read per group as you mentioned.  I suggest one read per trigger (you can do many more) since it is easier to synchronize with your channel changes.  I believe the commands are INIT and FETCH?, check your manual.  The two times I know the instrument "clicks" are changing functions and certain range changes.  I suspect in your attempts to speed things up you are sending some config. commands each time.  Configure it once initially and make certain you are only sending measurement related commands during the scan, any config. changes (even if you resend the current value) will likely cost you time. 

  • What sensor should be used to measure speed of motor

    Hi,
    I am using NI PCI-6624 to control the speed of dc motor. I have used "PWM-Counter Output.vi" example to generate PWM pulses to control the input power of motor. I am using "counter output" and "analog input" terminals of PCI-6624. Counter output terminal is used to generate PWM signal and "analog input" terminal will be used as an input from speed sensor.
    Can someone tell me what sensor I can use to measure the speed of motor. Please note that the output of the sensor will be the analog input to PCI6624, so it is essential that speed sensor's output is ANALOG.
    Please help me in this matter and tell me which sensor can be used and from where I can buy it ?
    Thanks

    Ayaz,
    the straight forward low-cost solution for velocity measurements is using a quadrature encoder. With your  DAQ device you could use the second counter of the board to measure the frequency of one phase, but that's jus one option amongst others.
    I haven't come across sensors that output a voltage that is proportional to velocity but expect such a device to be much more expensive and probably less accurate.
    Do you plan to do closed loop velocity control? Are you using Windows or a realtime system?
    Kind regards,
    Jochen Klier
    National Instruments

  • Measuring speed of execution of loops

    Hi,
              I wanted to know how to measure the speed of execution of each loop in case of a stached sequence structure. The loop basically has an input for steps for measurement of the Capacitance Voltage characteristics. Now, I was keen to know how do I measure the speed of operation during any particular step. I found something was the Profile VIs but is there any better way to measure the speed of operation? I am attaching herewith the VI that is being used.It has several sub-VIs.But, YOu can just get an idea of what I need by browsing through this VI.
    Attachments:
    CVWAIT33.VI ‏85 KB

    In general, a good timing device is a 3 frame sequence. The first and third frames have a ms counter (from the Time & Dialog palette) and the second has the code. Then, you substract the value in the first frame from the value in the third and you know how many ms it took. The problem is that many things take less than a ms to execute and that is something you can only measure statistically, by running your code many times in a for loop (let's say a million times).
    If you want iteration times, you can accomplish the same by using a shift register to keep the value of the ms counter from the last iteration and substract it from the current counter value.
    Try to take over the world!

  • Measuring speed with incrementa​l single counter

    Hi,
    I need to measure the rotational speed and acceleration of a wheel that has 3 hall sensors on it. I will use only 1 of them en it gives 24 pulses 0-5V for a 360° rotation. How can I measure the speed with only a pulse train. I dont have the Quadric encoder...
    Now I'd like to measure the rotational speed using a counter of some sort, but the software I tried writing for it isnt working.
    Thank you for your help

    Hey Nitch,
    Concerning the measurements errors:
    As you get error when speeding up, it looks like the pulses coming from the hall sensors are to short to get measured by the counter.
    Following the USB-6008 specifications, the pulse needs to have a minimum lenght of 100ns (both in high and low state).
    As a counter is using edges to count the pulses (for USB-6008 only the falling edge) the edges need to comply with the TTL specifications which means that the rise and fall time of the pulse needs to be within the 50ns range. 
    So please have a look at the pulse lenght at higher speeds (are they at least 100ns?) and make sure the pulse comply with the TTL specifications.
     If not you will have to add some additional electronics to reshape the pulses.
    Looking at your program.
    It's not nescesarry to have two loops.  It's very well possible to have two DAQ tasks within the same look.
    Have a look at the Examples which come with LabVIEW --> Exampled Finder --> Hardware Input/Output --> DAQmx --> Synchronization --> Multi-Function.
    There are some examples which so the combination of analog and digital input.
    Anyhow you will have to remove the right while loop as the DAQ Express VI which apparently gives you the "spanning, stroom, gashendel" values will only start once you have done the counter measurements.  I assume that you would like to have the "spanning", "stroom", "gashendel" and"speed" synchronized measured.
    Then you have the choice to log to file during acquisition or after the acquisition.
    If you would like to log on the fly don't use the express VI's, but use the lower lever "File I/O" functions. These are faster (less processor time usage).
    As you VI is written now, the left while loop will only output the lastest counter value measured to the next loop when you click the stop button for example.
    You have to "Enable Indexing" of the m/s output tunnel.  Right click on the tunnel and you will be able to select "Enable Indexing".
    This way the application will automatically create an array and each loop iteration the measured value will be added.  One the measurements have been done you can do analysis and save the data using the full array instead of point by point.
    Again, also bring your "spanning, stroom and gashendel" inputs to the left loop.
    In your right loop you also have a loop counter.
    You can simply use the loop iteraction counter (the square box in the left bottom corner with the i).  This is also counting from 0 and incrementing by 1 each loop iteration.
    Again, you can do this in the left loop and forget the second loop completely.
    Hopes this will bring you a step further.
    Don't hesitate to post the VI itself.  This is always easier to look at than an image.
    This way we can also make some modications and post it back.
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!

  • Using a microphone to measure speed

    My problem is that i am trying to measure the speed of a fan using a microphone with labview, any ideas??????

    And I thought this would be a tough one....
    Input the microphone to your sound card, Run the fan and capture the sound. Send the sound through an FFT. If the microphone is placed near the outside of the blades, facing the output of the fan, you will get a "beat frequency" of the fan blades. This will give you a very low frequency. Divide by the number of blades and 60 and you will get the RPM of the fan.
    What you are trying to do is to isolate the frequency that occurs when a fan blade passes in front of the microphone, compressing the air, pushing the cel of the mic in, then the blade passes, decompressing the air (in relative space of course), pulling the cel out. This is a very strong component of the sound you will measure with the mi
    crophone, and should be very easy to see in the FFT. If you want to get fancy, you can isolate this peak in the FFT, apply the math to convert it to RPM, and output the fan speed.
    Good luck. 'Sounds' like fun...

  • Measuring speed, both Broadband and LAN

    Hi,
    Can someone please advise me of a reliable method of measuring the speed i'm getting on my broadband.
    I've tried speedtest.net and thinkbroadband
    Speedtest.net showed 94Mb/s with one PC connected to the gigabit port on the homehub when the BT man was here. Now the best I get is about 50, but normally about 25 with the same setup, and other computers on the network drop as low as 12.
    For the LAN PCs, are there any recommended tools I can use to try and figure out what's causing the slowdown?
    For the actual broadband speed, what should I be using to measure this?
    Thanks
    J

    Hi,
    Thanks for the replies,
    Yes, i'm on the FTTP trial.
    Here's my test results from the PC connected directly to the router at 100Mb/s earlier today.
    Test1 comprises of two tests
    1. Best Effort Test: -provides background information.
    Download Speed
    57590 Kbps
    0 Kbps
    106417 Kbps
    Max Achievable Speed
    > Download speedachieved during the test was - 57590 Kbps
     For your connection, the acceptable range of speedsis 12000-106417 Kbps .
     Additional Information:
     IP Profile for your line is -106417 Kbps
    2. Upstream Test: -provides background information.
    Upload Speed
    14759 Kbps
    0 Kbps
    15000 Kbps
    Max Achievable Speed
    >Upload speed achieved during the test was - 14759 Kbps
     Additional Information:
     Upstream Rate IP profile on your line is - 15000 Kbps
    And here's one from just now. I guess we're in to peak time now.
    FAQ
    Test1 comprises of two tests
    1. Best Effort Test: -provides background information.
    Download Speed
    55688 Kbps
    0 Kbps
    106417 Kbps
    Max Achievable Speed
    > Download speedachieved during the test was - 55688 Kbps
     For your connection, the acceptable range of speedsis 12000-106417 Kbps .
     Additional Information:
     IP Profile for your line is -106417 Kbps
    2. Upstream Test: -provides background information.
    Upload Speed
    10372 Kbps
    0 Kbps
    15000 Kbps
    Max Achievable Speed
    >Upload speed achieved during the test was - 10372 Kbps
     Additional Information:
     Upstream Rate IP profile on your line is - 15000 Kbps

  • Digital frequency measurement speed in labview

    I am using a USB 6210 device to measure low frequencies of 50 to 1000 Hz. I need to log the frequency every 50ms. I do this in a while loop in labview using a 1 counter low frequency measurement in labview and saving the data using express VI.Each iteration of the loop takes atleast 60 to 100 ms just to read the frequency inside the loop. How do i increase the speed of measurement in Labview ?
    Solved!
    Go to Solution.

    PraveenB,
    Here is a table of the Counter terminals and related PFI lines.  This can be found in the NI DAQmx Help. (http://digital.ni.com/public.nsf/allkb/CCDFC93878BD8781862570FC00559980?OpenDocument)
    Default NI-DAQmx Counter Terminals
    Counter/Timer Signal
    Default Pin Number
    Signal Name
    CTR 0 SRC
    1
    PFI 0
    CTR 0 GATE
    2
    PFI 1
    CTR 0 AUX
    1
    PFI 0
    CTR 0 OUT
    6
    PFI 4
    CTR 0 A
    1
    PFI 0
    CTR 0 Z
    3
    PFI 2
    CTR 0 B
    2
    PFI 1
    CTR 1 SRC
    4
    PFI 3
    CTR 1 GATE
    3
    PFI 2
    CTR 1 AUX
    4
    PFI 3
    CTR 1 OUT
    7
    PFI 5
    CTR 1 A
    4
    PFI 3
    CTR 1 Z
    2
    PFI 1
    CTR 1 B
    3
    PFI 2
    FREQ OUT
    8
    PFI 6
    When you choose counter 1 in the Create channel VI it automatically reserves the gate which is PFI2.  If you use Counter 0 then PFI 2 will work fine.  Likewise if you use Counter 1 you can use anything but PFI 2.
    Message Edited by Jason_D on 10-24-2008 11:43 AM
    Sincerely,
    Jason Daming
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Measure frequency of Z pulse of an accu coder shaft encoder to measure speed using an 6034 E card

    Hi,
    I would like to measure the speed of a engine which has an accu coder encoder hooked onto it. It provides 3 pulses A, B, and Z. I am using a 6034 E PXI card. I wanted to know if there are any examples/ideas that could help me with this (I am new to the digital programming in Labview). I have moved to NI Daqmx 9.8 recently from the older version which supported legacy codes and hence in process of updating the code. I also want to know if an external clock source is required to do this. this. 
    Solved!
    Go to Solution.

    Hello,
    There are several examples in the NI Example finder (you can get here by going to Help >> Find Examples in a LabVIEW window). You can browse to the encoder examples by going to Hardware Input and Output >> DAQmx >> Counter Input. You should be able to find a few examples that will be helpful. 
    Also, this link is a good resources for getting started using DAQmx: http://www.ni.com/white-paper/5438/en
    Thanks!
    Stephanie S.
    Application Engineer
    National Instruments

  • Agilent E4980A Measurement Speed and Data Acquisition Speed

    I am using E4980A LCR meter, I need very fast data aquisition unfortunately limited by device own speed with 5.6 ms per measurement which means nearly 178 Hz. I am using usb interface with the software provided by NI, in that program I made some modification taking the reading side of the programme in a while loop .
    To test my speed I start the program count 5s and stop saving the results to an excell file. If I plot the results in a graph while programme is working I have 60 Hz speed. If I don't, then it is 80 Hz which are far below the potential maximum speed of 178 Hz. If my lap top battery is very low then my speed is worse. But with no battery problem, my celeron laptop performance is the same as an i7 laptop.
    Here it is my programme, it is the same provided NI but some modification. What can I do to have higher data acquisiton speed ?
    Probably, USB's speed is not enough but I can not believe that while it can save gigabytes of data in a few min can't take 200 datapoint in 1s. Why can't I have 178 Hz speed now and how can I reach this limit ?
    Regards.
    Attachments:
    Read Measurement.PNG ‏44 KB
    Read Measurement.PNG ‏44 KB

    Instrument communications via serial, USB, Ethernet, GPIB, etc just tend to be slow.  The instrument has to interpret the data, react to it, and then send data back.  That takes time.  A few ms per measurement is quite normal.  One option you might have is you could tell the instrument to take several measurements and then request all of the measurements once it is done.  I haven't looked into the E4980A yet to see if it can do that.
    What exactly are you trying to measure.  There might be better ways to get "fast" readings.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Measure speed of wireless?

    My wireless performance using Time Capsule seems sluggish.  How can I measure?

    Thanks for the info. You can use a utility like www.speedtest.net on her computer to test the Internet connection speed and compare that with the plan that your service provider is furnishing to you.
    What download speed do you see here? 
    Do other sites download slowly as well, or it just this one?
    How many walls and/or ceilings are in the signal path between the main wireless router and her computer?
    Have you picked up any new cordless phones recently, or moved them around?
    It is normal for the wireless speed to be less than a direct wired connection due to some loss in the wired to wireless conversion process and wireless security settings. The connection speed will also fall off with distance and obstructions in the signal path, as well as wireless interference from cordless phones, other wireless networks at the neighbors, and wireless camera/security systems.

  • Kernel patch for more CPU families offers measurable speed increases

    I wanted to show folks a pretty nice patch that allows one more options when compiling a kernel for CPU families.  Complete list included at the bottom of this post.  I tested it using three different x86_64 machines running a generic x86-64 kernel and an otherwise identical kernel running with the optimized gcc options.
    Conclusion: There are small but real speed increases using a make endpoint to building with this patch.
    Details:
    1) Three test machines: Intel Xeon X3360, Intel i7-2620M, Intel Core i7-3660K.
    2) All ran the make benchmark (linked below) 35 times while booted into a 'generic' kernel. Then all ran the same make benchmark 35 times after booting into an optimized kernel. Below are the optimizations chosen for each machine.
    2a) X3360 = core2
    2b) i7-2620M = corei7-avx
    2c) i7-3660K = core-avx-i
    3) Analyzed resulting distributions for statistical significance via ANOVA plots that clearly show statistically significant albeit small differences.
    Discussion
    1) All the assumptions for ANOVA are met:
    *Data are normally distributed as show in the normal quantile plots.
    *The population variances are fairly equal (Levene and Barlett tests).
    2) The ANOVA plots clearly show significance.
    *Pair-wise analysis by Tukey-Kramer shows significance at the 0.05 level for all CPUs compared.
    Below are the differences in median values:
    core2       +87.5 ms
    corei7-avx  +79.7 ms
    core-avx-i  +257.2 ms
    References:
    Kernel patch: https://github.com/graysky2/kernel_gcc_patch
    Bash script that controls the benchmark: https://github.com/graysky2/bin/blob/master/bench
    Log file generated by script: http://repo-ck.com/bench/compile_time_o … ion.txt.gz
    Links to ANOVA plots:
    Complete list of x86_64 CPU Families:
    1. AMD Opteron/Athlon64/Hammer/K8 (MK8)
    2. AMD 61xx/7x50/PhenomX3/X4/II/K10 (MAMDFAM10) (NEW)
    3. AMD Barcelona (MBARCELONA) (NEW)
    4. AMD Bobcat (MBOBCAT) (NEW)
    5. AMD Bulldozer (MBULLDOZER) (NEW)
    6. AMD Piledriver (MPILEDRIVER) (NEW)
    7. Intel P4 / older Netburst based Xeon (MPSC)
    8. Intel Core 2 (MCORE2)
    9. Intel Core i7 (MCOREI7) (NEW)
    11. Intel Core 2nd Gen AVX (MCOREI7AVX) (NEW)
    12. Intel Core 3rd Gen AVX (MCOREAVXI) (NEW)
    13. Intel Core AVX-2 (MCOREAVX2) (NEW)
    14. Intel Atom (MATOM)
    15. Generic-x86-64 (GENERIC_CPU)
    Complete list of i686 CPU Families:
    1. 386 (M386)
    2. 486 (M486)
    3. 586/K5/5x86/6x86/6x86MX (M586)
    4. Pentium-Classic (M586TSC)
    5. Pentium-MMX (M586MMX)
    6. Pentium-Pro (M686)
    7. Pentium-II/Celeron(pre-Coppermine) (MPENTIUMII)
    8. Pentium-III/Celeron(Coppermine)/Pentium-III Xeon (MPENTIUMIII)
    9. Pentium M (MPENTIUMM)
    10. Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon (MPENTIUM4)
    11. AMD K6/K6-II/K6-III (MK6)
    12. AMD Athlon/Duron/K7 (MK7)
    13. AMD Opteron/Athlon64/Hammer/K8 (MK8)
    14. AMD 61xx/7x50/PhenomX3/X4/II/K10 (MAMDFAM10) (NEW)
    15. AMD Barcelona (MBARCELONA) (NEW)
    16. AMD Bobcat (MBOBCAT) (NEW)
    17. AMD Bulldozer (MBULLDOZER) (NEW)
    18. AMD Piledriver (MPILEDRIVER) (NEW)
    19. Crusoe (MCRUSOE)
    20. Efficeon (MEFFICEON)
    21. Winchip-C6 (MWINCHIPC6)
    22. Winchip-2/Winchip-2A/Winchip-3 (MWINCHIP3D)
    23. AMD Elan (MELAN)
    24. GeodeGX1 (MGEODEGX1)
    25. Geode GX/LX (MGEODE_LX)
    26. CyrixIII/VIA-C3 (MCYRIXIII)
    27. VIA C3-2 (Nehemiah) (MVIAC3_2)
    28. VIA C7 (MVIAC7)
    29. Intel Core 2 (MCORE2)
    30. Intel Core i7 (MCOREI7) (NEW)
    31. Intel Core 2nd Gen AVX (MCOREI7AVX) (NEW)
    32. Intel Core 3rd Gen AVX (MCOREAVXI) (NEW)
    33. Intel Core AVX-2 (MCOREAVX2) (NEW)
    34. Intel Atom (MATOM)
    Last edited by graysky (2013-01-16 19:14:09)

    graysky wrote:Practically, why do you need more than a few frequencies?  For example, you're idle.  I would want the lowest freq.  You're under load.  I would want the highest frequency.  For situations in between, say launching a program, or moving data, whatever, an intermediate frequency would be fine.  What do you hope to achieve with a more refined list of available frequencies?
    I agree, your CPU, in practice, is really either idle or loaded.
    In my case (AMD 965, 4 freq steps) the processor is at lowest freq for about 90 - 95% of a time, and at highest for 5 - 10%. The 2 intermediate are used for about 0.1% of a time.
    My guess would be that intermediate ones are only used for smooth transition from lowest to highest. So they really are hardware dependent...

  • Measure speed increase after coldfusion caching

    Hi,
    How can I measure how much faster my server is responding
    after page is cached. I don't have access to coldfusion
    administrator. Is there anyway I can measure server response to
    page requested before caching & after caching?
    thank you.

    Hi,
    You can use cftimer to see the time it took to execute the
    code.
    Prasanth

  • Speed measurement with PCI6601

    I am building an application for measuring two linear encoders ( micrometers ) and one quadrature encoder for measuring speed of one motor.
    At the moment I can read the two linear encoders with the "position measurement" option for the PCI6601.
    But I have trouble to calculate in an easy way the speed of the rotating motor in RPM.
    Could anyone have any easy solution for doing this?
    Thanks
    Massimo Visintin

    Massimo,
    A few notes in no particular order:
    1. Re: future use of last counter for another speed measurement. With the 6601, you only have 1 DMA channel available for buffered measurements. A second buffered measurement would have to be manually configured to use interrupts.
    A buffered measurement will give you much better precision, but you may be better off starting with a simpler unbuffered approach when getting started.
    2. How accurately do you need to measure speed? And how often do you need a new measurement? It sounds like you're reasonably happy with a simple speed estimate made about once per second.
    3. Have you considered making a separate loop for the speed measurement? You could simply read the count once per second (unbuffered) and put it into a shift register. Then estimate speed as delta counts divided by delta time. A small enhancement would be to also store the time from 'Tick Count (msec)' on each loop, and use a measured delta time rather than an assumed one in the calculation.
    Note that with this method, it's best to run unbuffered to avoid the lock-up problem you saw. It'll also be simpler to add your second speed-measurement counter task in the future.
    4. Again, there *are* solutions available involving precise buffered measurements. I recently posted a DAQmx-based example that includes an instant-response buffered read (toward the end of this thread.). But I'd recommend first getting a simpler approach to work, then coming back to the buffered measurements later when you're sure you need more precision.
    Good luck!
    -Kevin P.

  • How to measure transfer (speed) of internet connection with TC

    Hi
    How can I find out how quick I surf the net with Time Capsule. Are there any opportunities in the setting to boost speed?
    Thanks,
    MF

    Speed can be measured through the normal web apps that test your internet speed.
    Frankly, unless you have 100mbit fibre the rate determining step is going to be the internet. For now and a long time to come. So measuring speed on your local network is irrelevant to web speed.
    The utility Activity Monitor shows network speed, and I am sure you can download other meters that will average speed over longer periods. But I find the activity monitor is adequate for what I need.
    Boost speed.. sure.. use ethernet.. do not use wireless. Make sure you are linked at gigabit.
    For wireless if you are close to the TC force the wireless to 5ghz. This usually requires that you setup TC wireless with a different name for 5ghz band than 2.4ghz. In the same room 5ghz should be twice the speed of 2.4ghz or better.. but the advantage will drop off quickly.. so you need to locate equipment nearest where you use it.

Maybe you are looking for