Use incremental rotary encoder to measure the absolute position and velocity

Hi all,
I faced a problem by using incremental rotary encoder to measure the absolute position of the rotation. 
I'm not using NI-Daqmx but NI-motion module. In NI-motion module, I use read encoder position.vi to read the position of the encoder. 
However, the readings is in incremental form. I'm doing the feedback control, so I need the absolute position and velocity.
Is there any functions or vi in the labview that can be used to transform the information of incremental encoder to the absolute one?
Thanks
Jun Wong

Jun,
1. The incremental encoder provides incremental position. After switching on the encoder power the encoder counts upwards or downwards. For the absolute position you need the index (R or I) signal. I don't know which type of incremental encoder you have but there should be A, B and (I or R) signals. The index signal should reset the counter to zero setting this way a pseudo-absolute-position (which is lost after the first switch of). Most of the motion controllers have a mode, just after switch on, in which the controller search for the Index. This mode is called Homing. 
2. Velocity. It's very simple. You sample the position with a fix sampling clock. Let's say: 10kHz. The speed is: (Actual Position - Previous Position) / Sampling Period. Pos[n] = 10.000inc, Pos[n-1] = 9.900inc. Speed = 10.000 - 9.900 / (1/10kHz) = 1.000.000 inc/sec. If one increment is 0.0001mm then the speed is 100mm/sec.
Paul 

Similar Messages

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

  • Measure the a song and get back some value to present this song

    I would like use the labview to play a song, and the program can measure the sound level and output the value to present this song. Can i use LabView to do that? Is there any example similar with my application?

    HK,
    Yes, you can use LabVIEW to do this. In fact, there are 12 shipping examples that use the sound VIs in LabVIEW 6.1. One of them is a wav player. This, and parts of other examples will be helpful for your application.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • I used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this?

    i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I had an apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    I had an Apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    cathorio wrote:
    I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did.
    I am puzzled by this. The laptop doesn't need the Apple ID - but iTunes does. I could be missing something but ....
    Why would you not be able to use your existing Apple ID and iTunes account on a new laptop? If you authorized the computer - you should be able to use your existing account - unless you already had 5 computers authorized with the existing ID - and that was why iTunes would not accept the ID. However, I'm sure that you would have received a popup message from iTunes telling you that you had reached the limit.
    I just received a new MBP and my daughter did as well. My entire family shares an Apple ID and we had no issues at all with my Apple ID and iTunes on our new computers and I did not have to sign up for a new account. Did you even try the old ID?

  • Hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    Try reinstalling Combo Update.
    http://support.apple.com/kb/DL1676
    Best.

  • How to use parallel flowed subforms begining at the same position.

    How to use parallel flowed subforms begining at the same position in my form.
    Ex
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    I would like to repeat  with a button the 3 subforms in parallel
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1

    Post your question in the LiveCycle Designer forum.

  • Data types used in a sub VI - selecting the correct input and output types?

    data types used in a sub VI - selecting the correct input and output types?
    I can never work out how to choose an input or output format for Subvi's.
    I want to create a SubVI for the code in red. I needs an VI Server Reference compatible input and an output that goes to  a waveform.
    Thanks in advance.
    Attachments:
    data types.PNG ‏11 KB

    GerdW,
    I realise now I have taken us in the wrong direction. apologies for that.
    History, this is not my code and I do not own the process and NOT my preferred method of using it. I was looking for a simple way to make subtle changes.
    What we do - We use these programs to collect data from typically 6 pressures and 6 temperature probes and capture RS232 / USB VISA strings from sensors.
    So every few weeks / months or up to a year we rearrange each sensor location to suit the new process. I did not write the code. I cannot change the procedure too much without resistance.
    So headers in the CSV file have the DaqMX string passed through the code. Great.
    Other data to the CSV file comes from calculations or extracted from the VISA string. Hence why we have headers with "Untitled 1 ()". These values also go to a History Chart.
    So I was looking for a simple way to read the the local variable label as it is always linked to the front page indicator. People can cope with editing the indicator label, save the VI and hit run.
    TL;DR - GerdW is now a psychologist.
    Attachments:
    data to csv and history chart.png ‏1043 KB

  • How do you close apps you hve looked at with the new software update?? You used to have to double click the home button and the apps would come up to delete bu that doesn't happen anymore.

    How do you close apps you hve looked at with the new software update?? You used to have to double click the home button and the apps would come up to delete bu that doesn't happen anymore.

    The apps in the multitaskbar should appear like pages on the whole display. To close them, just swipe from the bottom to the top. you can select single apps for closing, when you swipe them like you would swipe your homescreens.

  • HT3529 I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    Read here:
    http://support.apple.com/kb/ts2755

  • I just bought a new ipad 2, but cannot use it as it only shows the itunes logo and a cable. This means it's telling me to connect to itunes. I've done this and performed sync, still no way out. I have been told by friends to "unlock" it. Please how?

    I just bought a new ipad 2, but cannot use it as it only shows the itunes logo and a cable. This means it's telling me to connect to itunes. I've done this and performed sync, still no way out. I have been told by friends to "unlock" it. Please how?

    Have you already activated the iPad? That is what the screen is telling you to do - connect to the computer with the supplied cable and run iTunes while connected - and iTunes should guide you through the set up process. If you have already set up the iPad and you are still getting thos screen message - restore your iPad. You must be running iTunes 10.5 on your computer as well.
    Restore iPad
    If you can't restore this way, you will need recovery mode.
    Unable to Restore

  • Recently on my mpb I was editing a jpg using the shapes option and know notice that the heart shape no longer is an option to use. Anyone know why? The square, circle and lasso are still there.

    Recently on my mpb I was editing a jpg using the shapes option and know notice that the heart shape no longer is an option to use. Anyone know why? The square, circle and lasso are still there.

    I am not aware of a heart, square, circle or lasso shape i=for editing in iphoto for the Mac - Maybe you are thinking of iPhoto for IOS which has been discontinued and is not available under IOS 8
    LN

  • I had'nt used iTunes for quites sometime, opened the music library and previously purchased music and impoerted content is missing.

    I had'nt used iTunes for quites sometime, opened the music library and previously purchased music and impoerted content is missing.

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I cannot open a website that I could open yesterday. I used a different computer to access the same website, and it worked. How do I fix my computer?

    I cannot open a website that I could open yesterday. I used a different computer to access the same website, and it worked. How do I fix my computer?

    What happens when you try to access the site? Can you access it from a different computer on the same network? Your profile says you have a Mac Pro, but you posted in the MacBook Pro area. If you have a MacBook Pro, can you access the site from another network, such as a public hotspot?

  • On my canon powershot A3300IS the lense is stuck in the extended position and will not close

    I have a canon powershot A3300 IS  the lense is stuck in the extended position and will not close. How can I fix this myself?

    Forneypamela,
    Please remove the battery from the camera for a few minutes.  Then, put the battery back in the camera and power it on again.  If the lens is still stuck in the extended position, the camera is going to need service.  I apologize for any inconvenience this may cause.
    To start your repair process, you'll need to complete a Repair Request on our website.
    If the camera is more than a year old, you may participate in the Canon Loyalty Program instead.  The Canon Loyalty Program option allows you to replace your current camera for a discounted fee, plus shipping.  The unit offered through this program carries a 90 day warranty.  The original non-functioning camera would then be returned to Canon USA for recycling using a prepaid shipping label that would be provided.
    If you would like to take part in this option, please call our Sales Department at (800) OK CANON (800-652-2666) seven days a week, 8am to Midnight.  Let them know you have been working with online support and the Canon Loyalty Program was offered.  Be sure to have your serial number for your camera at the time of your call.
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for