The counter output is not a smooth increment, it looks like a stairway

I am trying to smooth out the rpm reading from my counter 0 on a PCI-MIO-16E-4 daqboard. When I increase or decrease the speed, to 0 RPM it looks like a stairway going up and down.

It sounds like a discretization effect that can arise if you figure RPM by counting edges and dividing by the sampling period.
For example, suppose your sampling period is 0.010 sec (100 hz sampling rate). Your edge count can only change by discrete integer amounts each sampling period. The change may be 0,1,2,3,... counts leading to calculated frequencies of 0.100,200,300,... hz. But you will only ever see these discrete values, hence the stair-stepping effect when you accel or decel your device.
Odds are you can get much more precision using the buffered period measurement technique -- though you'll also likely get substantially more data to handle. In this method, you'll use the high-frequency internal timebase (20 MHz) to measu
re the intervals between your device's pulses.
For example, suppose your device pulses at 1250 hz. Each interval will measure 16000 cycles of the 20 Mhz timebase. Now if you have an off-by-one discretization error, you'll get 16001 cycles in an interval for a measurement of 1249.92 hz.
There's a really good tutorial about frequency measurement error posted here.
-Kevin P.

Similar Messages

  • Pause the counter output in DAQmx

    Hi~
    I used two counters output on PCI-6602 card in LV7.1 to generate a PWM to control the velocity of two motors that control the position of mechanism.(Encoder was set on the motor.)
    When I set the same duty cycle in two counters, the position of two mechanisms were different(Two mechanisms were the same),that means one velocity of motor was fast, the other was slow.
    May I pause the counter output of the fast motor to wait the slow motor??
    ====================
    ●LV Version:LabVIEW7.1
    ●OS:WindowsXP(SP1)
    ●Hardware:PCI-7344, PCI-6602, PCMCIA 6024E

    Assuming you're using DAQmx, you can set up a Pause Trigger for each of the counters.  (A similar function can be done in traditional NI-DAQ too).  You could, for example, configure 2 different digital bits to be used to pause the 2 PWM counters independently.  The way 'Pause Triggering' works is that the counter's pulsetrain only goes to the output pin when the pause trigger signal is in the correct logic state.  This can be set to be low or high by programming. 
    You may also want to characterize the speed difference of your actuators, and give them correspondingly proportional PWM duty cycles.  That would do a better job of keeping them in sync throughout the motion.
    A feedback signal would give you even better options for control.
    -Kevin P.

  • Some of the songs I have downloaded onto i tunes won't play when I select it to do so.  The error message I get is "The song could not be used because the original file could not be found.  Would you like to locate it?"  How can I get my songs to play?

    Some of the songs I have downloaded into i tunes won't play when I select it to do so.  The error message I get is "The song can not be used because the original file can not be found.  Would you like to locate it?"  When I select yes I'm sent to a screen that has my i tunes library listed.  When I select the song in question I'm asked if I would like to open the song.  When I select this option I get nothing.  The songs I have downloaded must be somewhere because they are listed in my i tunes library and on the screen I've been sent to.  I can't the songs to play however.  This is not true of all of my songs but it is true of quite a few of them.  Actually, one song is too many.    How do I get my music to play that seems to be locked up somewhere in the computer?

    Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.

  • On some of my files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?" Then when I click "Locate", I get nothing.

    I'm really dumbfounded on this one and it's driving me bonkers!!!! On some of my music files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    This began to happen when Chuck made playlists2burn on2CD-and then he would delete the playlist; sending all the song files into oblivion. Certain songs have a ! right next to the file name, and as I stated before, i get that error message:
    "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    So I click on "Locate". No help. I get a menu with folders that say "catroot" and other folders which names I cannot remember, but I scroll PAST the file folders, & it's just a bunch of ".DLL" files.....I don't understand what any of the names of the folders mean...it's frustr8ing-coz this is my 2nd iTouch, my 1st one got stolen & I can't afford2buy my music back at this time & i NEVER before had a single problem with losing song file locations.
                  Is there anyone out there who has been through this frustrating game of chasing your tail?....<that's how I feel>
    If so I would be ever so gr8ful if maybe someone with the knowledge would be so kind as 2 tell me how/where 2 retrieve these songs & how to put everything back where it belongs, I would be 4ever gr8ful !!!
    I can't afford 2 replace the songs just like I'm unable 2 buy back my old music from my stolen iTouch....man that was an awesome collection-someday I'll be able 2 afford 2 do that & I would like 2 have all the new music that I paid 4 but cannot find when I got my new iTouch....that would just be  wonderful.
                 I hope someone sees this post that can help me retrieve these files....losing $100.00 of iTunes is a REAL BUMMER!!!!!!
                                                      ThanQ SO very much!
                                                                             [email protected] or [email protected] or [email protected] .
                                                                                               You can also find me on Facebook, my given name is Tiffinie Trimmer, &
                                                                                                that's my Facebook "handle".    ThanQ 4 taking the time 2 read all of this!
                                                                                                hope 2 get a reply someday....I'll B checking all my emails & my Facebook, as well
                                                                                                as marking this page in my FAVORITES so I can find it fast! Take Care!!!

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • This is a new notification coming up with iTunes, why and how do I fix it? The song "Penny Lane" could not be used because the original file could not be found. Would you like to locate it?

    This is a new notification coming up with iTunes, why and how do I fix it?
    The song “Penny Lane” could not be used because the original file could not be found. Would you like to locate it?
    Max

    Hey xxCreepyFiaxx,
    First, I would try the following suggested steps for when you don't see content in iTunes after updating:
    Quit iTunes.
    Download and install the latest version of iTunes.
    Use the Finder (Mac) or Windows Explorer (Windows) to go to the iTunes folder that contains the iTunes library files:
    Mac OS X
    /Users/username/Music/iTunes/
    Microsoft Windows Windows XP and Windows 2000
    \Documents and Settings\username\My Documents\My Music\iTunes\
    Microsoft Windows Windows Vista and Windows 7
    \Users\username\Music\iTunes\
    Drag the iTunes Library file from the above location to the Desktop.
    Open the Previous iTunes Libraries folder in the iTunes folder.
    Locate the file named iTunes Library YYYY-MM-DD where YYYY-MM-DD is the date you upgraded iTunes (Year-Month-Day).
    Drag this file to the iTunes folder (the enclosing folder).
    Rename this file to iTunes Library.
    Open iTunes.
    You should now see your missing content in iTunes.
    via: No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    If that doesn't resolve the issue, then I'd go through the steps in here:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Have a good one,
    Delgadoh

  • After installing iTunes 10.5 update i get the following message when trying to play any song in my Library "The song could not be used because the original file could not be found. Would you like to locate it?"  how do i fix this??

    I have an iPod Classic and work on Windows 7.
    i recently installed iTunes 10.5 update and since then i cannot play any of the songs in the Library - i get the following message
    "The song could not be used because the original file could not be found.  Would you like to locate it?"
    what happened to all my songs (almost 2000) How can i get them back into my music library?
    Please help - i do not want to spend another week downloading all my cd's onto my computer !!!!!

    Try my script FindTracks. Select a few of the missing files to start with then run the script. Choose No at the first prompt so that you can check how it works track by track, then confirm or edit the location of the media folder where your files are. Once you are happy with how it behaves let it process larger numbers of tracks automatically.
    tt2

  • I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on all my tunes and each one I select ends up with a "?"

    I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on each tune I select and a "?" appears beside the song.  Does this sound familiar to anyone?

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • ITunes tells me "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want it?

    iTunes tells me my song selection: "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want?
    Message was edited by: Woildbill

    I just spent several hours dealing with this when switching to a new PC. It was extremely frustrating as I knew my files were on my external HD but no matter how many times I copied my old iTunes folder over the files were still missing...because dummy me had forgotten to "unhide folders" on my new PC and my old files were actually stored in a hidden folder created long long ago.
    This is how I did it on Windows 7 with iTunes 10
    1. Look in iTunes Advanced Preferences to see where iTunes is saving files. (Edit, Preferences, Advanced)
         Example: C:/Users/Woildbill/My Music/iTunes/Music
    2. Ensure you are able to see hidden files - Control Panel, Folder Option, View, Show Hidden Files
    3. Use Your Computer's Search Function to Locate the Missing File (Start, Search, type name of song - I started my search in "My Music" folder but be sure to expand to entire Computer if not found right away)
    4. In Search Results, right-click found folder and select properties. This will tell you where the file is actually stored.
    5. Use Windows Explorer (right-click start) to navigate to the location of the file. It is likley your other missing files are in the same location.
    6. In Windows Explorer, copy the newly located files to the iTumes location from Step 1 and everything should work again.
    Hope this helps!

  • ITunes will no longer play my music, all the albumss are there but it if I click on a song to play it I get a message saying " The song (name of song) could not be played because the original file coul not be found. Would you like to locate it."

    iTunes will no longer play my music, all the albumss are there but it if I click on a song to play it I get a message saying " The song (name of song) could not be played because the original file coul not be found. Would you like to locate it."

    You get this message because  iTunes can’t find the file. This can happen for a number of reasons:
    The song file or a folder in its path was renamed
    The song file or the folder it is in has been moved
    The song file has been deleted
    The device containing the song files e.g. external drive is not accessible or the drive letter has changed.
    Do any of these aply to you?

  • What does it mean when a box pops up saying "The song could not be used because the origional file could not be found. Would you like ot locate it?"

    A  while ago, I was cleaning out some old pictures and music from my  computer. I noticed there were a lot of songs that I did not recognize,  and they had nothing to do with my itunes. I figured my step-dad or  sister might have put those songs on my computer or something. So I  deleted a few of them. The next day or so I realized all my music was  gone from my itunes. I still had the account but everything was wiped  clean, my music and playlists. I plugged in my ipod hoping it would  restore all my music but nothing happened, I still had my music on my  ipod and my cell phone. A friend of mine took my ipod, and put all of  the music on a hard drive, gave me the hard drive and I transferred all  of it in a folder onto my desktop. Then I drug that entire folder into  my itunes library. When I click to play a song through itunes a box pops  up and says "The song could not be used because the original file could  not be found. Would you like to locate it?" When I click on the song to  play it in the folder, it will go to itunes and then play it through  there. But I cant just go click on the song in my itunes and play it.

    It means the media is not where iTunes expects it to be.
    iOS devices are not and have never been backup devices.
    Are the files in question still on the computer?
    If not, you should restore them from the backup of the computer.  You do have a backup, correct?

  • I recently transferred my itunes library to an external hard drive. Now I get the error message 'the original file could not be found. Could you like to locate it' when i try to open songs. My iPod syncs ok.

    I recently tranferred my iTunes library to an external hard drive. Now I cannot open songs and get the error message ' The song "***" could not not be used because the original file could not be found. Would you like to locate it'. This applies to all 9742 songs!!. My iPod still syncs ok, but I can't play songs on the PC. Can anyone please help.

    It would help to have more background about your iTunes collection such as if you keep it on an external drive, or if you have moved or renamed anything recently.  iTunes is very sensitive to you renaming or moving files or folders involved with your media.  iTunes only keeps a reference to where a media file is located  and then goes to look for it when you try to play it. If you have changed things since it was added to itunes then it's like me sending you to look for a friend in my addressbook but that friend has moved.
    The other possibility is your computer is starting to lose files.  Again, the computer uses a reference database to tell it where on the drive to look for a file. If that database gets corrupt then it starts losing files.  Use Dsk Utility's first aid to verify your hard drive.

  • My iTunes account sayscould not be used because the original file could not be found. Would you like to locate it? whenever i click on a song and i didn't move the songs anywhere. I don't know if i saved them to my hard drive so i can't find any songs

    I downloaded something that was told to me to get to put some of my itunes songs onto my android phone. I think it synced my account, though. Whenever i click on a song an exclamation point comes up and something pops up and says "could not be used because the original file could not be found. Would you like to locate it?" and i don't remember ever backing up my songs (this computer is fairly new) and now none of my songs come up. I have no idea what to do but ive spent hundreds of dollars on this account purchasing from the itunes store. Please help me!

    Tunes works through a database file which has a list of your tracks.  When you click on a track it looks up in the database which file it needs to play, then plays the file.  If something breaks this link then you get !  The two main ways to get ! are to move a file from where iTunes expects it to be, or to delete it altogether.  I don't know which has happened in your case.  You can try using Spotlight to find a file for the one referred to in a broken link.  If the files have been moved then they need to be moved back.  If they were deleted completely you will have to restore them from a backup or download them again from the iTunes Store and rebuild your library.

  • The song could not be used because the original file could not be found. Would you like to locate it?

    Suddenly unable to access & play music in iTunes,  I have paid for. 
    Frustrating - *** apple?
    Attemps I have made to no avail...
    1)  Choose one specific broken file. Press CTRL+I to Get Info. Navigate song myself...
    This lead me through music>itunes>itunesd media to an Empty envelope with the song name.
    2)  Retrieve song from previous back ups. 
    I went to my external hard drive updated with Time Machine & was again lead to an empty folder with the song name that has an ! beside it in iTunes.
    3) 
    iTunes WILL NOT let me download it again.  It says "play" beside the song title instead of "purchase" (as it should) but even when i try to play it from iTunes says "The song could not be used because the original file could not be found. Would you like to locate it?"
    which of course leads no where.
    4)
    Checked iTunes for songs that needed to be downloaded - nothing.
    5)
    Not in trash bin
    I have not moved or renamed any songs.
    There are not multiple copies of the same song in my music library.
    songs are apparently missing & so not able to be put into a new folder.
    like most, i truly do not have time to take time out to find  multiple songs or  i purchased via itunes .
    so frustrating.
    Help very much appreciated.

    Previous purchases may be unavailable if refunded or if no longer on the iTunes store.
    •Downloading past purchases from the iTune Store, App Store, and iBooks Store:
    http://support.apple.com/kb/HT2519
    •iTunes - Apple Support:
    http://www.apple.com/support/itunes/
    •iTunes: Apple Support Communities:
    https://discussions.apple.com/community/itunes
    Sorry that your missing purchases no longer appear available.
    Not sure what other recourse you have.
    Good luck & happy computing!

  • HT204406 I opened i Tunes on my mac and while i see the songs in some of my playlists they will not play. The computer says the song could not be used because the original file could not be found. Would you like to locate it? When i do it won't play.

    I opened i Tunes on my mac and while i see the songs in some of my playlists they will not play. The computer says the song could not be used because the original file could not be found. Would you like to locate it? When i do it won't play.

    You will need to locate where you itunes library is and then relink one of the songs, itunes will do the rest. So if your itunes library is on an external hard drive or something like that. When you get the error message click yes you would like to locate it. then navigate to the external hard drive where the itunes libray is and locate that particular song. Once you have linked one, itunes will ask if you would like it to locate the rest, click yes and it will find the rest of the files if they are in the same location.

  • Got a new computer now I'm getting a new error "The song could not be used because the original file could not be found.  Would you like to locate it?"

    So i got a new computer and before i did i backed up al my music onto an external hard drive. I downloaded itunes and went to put my music back on and when I unplug my hard drive i get this message "The song could not be used because the original file could not be found.  Would you like to locate it?". I have close to 3500 songs so its a little annoying that i cant update or sync my ipod/iphone. Are there any tips or tricks you could help me with in order to fix this problem

    Here is the folder hierarchy of my /Home/Music/folder:
    Music folder
    iTunes folder
    iTunes Media folder
    Music folder
    Note that the contents of this last folder in the hierarchy will be different on your computer.

Maybe you are looking for

  • Running FCE on new iMac

    I just purchased one of the new aluminum 20" iMacs and I wanted to use it for editing some video. I am concerned about whether FCE will run on it or not. I read some stuff on the internet and I am not sure if it will or not. Something about the graph

  • Why do my pictures become blurry after exporting from lightroom 5?

    My pictures become somewhat blurry or not as sharp after I export them from lightroom 5. PLEASE HELP!!!

  • Update process form

    I want to be able to update a process form (AD User) before the user is created by using a process task instead of pre-pop. I did a search on the forum and found this: searchMap.put("Objects.Name", "AD User"); objresultSet = moObjectUtility.findObjec

  • Can't save printing preference HP 6313 All in one

    Since last week my settings changed to the default factory settings and I've tried changing them back to the ones I prefer by doing the following: Control panel - Printers and Faxes - right click HP 6313 - printing preference and then I make the chan

  • OBIEE & Microsoft outlook calendar

    Can OBIEE read a MS Outlook calendar file? RV