I have one application that has requirement to do low and high speed acquisition. I want to change sample rate while running. BUT... I have E series Device

I am writing control software for a process that is usually dull and
requires only 10 Hz acquisition rate.  At particular times during
the sequence, however, we are interested in looking at a couple of
channels at 1000 Hz.  My approach so far is to configure my
Buffered DAQ to run at the higher rate at all times.  When we are
in the 'high-speed DAQ' mode, the program logs every point to
disk.  In the 'low-speed' mode, I am picking off every nth (in
this case, 10th) point to log to disk.  At all times, I update my
GUI indicators on the front panel at a maximum of 4 times per second (I
find that anything faster results in an uncomfortable display), so I
fill up a FIFO with data in my acquisition / logging loop, and read the
FIFO in the display loop.  The data in my GUI display can be up to
250 milliseconds off, but I find this acceptable . As a side note, I
need buffered Daq with hardware timing, as software timing results in
lost data at 1000 Hz.
This all works fine and dandy, but I am convinced that it is not the
most elegant solution in the world.  Has anyone developed a
buffered DAQ loop where the scan rate can be adjusted during
operation?  I would like to change the rate of the E-Series card
rather than relying on down-sampling as I am now doing. 
The reason I have concern is that at the moment I am simulating my AI
using MAX and when running the down-sampling routine, I consistently
miss a particular event on the simulated data becuase the event in
question on the simulated data always occurs at the same 'time', and I
always miss it.  Granted, while it is unlikely that my measured
signal and my acquisition are perfectly synchronized in the real world,
this particular situation points out the weakness in my approach.
More than anything, I am looking for ideas from the community to see
how other people have solved similar problems, and to have you guys
either tear apart my approach or tell me it is 'ok'.  What do you
think?
Wes Ramm, Cyth UK
CLD, CPLI

Adding to Alan's answer:
One of the problems that comes with these tricks for variable-rate acquisition is being able to match up sample data with the time that it was sampled. 
If you weren't using either of E-series board's counters, there is a nifty solution to this!  You'll be using 1 of the counters to generate the variable-rate sampling clock.  You can then use the 2nd counter to perform a buffered period measurement on the output of the 1st counter.  This gives you a hw-timed measurement of every sampling interval.  You would need to keep track of a cumulative sum of these periods to generate a hw-accurate timestamp value for each sample.
Note:  the very first buffered period measurement is the time from starting the 2nd counter until the first active edge from the 1st.  For your app, you should ignore it.
-Kevin P.

Similar Messages

  • TS1717 I have older version of itunes on Windows Vista, when i check for updates it states it cannot connect to itunes update server even though i am connected to the internet, i have an iphone that has songs in the cloud and i wan to add them to my libra

    I have older version of itunes on Windows Vista, when i check for updates it states it cannot connect to itunes update server even though i am connected to the internet, i have an iphone that has songs in the cloud and i want to add them to my library?

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • I have card reader that has a 3" disc.. and my computer isn't recognizing it? what can I do.?t won't recognize

    i have kodak photo card reader that has a 3" disc.. and my computer isn't recognizing it? what can I do.?
    it is Mac compatable but when i put it in the cd slot.. nothing happens

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • HT1212 i have an ipad that has a password on it and i dont remember my password i tried to restore it using itunes but its telling me that i need the password is there another way to go about this?

    im trying to unlock a friends ipad for her because her step daughter doesnt want to give the password to her how do i go about in restoring it without using the password in order for me to do the process

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • IPhone cannot connect to server: I have one iPhone that has just been updated to 5.1.1 that now cannot receive email, other devices that have been updated continue to work!

    We run a SBS 2003 Exhange box, however since an over-the-air update this particular handset has refused to recieve mail from Exchange (apparently Yahoo had issues too).
    Authentication is fine, it will happily recognise the account if it is deleted and set up - once the user tries to recieve mail however it will annonce that the connection to the server failed.
    We have several other devices on the same iOS version and others below which are working fine!
    Mobile access is enabled along with all expected services with no errors being flagged in the event manager for this user - I'm not wondering what might be the cause! Something in his mail box that iOS 5.1.1 doesn't like?!
    Short of a backup/restore of the device I'm can't see anything to help...

    It would worth your asking in the Final Cut Pro X forum - someone else may have experienced the same problem.
    I assume you have already trashed Preferences/ByHost/com.apple.dotmac... (several files beginning with this) and (same path) com.apple.idisk - though I suspect the problem lies rather with the individual programs which are trying to access something on the non-existent iDisk.

  • My IPOD froze while downloading the update of IOS 5 now I have a screen that has the blue itunes logo and the USB connector. when I connect to my computer it does not recognize the Ipod?

    My Ipod froze while downloading a software update from Itunes.. now I have a screen with an Itunes logo and the USB cord and my computer does not recognize the Ipod??

    See Here for,
    Device Not Recognised
    For PC
    http://support.apple.com/kb/TS1538
    For Mac
    http://support.apple.com/kb/ts1591
    And Here for,
    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • HT204053 How do I delete an iCloud ID that has an old email address and I can't remember the password?

    How do I delete and iCloud account that has a former email address and I can't remember the password.  All attempts to recover the password have failed!!

    Hello there, Gary7023.
    The following Knowledge Base article made prove useful for you with the issue you're having:
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    If it's not available in your country and you do not have a copy of it in iTunes backed up on your computer, you don't.

  • We have a legacy Forms application that has

    We have a legacy Forms application that has been moved to the web. Now that it is executing using OAS9i, we are now providing an ASP offering for clients. The application consists of 210 Forms 6i screens, 130 Report Writer 2.5/6i reports as well as 150 C batch programs producing text reports in the Unix environment.
    Clients are now asking for the ability to list and examine online reports saved to the filesystem.
    Has anyone created a method of listing and displaying reports saved to the filesystem? We have a Unix utility that can convert C program text output to the PDF format.
    Any help is appreciated.

    You might be able to do this without having to write a server-side java bean by doing the following:
    web.show_document('http://webserver:port#/reports_dir');
    if you just give the directory name and have no index.html in that directory then it should just give you a lisitng of the contents of the directory as links (all your reports that have been turned into PDF files) Your user could then click on the report they want and then the browser should be able to recognize the adobe file and display it without any forms code.
    Hope this helps,
    Candace Stover
    Forms Product Management

  • I have a website that has a scrolling marquee which i assume uses java and because you have blocked java it wont work when viewing, is there a way around this?

    I have a website that has a scrolling marquee at bottom of the page with vital information for viewers of the site, this works fine on internet explorer but not firefox, I assume its because you have blocked Java? Is there a way of solving this problem?

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    Marquee requires JavaScript to be enabled.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I make it so that the one computer that has the main itunes account on it be used on other computers, when it comes to backing up phones and not deleting data off of phone that isnt on that computer itunes becasse its all on the one main computer

    how do I make it so that the one computer that has the main itunes account on it be used on other computers, when it comes to backing up phones and not deleting data off of phone that isnt on that computer itunes becasse its all on the one main computer. Baiscally the problem is that one comuter and one account has always been sued for eey persons itunes. Now if we want to be able to backup and use itunes on our own computers fro our iphones and such, how will all he data that is on our phones not be deleted once its plugged into a new computer? Also, is theere a way to get all the stuff on thw current itunes onto each computer, via differtn account name?

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • How do I Add second monitor to ALL in One ENVY23 that has a HDMI port

    How do I Add second monitor to my ALL in One ENVY23 that has a HDMI port the computer has Win 8  Model #: 23se-d494
    Product #: F3D93AA#ABA
    Serial #: [edited Serial Number by Moderator]
    Software Build #: 14AM1HRA601#SABA#DABA
    Service ID #: 20140521
    PCBRAND #: HP

    Here are the specs for your HP ENVY TouchSmart 23se-d494 All-in-One Desktop Computer. Based the specs, the HDMI port on the side of your computer is an INPUT only. This model doesn't have a video output of any kind.
    1 - Controls           2 - HDMI In port (model dependent)
    You will need to purchase and use a USB-to-video adapter such as the EVGA UV Plus+ UV39 (or any of the many other adapters on the market) to connect an external display to your computer. I personally use and recommend the EVGA UV Plus+ UV39.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it?

    Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it? I thought that if I bought it the apps on my macbook, they would be avaliable on my imac like the mobile devices operate. The macbook has 10.6.8 cause its a older model and I think lion would slow it down. Any help??

    Just redownload it on the other computer by logging into the App Store with the same Apple ID you used to purchase it.

  • I have one contact that i have been texting for months. About 5 hours ago, when I send a text I get an error message that the text couldnt be sent.  However, when I send a picture with a text message, then it goes through to the contact.  Why am I getting

    I have one contact that I've been texting for months,  about 5 hours ago, I started receiving an error that the text was not sent.  However, if I text a picture and then text with the picture the message goes through.  Why am I getting this error?

    You can also try out few things >
    1) check if the ipod constantly appears in mycomputer section .
    - if it does try changing the drive letter of the ipod and try to format the ipod drive(Right click format)
    2) if its not comin up in mycomputer then.. there has to be problem with the USB drivers in your computer
    you can try
    http://docs.info.apple.com/article.html?artnum=304508
    The best way to check whether the ipod is faulty or the computer is creating the problem is,
    connect the ipod to a different computer which has itunes on it(If possible)

  • Firefox has stopped working altogether (Windows 7). It will NOT start. I have uninstalled everything that I could find to uninstall, and then re-installed.

    Firefox has stopped working altogether (Windows 7). It will NOT start. The spinning start up graphic will spin for a moment, and quit. I have uninstalled everything that I could find to uninstall, and then re-installed, but to no avail. I have followed the currently posted suggestions with out success. Any other suggestions?

    '''[http://www.mozilla.org/en-US/firefox/all/ Download Firefox Full Installer For All languages And Systems]''' {web link}
    Save the file. Then;
    Using your file browser, open the Programs folder on your computer.
    '''Windows:''' C:\Program Files
    C:\Program Files (x86)
    '''Mac:''' Open the "Applications" folder.
    '''Linux:''' Check your user manual.
    Look for, and rename any Mozilla and Firefox folders by adding '''.old''' to them.
    Now run the full installer.

Maybe you are looking for

  • Origin of Sales Tax ID Number in billing document

    Hi In the billing Header, Taxes, there is a field "Origin of Sales Tax ID Number". Can you pls. guide me what is the mean of this field and how the value for that particular field is detemined. with regards

  • How do I retrieve lost Bookmark icons most of which disappeared when I updated to Firefox 8?

    After I updated to Firefox 8 I noticed that more than half of the itemsin my bookmarks list had lost their icons which were replaced by a dotted line in the shape of a square. I tried to go back to using Firefox 7 using System Restore. The restore wa

  • HP 8 G2 GPS Doesn't Work

    Yet another problem with this tablet: The GPS does not work. Nokia HERE maps: Perpetually "Waiting for GPS".Google Maps can't show location in GPS only mode.GPS Status & Toolbox app never gets past "Looking for GPS location..." Anything to try before

  • My hp mini 110 wont turn on

    Hi. Can you please tell me how to fix my laptop problem. Cause everytime i turn on my laptop the lcd was blank. No display thanks for answer me & sorry for my english

  • How to Set up Flash builder to build Air Mobile Apps

    Cannot find a decent tutorial how to install the sdk etc for Flash Builder. Does anyone know of an easy to follow guide? Or Can tell me how?