How to measure angular speed by RVDT

Hello,
I quite new in labVIEW and I am trying to measure angular speed of shaft by RVDT which is able to measure in electrical range 0°-280°. I use NI USB-6008 card and RVDT is also powered by this card (5V). I have already found way how to measure angular position but i do not now how to convert it to angular speed. I tryed to do it by derivation but the result was weird. Could anybody give me an advice how to do that. I would really appreciate that.
My VI is attached.
Attachments:
rot pot.vi ‏154 KB

Hi kome01,
The issue comes from the fact you are only acquiring one sample per iteration of the loop, and to differentiate you need to provide at least two values, as well as a time difference between each.
The Express VI you are using is clever in the way that it can measure the time between samples for you, but you will still need to provide multiple samples. I have changed your VI to continuously acquire samples from the potentiometer, and have provided some notes in the block diagram to help you.
Hope this helps!
Attachments:
rot pot.vi ‏153 KB

Similar Messages

  • 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.

  • How to measure the rotational speed by using rotary encoder and 1 counter?

    I want to measure the rotational speed of a shaft, and I have below hardware:
    1, a rotary encoder, with A,B,Z signals output;
    2, PCI-E6363 card.
    I do konw how to use such a  encoder to measure the rotational angle by using the function "DAQmxCreateCIAngEncoderChan", but this time I need to measure the speed(rpm), as well as the dirction of the speed, which means a negative speed represent a CCW rotate direction.
    More detail informations:
    for the encoder, the A,B signal is 600ppr, and Z signal is 1ppr
    the rotatinal speed is in range: -300 ~ 5000 rpm.
    some one suggested me that I can use the "DAQmxCreateCIAngEncoderChan" task to measure the angle firstly and then do the differential analysis with the angle. but I have to enable the Z index function, and it's hard to calculate when the shaft speed is fast then 2500rpm.
    Anyone can help me on this issue?
    Thanks in advance!

    RobertoBozzolo:
    Thansk for your reply. You are right that measure frequency to get the speed is the best way, but it's hard to get the dirction at the same time. You suggest me that "perform two angle measurements to get the sense of rotation", but I'm not sure I catched what you mean about this. I try to understand your opinion like this: distribute the signals to 2 counters, and start 2 tasks, one for frequency, the other for angle which used for deciding the dirction?
    And by the way, in my application, the counter is limited:
    I'm using PCI-E6363, which have 4 counters totally, and I have to measure 4 different speed sensors at the same time, so that means only 1 counter for me to measure the speed and the dirction.
    RobertoBozzolo 已写:
    To measure the speed from the encoder you can simply follow some of the frequency measurement examples that ship with DAQmx, considering that speed (rpm) is given by frequency (Hz) on one encoder output / 600 (ppr) * 60 (s->min)  = frequency / 10.
    Difficult is to add a sign to this measurement: frequency measurement gives you no information about sense of rotation, so I suppose you could perform two angle measurements to get the sense of rotation and then get the speed as above.

  • Speed How to Measure

    I realize that my ISP typically supplies a somewhat fixed speed.
    I have and Apple TV that synchs with a MacBook Pro on a pure 802.11n network...how can I measure the speed to see if in fact I am getting fast speeds?
    In general how can I measure the speeds that the AEBS communicates to the Macs with?

    Time the transfer of a large file via your wireless network. Using a sufficiently large file, a watch will do. Then do the math.

  • How can i measure the speed of the fan in sound and vibration signal simulator box

    how can i measure the speed of the fan in sound and vibration signal simulator box
    provided the values  tach out:2 pulses/revolution and  maximum speed = 6000rpm

    Hi. I tried your suggestion and I could not get it to work well. In
    fact it worked better without the running average (which suprised me).
    I also played with the number of data points but still could not get it
    to work well.
    Do you have any other suggestions on how I could sort this problem out?
    I
    have attached a screen shot of the signal. To recap, I'm trying to
    measure the'y' position of the flat regions of the signal. The signal
    does not have a constant level, so this 'y' position varies with time
    in a non-unform manner.
    I am currently differentiating
    the signal and selecting the y position when the differential is equal
    to zero (within a tolerance band).
    In the screenshot, the
    signal has been zeroed using the method I have described above.
    However, it occasionally has glitches which may be caused when the code
    picks up a zero gradient at a peak or valley in the signal.
    I therefore need some kind of algorithm that only measures the position of the flat regions.
    Many thanks
     John
    Attachments:
    screenshot.gif ‏121 KB

  • How do I measure transfer speed on an IO Connection?

    I bet there are hundreds of ways :)
    But I was looking for something that is like built into Java.
    Lets say you got a "normal" socket read like this:
                BufferedInputStream buffIn = new BufferedInputStream(sock.getInputStream());
                DataInputStream dataIn = new DataInputStream(buffIn);
                while(running) {
                    int c;
                    while( (c=dataIn.read()) != 0xff) {
                   // Do what ever.
                 }How would U meansure speed?

    BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    int r;
    while( (r=in.read()) != -1) {
        speed();
    private void speed() {
        if(System.currentTimeMillis()-time > 1000) {
         String rate = "Transfer rate " + printTime(bytes) + " /sek";
         System.out.println(rate);
         bytes=0;
         time = System.currentTimeMillis();
        } else bytes++;
    public String printTime(float time) {
        String toReturn = "" + time;
        if(((int)time)/((int)1024)>((int)0)) {
         time = time/1024;
        } else return "" + time + " byte";
        if(((int)time)/((int)1024)>((int)0)) {
         time = time/1024;
        } else return "" + time + " kilobyte";
        if(((int)time)/((int)1024)>((int)0)) {
         time = time/1024;
        } else return "" + time + " megabyte";
        if(((int)time)/((int)1024)>((int)0)) {
         time = time/1024;
        } else return "" + time + " gigabyte";
        return toReturn;
    }

  • How to measure rpm

    I have an NI 9401, labview 8.6 and a 9172 chassis and I am trying to measure the rpm of my rotating shaft. The code I wrote works at low speeds but is not accurate at high speeds. Does anyone have a standard labview 8.6 code for obtaining the angular velocity of a rotating object?

    Hi Eluan,
    What part of the code is inaccurate?  Is it the calculation or do you think you need to sample faster to gain more accurate measurements?  It is possible that there is noise in your data that you could average out to obtain more reliable measurements.  Is the measurement being taken with a specific type of device (eg: hall effect sensor, rvdt, encoder)?  There are a lot of different methods for measuring angular velocity of a rotating shaft, so please let us know what method you are using.  We will be better able to help you if we know a little bit more!
    | Zach J. | Applications Engineer | National Instruments |

  • How to measure RPM using digital I/O

    Please tell me how to measure RPM using Digital Input or please give me a code for this.

    You probably aren't going to find anyone to just give you code. Especially because you don't specify the hardware you're using. Doing this on FPGA is different than using DAQmx to do it. With FPGA you count pulses over a specified time. Using boolean logic from the digital DI node is a common way but there are others. (if you are using FPGA I can draw up an example, but I believe there is one on NIs website if you search google for it),. Then, if you want, you can run the data through an IIR filter, especially if you have a low resolution or slow moving encoder. Either of these conditions can result in very large difference of RPM even if the actual speed is not varying much (if you need an example why I can provide more detail, but some simple math calculating RPM should explain this. Obviously lower resolution will giv eyou less accurate results).
    If you use DAQmx you can set up a frequency task and it will return the number of pulses in a specified time frame; then you can convert this to RPM based on your encoder resolution and take the same steps of running it through a filter to smooth it out if need be.
    CLA, LabVIEW Versions 2010-2013

  • How to measure the frequency of a pulse being generated by a counter

    Hi,
    I am using labview 8.6 to generate 5 evenly spaced pulses for every 1 revolution of my shaft. However, I would also want to know the frequency of these pulses so I can determine the shaft speed. Since I am already generating the pulses using one of my counters, can I still tap into that or task another counter to measure the pulse frequency? If so, how? I have attached my code for generating the pulses and I am using an Ni 9401 module and an NI 9172 chassis. If someone can helo me modify the code to measure and tell me the pulse frequency as well, that would be really appreciated
    Attachments:
    autotrain2.vi ‏19 KB

    You'd probably get a more coherent answer if you didn't bounce around from thread to thread so much...
    How can I generate a pulse train from shaft encoder? (5/13)
    pulse train from encoder (5/15)
    how to measure rpm (5/20)
    How to measure rpm using shaft encoder and labview (5/23)
    This thread (also 5/23)
    I see you ignored my suggestion from the other thread--Kevin's solution is good too but using an encoder task offers more noise immunity (I think this is probably the cause of the problem you reported on the other thread).  You can fix it with digital filtering if you want to keep using a counter output instead of an encoder task.  Noise during transitions is pretty common for a quadrature encoder.
    A finite counter output task uses 2 counters on the 9172 (although you said 9174 earlier at one point--this wouldn't be the case on a 9174) so you wouldn't have one left to make your frequency measurement.  With the solution you have now, you can change to continuous to free up a counter if you don't care about outputing an exact number of rotation's worth of pulses (I'm not sure if you do or not--I didn't read through all of the various threads relating to this application to find out).
    For your actual question in this thread...  Have you tried running one of the frequency measurement examples?  From the code here I can't tell what you have tried (it just looks like a mangled version of the code Kevin gave to you in your other thread).
    Best Regards,
    John Passiak

  • How to measure the baseline of a noisy, pulsed signal

    Hi
    I am measuring the torque exerted by a large motor on a shaft using a load cell and lever arm. The shaft runs at approx 150 rpm. I have attached a drawing that shows the output I get. This is a test rig.
    I have written some code that measures the maximum peak out of a group of approx 5 peaks and writes this to a shift register. This gives me an idea of the maximum torque "spike".
    I also wish to measure the baseline torque (due to the bearings in the machine). Even when highly filtered (my noise filter is set to 49Hz) the signal exhibits this noise which is probably due to vibration in the system. The signal is zeroed when the motor is not running.
    Does anyone have an ideas on how to measure the "baseline" torque? The large spike in torque prevents me from doing a running average. Can anyone think of a way of averaging just the noisy part of the signal to get an average value? I aim to to subtract the average baseline torque from the peak value to get an idea of the torque due to the event which causes
    the spike.
    Any help would be greatly appreciated.
    Many thanks.
    Attachments:
    drawing of torque signal.gif ‏26 KB

    Thanks for the reply. I understand what you are saying. However, I might have to modify my method for measuring the peaks if I choose to implement your idea. I have taken a screenshot of my "peak finder" code and attached it.
    Bascially, the reset terminal is wired to a timer which outputs a pulse every few seconds. This resets the vi (a standard NI one I think) and sets the peak magnitude back to zero. This way, I am windowing the signal and measuring the maximum peak in every window. This is what I need to do.
    So I could use a logical filter to feed data to the running average only if;
    the amplitude of the signal is less than a certain threshold
    and if the current value has similar low peaks either side of it
    How would you construct the code to delay the evaluation so that the values in front and behind of the current data point can be analysed?
    thanks again
    Attachments:
    peak_find_screenshot.jpg ‏45 KB

  • How to measure the performance of Extractor

    Hi,
    How to measure the time taken to by the extractor when executed from rsa3 for a given selection?
    Lot of threads speak about ST05... but these transactions are too granular to analyse.
    How to get the overall time taken.i need the overall time taken and the time taken by the individual SQL statements... please provide specific pointers.
    Thanks,
    Balaji

    Maybe SE30 can help you....
    Regards,
    Fred

  • How to measure the performance of sql query?

    Hi Experts,
    How to measure the performance, efficiency and cpu cost of a sql query?
    What are all the measures available for an sql query?
    How to identify i am writing optimal query?
    I am using Oracle 9i...
    It ll be useful for me to write efficient query....
    Thanks & Regards

    psram wrote:
    Hi Experts,
    How to measure the performance, efficiency and cpu cost of a sql query?
    What are all the measures available for an sql query?
    How to identify i am writing optimal query?
    I am using Oracle 9i... You might want to start with a feature of SQL*Plus: The AUTOTRACE (TRACEONLY) option which executes your statement, fetches all records (if there is something to fetch) and shows you some basic statistics information, which include the number of logical I/Os performed, number of sorts etc.
    This gives you an indication of the effectiveness of your statement, so that can check how many logical I/Os (and physical reads) had to be performed.
    Note however that there are more things to consider, as you've already mentioned: The CPU bit is not included in these statistics, and the work performed by SQL workareas (e.g. by hash joins) is also credited only very limited (number of sorts), but e.g. it doesn't cover any writes to temporary segments due to sort or hash operations spilling to disk etc.
    You can use the following approach to get a deeper understanding of the operations performed by each row source:
    alter session set statistics_level=all;
    alter session set timed_statistics = true;
    select /* findme */ ... <your query here>
    SELECT
             SUBSTR(LPAD(' ',DEPTH - 1)||OPERATION||' '||OBJECT_NAME,1,40) OPERATION,
             OBJECT_NAME,
             CARDINALITY,
             LAST_OUTPUT_ROWS,
             LAST_CR_BUFFER_GETS,
             LAST_DISK_READS,
             LAST_DISK_WRITES,
    FROM     V$SQL_PLAN_STATISTICS_ALL P,
             (SELECT *
              FROM   (SELECT   *
                      FROM     V$SQL
                      WHERE    SQL_TEXT LIKE '%findme%'
                               AND SQL_TEXT NOT LIKE '%V$SQL%'
                               AND PARSING_USER_ID = SYS_CONTEXT('USERENV','CURRENT_USERID')
                      ORDER BY LAST_LOAD_TIME DESC)
              WHERE  ROWNUM < 2) S
    WHERE    S.HASH_VALUE = P.HASH_VALUE
             AND S.CHILD_NUMBER = P.CHILD_NUMBER
    ORDER BY ID
    /Check the V$SQL_PLAN_STATISTICS_ALL view for more statistics available. In 10g there is a convenient function DBMS_XPLAN.DISPLAY_CURSOR which can show this information with a single call, but in 9i you need to do it yourself.
    Note that "statistics_level=all" adds a significant overhead to the processing, so use with care and only when required:
    http://jonathanlewis.wordpress.com/2007/11/25/gather_plan_statistics/
    http://jonathanlewis.wordpress.com/2007/04/26/heisenberg/
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Can you tell me how to measure audio signal frequency in measurement studio with visual basic 6.0?

    I'd like to measure two differential input signal(I.e. A+ and A-),below is two test projects,
    1.connect A+/A- to PCI 6052E card's ACH0/ACH8 ,and refer to GND for testing
    2.connect respectively A+/A- to PCI 6052E card's ACH0/ACH8 for testing
    Could you tell me the details of the second project?and give me a illustration in measurement studio with visual basic 6. 0 about the second?
    In addition,I would like to measure the audio signal frequency,could you give me a illustration in measurement studio with visual basic 6.0?
    Wait for your reply!

    Dear kelven,
    Thank you for contacting National Instruments.
    To address your question, there are Analog Input shipping examples that demonstrate how to measure an analog input differentially, as you specify in (2).
    As for measuring the audio signal frequency, you may want to check out the following KnowledgeBase. The link is:
    http://digital.ni.com/public.nsf/websearch/4b08380530d72d3b86256340004c3005
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • How to increase the speed of video (avi file) using labview

    How to increase the speed of video (.avi file) using labview? I have  tried this by skiping alternate frames. also I have used  minimum time delay.Is there  any other option for which i can go?
    please suggest me........... 

    Are you using NI Vision IMAQ AVI Read Frame or anther method to read the AVI file?
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • How to change the speed of a slideshow

    How to change the speed of a slideshow

    In my test, all I need do was right click the clip and make sure Frame Blend was not checked.

Maybe you are looking for

  • Edit portfolio button somehow disabled

    Hi experts~ As shown in above screenshot, my edit portfolio button is somehow disabled. I can't remove emails from my portfolio. I remembered to use this button before...... The portfolio is create from OUTLOOK 2010 using Acrobat Suite Profession 10.

  • Backup iphone in Time Capsule

    Hi, i have receveid AirPort Time Capsule for xmas and i could not be able to do backup from from my iphone to TC. Ídem for my ipad Anyone could help me?

  • How to move songs from ipod to itunes library?

    i recently rebooted my laptop and saved my current itunes library to my hard drive. i installed itunes after the reboot bu cannot get my old library back into itunes. is there also a way of sending the songs from my ipod to itunes?

  • Empty files mapping problem

    I have to map empty files to another server. The first one is access by FTP. How can I do that?

  • HR Indirect Role Assignment through HR ORG Distribution Model with ALE

    1) When i assigned indirect (position level security) roles in CUA(SolMan) using pfcg click on organization managment to position after that i did user comparsion but i can not see user id in user tab. 2) If personel no is not the same as infotype 01