Want to get velocity with quadrature encoder

I can count and measure the displacement from the encoder signal with your quadrature encoder example file.
But, can you please advise me know how to implement to get velocity or RPM from that somewhat easily?
Thank you for your help.

Hey Encoder,
You can measure velocity by using a buffered, counting operation. With a buffered operation, the count is latched on the rising/falling edge of the gating signal. Therefore, if you provide a signal to the gate with a known frequency, you will be able to mathmatically determine the frequency of the signal connected to the source.
You can usually use another counter to provide a gating signal with a known frequency. There are example programs that illustrate how to do this.
DAQ-STC: Measuring the Frequency of a TTL Signal (Easy-Level VIs)
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD4756A4E034080020E74861&p_node=DZ52329&p_source=External
Measure a TTL frequency with DAQ-STC or NI-TIO in Visual Basic
http://si
ne.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D7A756A4E034080020E74861&p_node=DZ52329&p_source=External
I hope this helps.
Regards,
Todd D.
NI Applications Engineer

Similar Messages

  • Hi - was looking to buy a macbook air soon but wanted to get it with lion software....anyone know when that is available and second question is what is best software for personal money management that works with lion.....use quicken now   thanks

    Hi - was looking to buy a macbook air soon but wanted to get it with lion software....anyone know when that is available and second question is what is best software for personal money management that works with lion.....use quicken now   thanks

    quicken should work with lion.
    Quicken Essentials will work with Lion.  Most people that have used Quicken for a while (i.e. Quicken 2007) have found that Quicken Essentials isn't much better than a basic spreadsheet.  It is a significant step down from previous versions and does not offer many of the features previously offered.  Right now, it seems like the two most common options are iBank and MoneyDance.
    Frankly... this is a major opportunity for these companies.  The largest commercial distributor of this type of product has been Intuit (Quicken).  That makes it hard for any other company to get any of that market as so many people were already using Quicken and may have had years of data stored in it.  Now, with Quicken effectively out of the picture, it's a great chance for another company.  Just imagine if iPhones were suddenly off the market.  That would give other manufacturers a tremendous opportunity since they wouldn't have to fight an up hill battle against a market giant.

  • Using PCI-6025E with quadrature encoder.

    Hi,
    i'm presently trying to figure out if i can use the PCI-6025E Card to count up/down with a quadrature encoder with no additionnal hardware. I know my answer lies in a document called "Using Quadrature Encoders with E Series DAQ Boards document " but it is not presently available on the ni website.
    Can any1 either confirm me that i can do this or send me the document?
    Thank you,
    Max

    This link seems to confirm that you can
    Link
    Randall Pursley

  • I want to get improved with i5/ 8GB

    I have purchase one Thinkpad X 220 from one individual (Used Thinkpad 35 months old,fairly used).Its configuration is as follows'Intel i5 v Pro' processor,8 GB DDR3 RAM,320GB HDD,Windows 7 proffessional. After getting it I had restored this by using Thinkvantage key to get  factory settings thus to get its normal speed. But after that also,my thinkpad is booting up and perfoming as 'Pentium 4/512 DDR1 configuration'. It perfomes evry poor as compared to my i5/8GB PC. I have disabled some third party apps fromm boot up service but no improvemnt. I want a solution to speed up my Thinkpad as I'm getting ashamed of Thinkpad among my friends,co-workers and myself. Thanks in Advance

    It's possible your HDD is damaged (bad sectors really slow down the drive). Check with the HD Tune Pro trial; look under the Health tab for any highlighted entries.

  • I am activating an old desktop pc with win7 and want to get online with my 890L.

    What do I need for the desktop.  What do I have to do to Win7 to recognize the hotspot?

    You need a wireless network card if the pc doesn't have one built in. Once you activate the hotspot on your phone, your of can look for that network (emitted from the phone), but the pc has to have wireless network capabilities, or you will have to buy a wireless usb card (they are about $30 and look lime a little flash drive)

  • Boss wants to get Sony HDR-FX7 - is it a good camera with FCE HD?

    I don't want to get stuck with a camera that doesn't do justice to the software.
    I've heard on this forum that the Panasonic Dvx 100B is one of the best choices but is not HD. The boss says he is willing to go for HD because it will be implemented more in the future and he wants to be ready for it.
    Can any of you give your experienced comments on this?
    Thanks,
    Ken

    All Hail,
    From our company to you, thanks for each response here. The boss says he is appreciative of the input and is holding off on the purchase of a camera until he is sure he is getting the right one, that maybe the FX1 is the right one.
    He sends his thanks, and I thank you too.
    As my own personal request, I must repeat the above question for the FX1, I notice it produces mpeg2 format, which I assume needs to be processed through Streamclip before it can be read by FCE HD?
    Ken

  • Reading Angles From a Line Driver Quadrature Encoder

    I currently have a Quadrature Encoder (Line Drive) and am trying to interface it with a PCI-6602 Counter/Timer Card. I have currently had no luck in correctly hooking it up and reading the angle. Past experience with Quadrature Encoder have all been open collector; I have been able to to successfully hook up an open collector encoder with the 6602.
    Any help in hooking up the Line Driver encoder with the PCI6602 would be appreciated.
    Thanks.

    Justin,
    Normally, the mfgr. would include a recommended "Line Receiver" interface circuit for the encoder. I've found that some line-driver encoders actually can be successfully connected directly to the 6602 for quick-and-dirty testing, though you wouldn't want to wire that up arbirtrarily or rely on it for the long term. In any event, it sounds like you'll need to add a line receiver interface.
    -Kevin P.

  • Using more than 4 quadrature encoder input for MyRIO

    Hello,
    I am doing a project where I need to drive 6 motors, each with quadrature encoder feedback to control position. 
    Currently, I've been using the MyRIO Encoder VI's, but there's a limit to 4 encoders. What is the best way of reading 6 encoders simultaneously with the MyRIO?
    Thanks,
    Timothy
    Solved!
    Go to Solution.

    If you need to modify the myRIO FPGA personality you have a few options.
    The best option is to start with the myRIO FPGA sample project, add and remove components as needed and then build your bitfile.  Any registers (LV FPGA controls / indicators) you don't modify will still work with the Advanced IO VIs and Express VIs.  In order to use the new bitfile (FPGA Personality) you'll need to update the Open FPGA VI Reference in myRIO v1.1 Open.vi (LabVIEW 2013\vi.lib\myRIO\Common\Instrument Driver Framework\myRIO v1.0\myRIO v1.1 Open.vi).
    After doing this any time you use a myRIO Express VI or Advanced IO VI it will use your custom bitfile.  Any peripheral channels you've left in place will continue to work.  Any channels you've removed will still show up in the VIs, but will not work (they will probably throw errors at runtime) and any new channels you added will not show up in the VIs.  For new channels you'll need to use the FPGA Read / Write nodes to read and write the configuration and data register you created in the FPGA personality.  These changes will persist on that computer until you change the Open FPGA VI Reference back to the original bitfile.
    Let us know if you have questions about any of this.
    Thanks!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • Getting Stasted With WebDynpro ABAP

    Dear All,
    I am New to WebDynpro and want to get started with it. Right Now reading the Tutors and Understanding the Concept. I want to Create the WebDynpro Object in the SE80 but not finding any object called "Web-Dynpro-Comp./Intf." from the available object list in the SE80. Please Guide me as how to go with it.
    Also please suggest suitable Link/Threads/Tutors to get Start with WebDynopro.
    Regards,
    Nikhi Joshi

    Hi
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d
    in this link are two tutorial for start with webdynpro abap
    for see webdynpro in se80 in the  left bar you must select web dynpro comp. / intf
    you must check the active service in the transaction sicf
    in thid link you can find the service
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/d28dfa34bb12bee10000000a1553f7/frameset.htm
    best regards Marco
    Edited by: Menegazzo Marco on Apr 21, 2009 10:09 AM

  • Just want to get started. I am unable to move beyond the voice over welcome screen.  Any advice would be welcome.

    I just want to get started with my new out of the box MacAir.  I canot move beyond the voice over welcome screen.  It seems to be stuck.  What do I need to do to advance out of it? 

    Bt seem to have got their act together. After six days! All of a sudden it works. What a surprise, shame their help desk would not admit anything was wrong.

  • I would like to download new Ps and Lr, but don't want to fwr involved with the cloud.  Is this possible?

    I need help.  I would like to download Ps CC and Lr, but don't want to get involved with the cloud, but would rather save on an external hard drive.  Is this possible?

    You can download the installers to your external drive.   However when you install them they will install Photoshop and LR on you boot drive. Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools

  • Help Getting Started with the Zen Vision:M (Z

    Hi,I just got my ZVM and want to get started with it. I have a couple of questions, first:?. I have Windows Vista. Can I just plug in the ZVM and go without using the Installation CDs? Or do I still need to install something off of the installation discs?2. Why 2 installation discs? There is with a black cover that says Easy Start CD and has the Urge and Window Media Player logo at the bottom. The other is just in a plain white bordered sleeve with a light colored disc that says Zen Vision: M Installation CD at the bottom. I think I want to start with the light colored disc, but want to make sure. Thanks.

    I think that the White disk that says Zen on it is the one you want it has Creative Media Source on it and is a very useful tool for me, the other disk has Windows Media Player on it and will also install a connection to a website that you can purchase tracks from (which i took off as soon as i found this out) not the WMP though, for some reason i could not get my Zen to work properly without the WMP loaded on my pc, however i use the Creative Media Source instead of the WMP.

  • Troulbe in measuremen​t quadrature encoder with 6601

    Hi,
    Thanks for Ross's help.But I cannot differ 6601's x4 mode from other counter/timer counting mode. In measurement position, what difference between them. And I just want to know whether my application viable.
    We are trying to measure position with 6601. The frequency of quadrature encoder is from 100Hz to 8MHz. Now, we connet the A,B and Z channel directly to counter . Using the example in CVI, we change the filter to 100ns and use x4 mode. It works perfect at low frequency.
    The problem is when the frequency of encoder is higher than 2MHz, the accuracy decreases greatly. I'd like to know about following:
    1.Can 6601 do the previous task enough? Or I must change to use 6602.
    2.If
    6601 is available, is there any way to increase measurement accuracy ?(in software or wire connection )

    >jimmyjimmy2000
    "Hi,
    Thanks for Ross's help.But I cannot differ 6601's x4 mode from other counter/timer counting mode. In measurement position, what difference between them. And I just want to know whether my application viable.
    >>mross>The application is viable. However, the use may be difficult.
    >jimmyjimmy2000
    We are trying to measure position with 6601. The frequency of quadrature encoder is from 100Hz to 8MHz. Now, we connet the A,B and Z channel directly to counter . Using the example in CVI, we change the filter to 100ns and use x4 mode. It works perfect at low frequency.
    The problem is when the frequency of encoder is higher than 2MHz, the accuracy decreases greatly. I'd like to know about following:
    1.Can 6601 do the previous task enough? Or I must change to use 6602.
    >>mross>The 6601 is just as good as the 6602 at 2MHz. Therefore, a 6602 will have the same problem of inaccuracy.
    >jimmyjimmy2000
    2.If 6601 is available, is there any way to increase measurement accuracy ?(in software or wire connection )"
    >>mross>Yes, in the wire connection you can make improvements.
    6601 can count as fast as 20MHz (60MHz with prescaling). The signal is noisy (containing addtional, incorrect information).
    You must use an oscillosope to look at the signal. Look at it when 6601 is counting correctly, and look at it when 6601 is "malfunctioning".
    The counter will increment whenever the signal is high for more than 5 nanoseconds. The conditions for "High" and "Low" signals must be strictly met. If the signal is greater than 0.8V, the counter may increment. The signal must then drop below 2 Volts for a "Low" to be seen.
    This sounds wrong, but is true. The counter is expecting TTL signal conditions (Transistor -Transistor Logic). This specification is very broad.
    A "High" will absolutely be recognised if the signal is greater than 2.0V.
    A "Low" will absolutely be recognised if the signal is less than 0.8 V.
    However, the range from 0.8V to 2.0V is "undefined." This means the counter could increment at 0.8V. It has been my experience that National Instruments TTL will always see 0.8V as a "High." If your noise exceeds 0.8V you will never be able to count accurately.
    The problem will be solved when your encoder signal is read cleanly by the 6601. This is why I gave you the URL for US Digital in the previous answer. The circuits they sell can help to clean up the counter signals. You will have to see what works best, since I don't exactly understnad you application. If the noise is very bad, you may wish to use the Encoder to Binary Number circuit. There will be no noise in the reading of a binary number. Since your encoder may run as fast as 8MHz, you must be sure the circuit you choose is also this fast.
    The other solution is to eliminate the noise which is causing the counter to trigger falsely. THis can be a very interesting problem to solve. Please look a this NI link:
    Field Wiring and Noise Considerations for Analog Signalsv
    http://zone.ni.com/devzone/conceptd.nsf/webmain/01​F147E156A1BE15862568650057DF15?opendocument
    Follow these instructions very carefully.
    Also, this book is helpful to explain noise and how one may reduce it.
    From Amazon.com you can get Grounding and Shielding Techniques, by Ralph Morrison.
    http://www.amazon.com/exec/obidos/ASIN/ 0471245186/104-3492923-2811911
    Be very careful how you wire the circuits. Try to use only one ground point.
    The worst source of noise can be the motor and drive that spins the encoder. Be particularly careful in wiring this apparatus. A simple solution can be to use an air powered motor insted of an electric motor.
    Good luck,
    Mike Ross

  • Quadrature encoder, velocity

    Hi,
    I am using DAQ 6062E, with BNC 2120. I have a quadrature encoder, and I need to get the position, and velocity. I have modified BNC2120_Quadrature_Encoder vi from NI. I can compute the velocity (delta position/time loop) easily, however this is not very accurate. I need to have a high accuracy velocity, and I think I have to use the second counter to measure the frequency of channel. However, I am not able to calculate the velocity with this method. I have attached my vi. I appreciate if somebody can help.
    My encoder is connected to CTR Source 0 (PFI8), and UP_DOWN (P0.6)
    I have connected CTR Source 0 (PFI8) to CTR 1 Gate (PFI4)
    Thanks!
    Attachments:
    try encoder_with frequency.vi ‏58 KB

    I get reasonably accurate velocity from quad encoders by connecting the source of my counter to the internal 20MHz clock then gating said
    counter with my index pulse(Z) or either A or B, depending on the speed at which I am running. This will give you a count of time between
    revolutions if gating with Z, or it will yield time between X degrees if gating with A or B.

  • Quadrature encoder with PCI-6259 DAQ board (driver for QNX)

    where can I find any example for connecting Quadrature Encoders with M Series DAQ Boards ?
    The only more or less suitable example I found in nimseries DDK, is
    "Count pulses from an external source using an external signal to control
    the count direction" (nimseries\Examples\gpctex2.cpp).
    But this example is not working correctly with Quadrature Encoders
    (encoders with  two shifted on 90 degrees phases A&B).
    i.e. in case of using this example code I get some extra count while encoder is on vibrant motor
    what means enums
    typedef enum {
           kG0_Up_DownHardware          = 2,
           kG0_Up_DownHardware_Gate     = 3,
    } tG0_Up_Down;
    and
    typedef enum {
           kG0_Encoder_Counting_ModeId          = 1,
    } tId;
    in (nimseries\ChipObjects\tTIO.h) ?
    What initalization procedure I need to work with Quadrature Encoders?
    I have PCI-6259 DAQ device
    and I'm writing programm under QNX6 operating system

    Hello alexey_3269,
    If you want to read a quadrature encoder start with gpctex1.cpp and follow the thread.
    I give you my code:
    BEGIN CODE
    ==========
    boardGpct->G0_Mode.writeG0_Load_Source_Select(tTIO​::tG0_Mode::kG0_Load_Source_SelectLoad_A);
    boardGpct->G0_Load_A.writeRegister(InitialCount);
    boardGpct->G0_Command.writeG0_Load(1);
    boardGpct->G0_Load_B.writeRegister(0);
    boardGpct->G0_Load_A.writeRegister(0);
    boardGpct->G0_Input_Select.setG0_Source_Select(9); //see above for choices, PFI8=9, 100 kHZ=18
    boardGpct->G0_Input_Select.setG0_Source_Polarity(1​); //0=CCW, 1=CW
    //If using 80 MHz timebase
    boardGpct->G0_MSeries_Counting_Mode.writeG0_MSerie​s_Alternate_Synchronization(1);
    boardGpct->G0_MSeries_Counting_Mode.setG0_MSeries_​Encoder_Counting_Mode(3);  //3 for X4 encoder counting
    boardGpct->G0_MSeries_Counting_Mode.flush();
    //Enable Input Pins
    boardGpct->G0_MSeries_ABZ.setG0_A_Select(9);  //PFI8=9,
    boardGpct->G0_MSeries_ABZ.setG0_B_Select(21); //PFI10=21
    boardGpct->G0_MSeries_ABZ.setG0_Z_Select(10); //PFI9=10 
    boardGpct->G0_MSeries_ABZ.flush();
    boardGpct->G0_Mode.setG0_Gate_Polarity(1); //invert=1
    boardGpct->G0_Mode.setG0_Output_Mode(tTIO::tG0_Mod​e::kG0_Output_ModePulse);
    boardGpct->G0_Mode.setG0_Loading_On_Gate(tTIO::tG0​_Mode::kG0_Loading_On_GateNo_Reload);
    boardGpct->G0_Mode.setG0_Loading_On_TC(tTIO::tG0_M​ode::kG0_Loading_On_TCRollover_On_TC);
    boardGpct->G0_Mode.setG0_Gating_Mode(tTIO::tG0_Mod​e::kG0_Gating_ModeLevel_Gating); //kG0_Gating_ModeGating_Disabled
    boardGpct->G0_Mode.setG0_Gate_On_Both_Edges(tTIO::​tG0_Mode::kG0_Gate_On_Both_EdgesBoth_Edges_Disable​d);
    boardGpct->G0_Mode.setG0_Trigger_Mode_For_Edge_Gat​e(tTIO::tG0_Mode::kG0_Trigger_Mode_For_Edge_GateGa​te_Starts_TC_Stops);
    boardGpct->G0_Mode.setG0_Stop_Mode(tTIO::tG0_Mode:​:kG0_Stop_ModeStop_On_Gate);
    boardGpct->G0_Mode.setG0_Counting_Once(tTIO::tG0_M​ode::kG0_Counting_OnceNo_HW_Disarm);
    boardGpct->G0_Mode.setG0_Reload_Source_Switching(t​TIO::tG0_Mode::kG0_Reload_Source_SwitchingAlternat​e);
    boardGpct->G0_Mode.flush();
    boardGpct->G0_Command.setG0_Up_Down(tTIO::tG0_Comm​and::kG0_Up_DownHardware); //kG0_Up_DownSoftware_Down
    boardGpct->G0_Command.setG0_Bank_Switch_Enable(tTI​O::tG0_Command::kG0_Bank_Switch_EnableBank_X);
    boardGpct->G0_Command.setG0_Bank_Switch_Mode(tTIO:​:tG0_Command::kG0_Bank_Switch_ModeGate);
    boardGpct->G0_Command.flush();
    boardGpct->Interrupt_G0_Enable.setG0_TC_Interrupt_​Enable(0);
    boardGpct->Interrupt_G0_Enable.setG0_Gate_Interrup​t_Enable(0);
    boardGpct->Interrupt_G0_Enable.flush();
    END CODE
    ========
    I hope this code is appropriate to you.
    FV1234

Maybe you are looking for