How do I adapt this example to count ticks/unit time?

I found the attached example in Labview 2012, for counting ticks of an encoder wheel.  I can easily count ticks with this vi and my encoder wheel hardware.
I would like to be able to count ticks in a fixed time interval, and return a value of ticks/ms etc.  I would like to do this over and over again in WHILE loop structure.
How do I modify this example to count only for a fixed time interval, e.g. 50ms, output the number of counts, and then start over from zero again?
Alternatively, I could fix the number of ticks, and measure the time that it takes to count, e.g. count to 100 ticks, and tell me the time it took to get to 100 ticks.  Either way is acceptable for my application.  Both give me "ticks/time"
Can someone suggest an architecture to do this?  I'm a bit stuck on how to start.  I was looking at the timed loop structure, but, I can't figure out how the counter would reset to zero...it seems like it would add counts with successive iterations.
I am using cDAQ9174 and NI9401 module.
Thanks,
Dave
Attachments:
Count Digital Events_example.vi ‏23 KB

Hi Kevin,
I got the vi working, but, there is one weird aspect of it.  I am seeing these phantom signals.  Here are three samples of data collected varying the averaging period from 50ms to 1000 ms.  The rate the encoder is moving is about 1 revolution/second, not super fast by any means.  Notice that the phantom signals can be very large or very small
Phantom1 is 1000 ms period.
Phantom 2 is 100 ms period (it's hard to see on the picture, the actual frequency measurement is about 120Hz, as seen in the Excel file data)  The spike to 450,000HZ makes the rest of the data look like ZERO, but, it is actually similar to the others, since all three were collected at the same motor speed.
Phantom 3 is at 50 ms period.
The frequency is about 120 Hz.  This encoder has 120 ticks/revolution, so 120Hz, is one rev/second.
Is there a filter that can be added to eliminate these signals.  They are positively definitely and for certain, NOT real.  My system is a simple belt driven encoder from a DC motor at fixed speed for all three collections here...the spikes up and down are impossible.
I also attached my vi, in case you want to see if I ruined anything adding the WRITE TO SPREADSHEET function.  I will post in the next one..apparently there is  a limit of 3 attachments.
Thanks,
Dave
Attachments:
phantom1_1000ms period.jpg ‏45 KB
phantom 2_100ms.jpg ‏78 KB
phantom3_50ms period.jpg ‏75 KB

Similar Messages

  • Can anybody tell me how I can reproduce this example.

    Could someone explain how to disable some of the fileds in a tabular form like in the example at:
    http://apex.oracle.com/pls/otn/f?p=24317:255:430103859632517::NO:::
    I have downloaded this but don't understand how it is done.
    Thanks

    Hi,
    If you are using apex_item.text you can specify p_attributes parameters (= Extra HTML arguments you wish to add)
    so you can conditionally add DISABLED or READONLY attributes to your item
    Use DISABLED for LOV and READONLY for texts.
    As an example statement that will create readonly edit box if the value of :P100_EDITABLE item is not set to YES
    select apex_item.text(1,'your_value',30,30, CASE WHEN :P100_EDITABLE = 'YES' THEN NULL ELSE ' READONLY ' END)
    from dual
    Alternatively you can use apex_item.display_and_save - which will display the data without the possibility of modification.
    Rado

  • PDFs...how do I do this example?

    I have a web site that was not constructed with Dreamweaver.
    Someone else did it for me. I've since been editing my site with at
    first Contribute 3 and now Contribute CS3. I'm trying to become
    more independant from my developer and do more and more things
    myself.
    However I'm permitting a friend to use my site for posting
    his newsletter, with archives to past issues. They're all PDFs.
    I've tried Editing that portion of the site "The Great Escape" but
    Contribute won't let me...the way I'm used to editing the rest of
    the site. It would take me forever to explain what I'm referring to
    so here's my web site. When, or if, you have a chance to take a
    peek at it and explain how to do what is there by myself I'd very
    much appreciate it.
    Here's the address: www.dixieswing.com The Great Escape
    newsletter link in on the Home page.
    Thanks much,
    Ted

    My apologies, I misstated my question I guess. In the Edit
    mode I double clicked on the GreatEscape icon which opened up into
    an Image Properties window. What I would actually like to do is to
    be able to have the newsletter man send me PDFs of future issues
    for me to post on the GreatEscape site and archive the old ones. I
    was hoping I could merely copy and paste the newer issues as they
    came to me. I'm sure it's more complicated than that though.
    I don't know what program he used to construct the site but
    have been very successful, thanks to Contribute, to edit the site
    myself. Thanks, Ted

  • How do I uninstall 178,210 personas that my daughter installed, I have no idea how she did this or how to undo all this mess. One at a time may take me several years, have any suggestions for more than one. Thanks

    My daughter has an addiction to computer and I thought she couldn't get thru my FoxFilter, never thought there was something she could mess up on Firefox itself. Every time I start my computer it runs and runs, and takes forever for anything to download. I understand why. I just don't know how to fix it. Since there are 178,210 of these personas been added to firefox. Thanks for your help.
    == This happened ==
    Not sure how often
    == Maybe alot was done on 7/30 or 7/31/10

    Did she install the Personas Plus extension (Tools > Add-ons > Extensions)?
    Firefox only keeps the last 8 installed personas by default.
    See [[Troubleshooting extensions and themes]]

  • How can i extend this wifi connection by using 3TB time capsule? I have a mac book pro i7

    Hi, i have a wifi in my house connected to an adsl wifi modem with fibernet speed. I just bought a time capsule with 3 TB and installed it at home. However during the first installation i couldn't connect TC to my modem with ethernet cable due to the absence of the cable.
    I would like ask if i can extend the wifi range of my network by connecting my TC to my modem without a cable after the first installation with cable is done?
    If yes,
    Could you please explain how to do it?
    Thanks in advance.

    No, there is no modem in the TC.. you must continue to use the existing modem.
    That can be bridged if your ISP allows it, and use PPPoE client on the TC. It is then the main router of the network.
    Sometimes that setup is not possible.. the ISP supplied modem will not bridge or the ISP doesn't use PPPoE as there are a number of different methods to connect.. but the TC only supports that one.
    Otherwise just plug the TC into the existing modem router and use it in router bridge mode.. this is the simplest setup and easy to do.
    Create a wireless network and you can then use the TC instead of the main router for wireless if you like.

  • How do I solve this error issue i get every time I open the program?

    This happens every time I open muse. It just happens in muse and nothing else. I have uninstalled and reinstalled and i have wiped all of my adobe files off my computer and then re installed them and it still didnt solve the issue.
    Adobe Muse CC has encountered an error and will now exit. Please report the last few actions you took leading up to this error to the Adobe Muse CC team. Assertion failed in file "/Users/erato/Desktop/workspace/Build_Blob_Mac/dvaapp/Muse/project/mac/../../src/MuseIMSC onnector.cpp" at line 856: fUserEmailId==dvacore::utility::UTF8to16(emailID) user id mismatch

    Hello,
    please do the following steps and you will be all set.
    1. Sign out from Muse By going to Help > Sign out. (if you see the option to do that)
    2. Sign out from Creative Cloud Application. (Steps are mentioned in the link Sign out, Sign in | Creative Cloud Desktop app), then Quit Creative Cloud Application.
    3. Rename the "OOBE" folder to "OOBEold"
    MAC : (This folder can be found at Finder > Go > Go to Folder> Type ~/library/application support/Adobe > Hit return)
    Widows : ( This folder can be found at C:\Users\<username>\AppData\Local\Adobe )
    4. Relaunch Muse, Sign in with your Adobe ID.
    Please let me know if the steps above do not work or if you have any confusion.
    Regards
    Vivek

  • Every time I download an app Apple sends a notification to my phone to turn on automatic syncing. How do I stop this!!!!, every time I download an app Apple sends a notification to my phone to turn on automatic syncing. How do I stop this!!!!

    The topic says it all. Each time I down load an App I get a notifcation to my iphone telling me to turn on automatic syncing. I want it to stop. How do I stop it.

    On the device that you don't want the apps to be downloaded on, go to Settings > iTunes &amp; App Stores > Automatic Downloads. Once you turn that off, your problem will be fixed.

  • How do I fix this error message - "sparse bundle is already in use"

    Lately, I have been getting the following message that says:
    The backup disk image “/Volumes/Kaminski Family Time Capsul/Keith (2).sparsebundle” is already in use.
    How might I fix this?  Thank you for your time.

    Unplug the power cord from the back of the Time Capsule
    Count to ten
    Plug the power cord back into the back of the Time Capsule
    This will fix this issue 98% of the time. If you are in the unlucky 2%, more help is here:
    The Backup disk image ... sparsebundle ... is already in use.

  • When FF restarts my "browser.newtab.url" has been HIJACKED, it works fine if i reset it BUT on restart its back were it was ? HOW CAN I FIX THIS ?wstfbe

    when FF restarts my "browser.newtab.url" has been HIJACKED, it works fine if i reset it BUT on restart its back were it was ? HOW CAN I FIX THIS ? have reset it 20 times works fine while program FIREFOX Runs if program or OS shuts down its HIJACKED AGAIN.
    there must be a file or location that is ONLY USED ON LAUNCH, That has been modified or hacked.
    small clinch that is driving me nuts.
    Thanks RMY

    What is "browser.newtab.url" changed to?
    Knowing that may lead us to a solution as to what Malware your PC is infested with.

  • My MacBook screen is stuck in "presentation" mode after using my "Mini DisplayPort to VGA Adapter." How can I fix this?

    My MacBook screen is stuck in "presentation" mode (I don't know the correct term) after using my Apple Mini DisplayPort to VGA Adapter - meaning the screen fonts and windows are larger than usual. How can I fix this? I've changed the display settings to modify it a little, but it still doesn't look right. I reinserted the adapter numerous times and restarted my computer, it still hasn't worked. Help!

    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

  • How do I setup multiple users to use one source but manage playlists separately?  For example, play counts are specific to each user.

    How do I setup multiple users to use one source but manage playlists separately?  For example, play counts are specific to each user.

    Hi,
    Thank you for posting in Windows Server Forum.
    Here adding to the words of “Tim”, a forwarder is a DNS server on a network used to forward DNS queries for external DNS names to DNS servers outside of that network. You can also forward queries according to specific domain names using conditional forwarders.
    A DNS server on a network is designated as a forwarder by having the other DNS servers in the network forward the queries they cannot resolve locally to that DNS server. You can refer information regarding forwarders and how to configure from beneath link.
    Understanding forwarders
    http://technet.microsoft.com/en-us/library/cc782142(v=ws.10).aspx
    Configure a DNS Server to Use Forwarders
    http://technet.microsoft.com/en-us/library/cc754941.aspx
    Hope it helps!
    Regards.

  • When you create a link to a web page in numbers and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem? Thank yo

    When you create a link to a web page in numbers "Mavericks" and we export the PDF file, the link is offset by 3 rows. Example: if I put a link on the text (with Cmd-K) in cell A1, I found the link A4. In fact, this feature becomes unusable. How can we solve this problem?
    Thank you.

    Hi again Raja!
    I did as you recommended and installed HTTPWatch and below is the outcome of that program. It is the exact string with the only exception of obfuscated servernames and portnumbers. The last part that begins with "sap_ep_baseurl=" makes me suspicious, is that part really correct? It looks like it's lacking things.
    Best regards
    Benny
    http://<server:port>/sap/bc/bsp/sap/Z_PURCHASE_REQ/process.htm?
    sap-syscmd=nocookie&sap-client=200&sap-language=sv&style_sheet=
    http%3A%2F%2F<server>%3A<port>%2Firj%2Fportalapps%2F
    com.sap.portal.design.portaldesigndata%2Fthemes%2Fportal%2Fsap_tradeshow%2F
    controls%2Fcontrols_ie6.css%3F7.0.10.0.0&sap-cssversion=7.0.10.0.0&sap-tray-type
    =null&sap-tray-padding=null&sap-accessibility=&sap-ep-version=7.00.200611091758&
    sap_ep_version=7.00.200611091758&sap_ep_baseurl=http%3A%2F%2F
    <server>%3A<port>%2Firj%2Fportal&matnr=9780198603641

  • My magsafe adapter doesn't work, how can i solve this problem?

    my magsafe adapter doesn't work, how can i solve this problem?

    You can get a 60W power adapter for about $20 on eBay http://www.ebay.com/sch/i.html?_trkparms=65%253A1%257C66%253A2%257C39%253A1&rt=n c&_nkw=macbook+power+adapter&_dmpt=Laptop_Adapters_Chargers&_sticky=1&_trksid=p 3 286.c0.m14&_sop=12&_sc=1

  • My IPad Retnia does not charge when plugged in using the USB from my computer to car adapter, how can I fix this to be able to have flexibility in charging?

    When I plug me IPad into the USB connector to my laptop or into my car charger, it show as not charging. How can I fix this so that I can charge my Pad in these settings?

    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    And this - Unplug the charger from the iPad and then replug. May resume charging.
    Or - Recalibrate the battery. See link below.
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W (5W on Mini) USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • S4 won't work with car adapter but my old phone will. How do I fix this problem?

    When I plug the adapter into my S4 no music will go through my car speakers. However, with my old phone it works. How may I fix this problem?

        brownmde - That definitely shouldn't be happening with your phone. Let's see what we can do to get your phone and car working together. With regards to the adapter, is this a 3.5 mm aux cable going into the headphone jack of your S4, and into your car's audio head unit? When you plug in the cable, does your phone recognize that a cable/headphones have been plugged in? Do you hear audio out of headphones that are plugged in to the S4?
    NicandroN_VZW
    Follow us on twitter @VZWSupport

Maybe you are looking for

  • Looking for a List of GT72 with IPS screen

    hi guys ! I'm looking to buy a GT72 with a 970M or 980M , but my main focus is on the screen . i really want a IPS screen with my GT 72 , and i know that there is a few which got one.  when i look on website a lot of information are missing and i'm n

  • Big physical image size for thumbnails on blog overview page

    I have a problem with the physical size of the thumbnails on the blog overview page with iWeb '08 (version 2.0.3): In my blog overview page- see http://web.mac.com/steinfatt/site/Blog/Blog.html - the thumbnails are displayed with a width of about 182

  • Java.sql.SQLException: No suitable driver problem

    Hello all. Firstly, i am new to programming java apps that connect to SQL databases. I have set up a MySQL server on my computer, which i can successfully access through my command prompt on my pc (so i know its up and running). Now im trying to crea

  • Update & Corruption Issues

    Hi, I'm having serious stability problems on an Windows Web Server 2008 R2 SP1 x64 machine. I've installed this from a hosting provider's image and then proceeded to install any available updates. At this point, three of the updates failed: Windows I

  • Enchancing R/3 Extract Structure 2LIS_13_VDITM

    Hi, I would like to add an custom field in the Extract Structure 2LIS_13_VDITM. Could anyone please tell me the steps to do so? Thanks in advance. Best Regards, Chris