Regarding Need to measure the rotation count of the Compass either by clockwise and anti clock wise from 0 to 360 degree

Dear All,
Since I am new bee for labview, I want to count the no. of rotations that the compass will be rotating. I just did for one count, but I need to measure the count continuosly. Please some one to help me as soon as possible. Attached is me code. Please do the needful.
Thanks and Regards,
Dinsulpri
Attachments:
Compass Count.vi ‏10 KB

The event structure reads the value and, depending on its last state and current state, makes a decision.  You should try to look at the logic in the different states and follow what it happening.
Example -
1> Start at low state and 10 degrees
2> Control moves to 30 degrees.  Old state = low. New state = low (no change in count)
3> Control moves to 15 degrees.  Old state = low. New state = low (no change in count)
4> Control moves to 100 degrees.  Old state = low.  New state = medium (no change in count)
4> Control moves to 330 degrees.  Old state = medium.  New state = high (no change in count)
5> Control moves to 20 degrees.  Old state = high.  New state = low (going straight from high to low means we made a positive rotation. Increase count by 1)
The limits determine the zones of the low, medium, and high states.  While the values I choose to use were arbitrary, you would not want to set them too low (or high) to minimize errors.  Try it yourself.  Set the low limit to 2 and high limit to 358 (this would make the medium zone from 3 -> 357).  If you were quick (or the mouse jumped) it might be possible to move from 356 degrees (medium zone) to 4 degrees (also medium zone).  So if set improperly you could complete a rotation but not know you changed zones.
On retrospect though the best values would likely be in thirds (I.E., 120 and 240) to make the zones even?  I did not do too much testing.

Similar Messages

  • I need to measure the movement of flat steel and make correction xy after clamp

    We are correcting for clamp movement on a robot arm.  I was looking at vision system with a servo xy correcion.  The robot shifts about .005 in randomly on a clamp before drilling and I need to find an xy plate and vision to look at a steel or titanium surface and mark the change. 

    alesper,
    Thank you for you post - firstly, there are numerous vision component options as far as cameras, frame grabbers, lenses, etc. National Instruments offers these components, mainly the frame grabbers but we do sales a few different types of cameras, lenses, lighting...
    As far as the motion part of your system, we also provide components needed to control, drive and interface with your motors.
    I can give you more of a detailed hardware/software recommendation if you like - but I need
    more detailed information on what you are interested in doing.
    If you are interested in a turnkey solution I suggest you contact one of our Alliance Members http://www.ni.com/alliance/:
    "Whether you are looking for assistance in completing a small
    integration project, require in-depth expertise in building a large
    multifaceted system or solution, or want to find a turnkey solution,
    National Instruments Alliance Partners have the resources and know-how
    to provide what you need in every region and every industry."
    --Michelle
    Instrument Control R&D
    National Instruments
    Instrument Control
    Machine Vision

  • I need to measure the frequency of a signal on Pin 39 (PFI 15) of a PXIe-6361 module.

    I need to measure the frequency of a signal on pin 39 (PFI 15) of a PXIe-6361 module.  All of the digital I/O pins are already assigned and in use.  The signal frequency range is 50KHz to 500KHz.  I have tried all of the sample programs for DAQmx Counter/Timer frequency measurement.  If I modify them to use my hardware, I get run-time errors with conflicts with resources already assigned.

    Hi Julia,
    Thanks for the response.  As I stated before, I have tried all of the examples available that apply.  There are only three and one of those uses two counters.  The two I have tried are:
      Examples/Hardware Input and Output/Counter Measurements/Digital Frequency/
          DigFreq-Buff-Cont-ExtClk-ArmStart.prj     and
          DigFreq-LowFreq1Ctr.prj
    These examples default to using what appears to be traditional DAQ hardware (Dev1/ctr0 and /Dev1/PFI0).  I changed the counter to mine (/PXI1Slot3/ctr3) and directed my signal source (PFI15 on pin 39) to the counter.  No matter what I tried would not run.  They would always compile but gave run-time errors ranging from resources already in use to “external trigger required”.  I have no external trigger source and, if I did, there is no indication of how to assign it to the counter.  NI has a very good X Series Users Manual that tells all of the great things you can do with the hardware, but there is NO CLUE how to do any of those things!!!!  I know that some NI DAQmx functions use hardware resources that they never tell you about.  I discovered that when trying to produce a single output pulse from a timer using counter #0.  (Which, by the way, no one at NI could tell me how to do it.)
    Measuring frequency should be very simple.  The unknown signal is routed through a precise gate to a counter, and then the counter is read.  NI DAQmx uses the opposite approach of using my signal as the gate and counting their internal source.  However, the examples would not let me use the internal reference sources.
    To answer your other questions, I am not performing any other measurements at the same time and the counter is not being used for anything else, period.
    Any help would be greatly appreciated.  Thanks again.
    Wayne K.

  • [svn:fx-trunk] 8531: If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.

    Revision: 8531
    Author:   [email protected]
    Date:     2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
    Log Message:
    If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
    QA Notes:
    Doc Notes: SDK-22205.
    Reviewers: will be Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22205
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Revision: 8531
    Author:   [email protected]
    Date:     2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
    Log Message:
    If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
    QA Notes:
    Doc Notes: SDK-22205.
    Reviewers: will be Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22205
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

  • I need to erase the contents of my phone and restore to factory settings. Does anybody know how to save your texts so you don't lose them?  Can I back those up to iCloud?  My phone was very likely hacked (Apple's advice was to call the police!)

    "I need to erase the contents of my phone and restore to factory settings. Does anybody know how to save your texts so you don't lose them?  Can I back those up to iCloud?  My phone was very likely hacked (Apple's advice was to call the police!)"
    That was all I could put in the initial "box."  Then it brought me to this page with instructions on how to write a good sentence.
    Proceeding ...
    After going back and forth between Apple, AT&T and the police (all telling me to go to the other two) I took AT&Ts suggestion and got a new number. One tech warned against doing a backup, especially on my Mac, saying if my phone had been hacked then whatever bug was there would then invade my computer. But nobody knows how to determine if the phone has been hacked or a virus was planted there. Unfortunately I know who would have reason to do such a thing and all I can say is that he is at the top technologically and could easily do it. Almost impossible to prove, however.
    So I need to preserve my text messages and my emails as well. I backed up my photos to that Microsoft product (One-Drive) and it froze (Surprise, Surprise) with four short videos to go, and no way of stopping that (when I tried it crashed repeatedly) so I'm in crisis mode here.
    Help ...
    Running 8.0 on 5S
    Thanks!

    Betty I don't know if you fixed your hacking problem but I feel your pain. I've seen some strange things going on between my iMac and my iPhone and Apple has told me the same thing, call the police which I have done. The hackers have stole 500.00 out of my checking account have access to every internet account I use and no matter how often I change the password their right back on the account. I closed my FB account 3 times only to have someone reopen it. Right now I've got a link in my reading list (Safari) that if I click on it, it allows me to log onto my FB account anonymously.
    I've seen a green folder come out of no where while I was trying to delete my passwords out of keychain when that green folder was put into the key chain I was immediately locked out. I than went into system preferences to try to make changes to my security settings, when I clicked on the icon it wouldn't open. I've seen log files of automator receiving commands and sending out my personal information thats on my computer.
    I have a legitamate program called iExplorer that allows you to look at the contents of your iPhone back ups and saw a transaction someone made at the Apple store for some full length movies, some albums, ibooks and other apps but when I called the iTunes store and they said none of those items were showing up on my account. If their not on my account how can they be on my iPhone 6? One day someone was using my gmail account and unknowingly used google maps to search for an Italian restaurant, than a Mexican restaurant than a coffee shop and their search showed up on my iPhone but I didn't have my gmail account installed on my iPhone 6. Using my computer I logged onto my gmail account and looked at the maps history and sure enough there were the searches when I'd hover my curser over the link it gave me the longitude and latitude of the where the hacker was when he was using google maps. I know whoever reads this thinks Im crazy but I've documented everything and can prove the things that I have mentioned in this post actually happened.
    One day I had my laptop (pc) and my iMac next to each other as I was using both. when I clicked on airport it showed that my laptop and my iMac had made a connection and were actually communicating with each other. I know I didn't do it I don't know how. The iMac was logged into my iCloud account while my laptop wasn't. I have formatted my iPhone at least a dozen times, Apple and an Apple retailer have formatted my hard drive not to mention the numerous times I have formatted it but the hackers keep getting on my devices. Im formatting my lap top at this very second because during the course of the night I left the ethernet cable plugged into it and they locked me out of my c: drive, and configured the system so I can't download any updates from Microsoft, overtime I type in www.microsoft.com it changes to ww38.microsoft.com which takes me to a blank page. I right clicked on the page I was redirected to and read the java script and couldn't believe that someone had actually configured Internet Explorer to redirect me to a blank page when I tried to go to Microsoft. Apples answer to all this is there was nothing wrong with my iPhone or my iMac and if I thought there was a problem to call the police which I have done.
    Theres no doubt the hackers are reading this while I type it or will read it and I simply don't care anymore. I no longer email anyone, don't use my iCloud account and have taken precautions to protect my credit but if I ever find out who has invaded my privacy to this extreme the police are going to want to talk to me because Im going to hurt them like they've never been hurt before

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • I downloaded mountain lion on my laptop.  Do I need to do the same on my Desktop and iPad or is the one download good for all 3, and how do I do that if it is?

    I downloaded mountain lion on my laptop.  Do I need to do the same on my Desktop and iPad or is the one download good for all 3, and how do I do that if it is?

    If your desktop computer is one that supports Mountain Lion, you can either download it there or make a bootable jump drive with the installer on it -- assuming you haven't yet used the installer you downloaded to your laptop.
    As for the iPad, it doesn't use the same OS as the Macs do; it uses iOS versions, so Mountain Lion won't work there.

  • I need help restoring the ability to view Youtube and all videos of my 4 year old MacBook after receiviving a meaage the the Adobe ineeds to be updated?  Thanks.ng

    I need help restoring the ability to view Youtube and all videos of my 4 year old MacBook after receiving a message the the Adobe ineeds to be updated?  Thanks.

    Did you upgrade whatever product from Adobe was out of date yet?

  • Friend of mine bought movies(ITunesStore)one of the 5 devices that she could use is my Mac.She needs to use the movies on another device and for that I have to erase them,how do I do that?I deleted them but she can't still used them?How delete themsurely?

    Friend of mine bought some movies (ITunesStore) one of the 5 devices that she could use them in is my Mac. She needs to use the movies on another device and ask me for delete the conection in my laptop.  For that I erase them in Itunes, but she can't still used them? How delete the conections between my computer and her account?
    Thank you for your answer.

    Hello there, Ingridvon.
    The following Knowledge Base article provides the information you are looking for:
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/HT1420
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Do i need to install the iTunes in my iPhone and backup before update the software version?

    do i need to install the iTunes in my iPhone and backup before update the software version?

    No itunes on your computer.

  • Is the Adobe Creative Suite ordered and sent to me from the U.S. will be legal in Poland?

    Hallo
    I have a question: Is the Adobe Creative Suite ordered and sent to me from the U.S. will be legal in Poland. Will I be able to do it legally projects in my Country.
    Paul

    lou,<br />>Is the Adobe Creative Suite 4 Design Premium user guide worth the 50.00 dollars?<br /><br />The exception would be if you don't mind spending the time using up a good portion of a toner cartridge, a ream or so of paper, a three-hole punch, and a thick binder or two to put it all together.<br /><br />And the result makes for some rather uncomfortable bathroom reading. Then again, you can always just print out the pages you need at the moment.<br /><br />Is buying the guide worth $50? Only you can decide.<br /><br />Neil  <g>

  • How to Disable the Process Header, collapsible Area, and Process Warning Bar from Contacts Form of CRM 2013

    Folks,
    How to Disable the Process Header, collapsible Area, and Process Warning Bar from Contacts Form of CRM 2013
    Thank you.

    Hi,
    You can deactivate the business process itself if you do not want at all. So that the header will not available for the entity.
    Regards,
    Priya

  • I bought the CD of iWork's and have installed pages from it - to use version in Lion do I have to buy the app?? If I do, do I have to delete the other pages??

    I bought the CD of iWork's and have installed pages from it - to use version in Lion do I have to buy the app?? If I do, do I have to delete the other pages??

    All you need to do is run Software Update to make sure you have the iWork 9.1 update. It will update your existing installation of the three applications. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. Even if you think you'll never need all three of the applications, you cannot delete any. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.

  • HT1510 Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    gakansas wrote:
    It has some songs I would like to keep
    There is no legal way to do this-  You would need to be using the same AppleID (account)
    As far as deleting the songs, in a situation like this, you should restore the iPod which will delete the songs as well as allow you to sync your own music.
    For instructions on how to delete/add songs  it's best to check the manual:
    http://support.apple.com/manuals/#ipod
    As far as restoring, you didn't mention what model you are using but just choose your model from here (they have step by step instructions):
    http://www.apple.com/support/ipod/

  • Hi, I am trying to download IOS7 to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hi, I am trying to download IOS7 (not sure if it's 1 or 2) to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hello Den53,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430?viewlocale=en_US
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    After the device has turned off, press and hold the Sleep/Wake button until the Apple logo appears.
    Best of luck,
    Mario

Maybe you are looking for

  • UITextField from .xib file doesn't show

    A UITextField from .xib file doesn't show when it's page comes up on the iPhone simulator. The View looks fine in Interface Builder, and no warnings are thrown to Console or IB's Info window. On the Simulator the View comes up and a Label and a Switc

  • Should I update my mini's firmware?

    i have a mini part number MB138LL/A (mid-2007), bought in november 2007. its boot ROM and SMC version are: Boot ROM Version: MM21.009A.B00 SMC Version: 1.19f0 at this page (http://support.apple.com/kb/HT1237) i see these firmware updates for the mid-

  • G4 powerbook and G3 desktop with linksys help

    In either case, laptop, or g3, I can type in the linsys router address and get to config page, but on either - I cannot access the internet. On my laptop, wirelessly - I have tried the WPA password avenue and all kinds of different scenarios, then I

  • Budget

    HI sapient My client requirement is that they wants procurement budget checking in the PR and PO stage only, after that if any changes will occure it will not effect the procurement budget amount. The amount for procurement budget which have been ded

  • Motion control: PXI 7350 controller and UMI 7774 to interface with third-party driver UDK5114NW2

    Dear community, This is about Motion control in Labview: I try to control a step motor by using a PXI 7350 controller and UMI 7774 to interface with  third-party driver UDK5114NW2. The problem is 5 Disable LEDS on UMI 7774 board always lit even when