How do you store 10 sec of AI data then dispay the averaged stored value?

I'm very new to Labview6.1/PCI-6024E. I need to take in an AI and store values for about 10 seconds, then average the stored data. I think I need to use arrays. Is there a good exmaple I should be aware of?

Hi,
working out the 10 seconds is pretty simple. Whatever your sample speed is, then that says you will take x number of samples per second. So when you've collected 10 times this, then you know that you've done 10 seconds worth of data.
When you say average, do you mean you want to have one value that is the average of all the data, or a windowed average (i.e. if you have 1000 samples, then you might average points 0,1,2,3,4 to make one point, then 1,2,3,4,5 to make the next point, then 2,3,4,5 etc.)
I'm attaching a simple vi that does the sample, and a single average of the 10 seconds worth of data which happens every second after 10 seconds have gone through.
Please let me know if you needs more help on this.
Thanks
Sacha Emery
National Inst
ruments (UK)
// it takes almost no time to rate an answer
Attachments:
daq_with_rolling_10_second_buffer.vi ‏82 KB

Similar Messages

  • How do you save characters in an array and then output the characters as a string one by one.

    I want to know how to save a number of different characters to an array. then after open this array and read these values one by one as a string.

    Input to your loop has indexing enabled.  What happens is that on the first iteration, the indicator displays the first string in the array, then in the next iteration, the indicator displays the second string in the array, the first one is overwritten.  This happens so fast that all you see is the second one.  Look at attached vi in LV6.1 to see how to concatenate both into one indicator.  You really need to study Labview to learn the functions.  Go to NI's website and search for Labview tutorials.
    - tbob
    Inventor of the WORM Global
    Attachments:
    ConcatString.vi ‏28 KB

  • How do you make a VI save waveform data relative to the number of iterations that happen? (EX one save for every ten iterations​)

    And I was also wondering if you could alter the amount of time it takes for a loop to iterate, that way, if I wanted it to save every five hundred miliseconds, I could make it save every, say, ten iterations, and make the loop iterate every fifty ms.
     Im running LV 8.5.1
    Here is my code; 
    Attachments:
    PartsIII.vi ‏106 KB

    I know what the question mark is. I don't know what the "other boolean" you were referring to is.
    See the attached file.
    Double check the file.  I took the VI you posted in message #1, but it seems to be an older and incorrect version (problems with the reference wire being the datatype for the queue and a feedback node thrown in as well) that didn't match the image you have posted in message #1.
    Message Edited by Ravens Fan on 08-21-2009 03:31 PM
    Attachments:
    PartsIII[1].vi ‏88 KB

  • HT4847 How do you store apps in icloud

    How do you store apps in the Icloud??

    By either restoring your iCloud backup, which will restore all data, settings, apps and other purchased media contained in the backup, or by redownloading them from the app store as discussed here: http://support.apple.com/kb/ht2519 (which will restore the app, but not any app data).

  • How would you store a primitive type?

    Hello
    How would you store a primitive type in a Collection such as a List?
    Thanks
    Bobby

    <face grin=evil> myList.add(int.class); </face>

  • How do you store books

    How do you store books on iPads?

    Books from where, and I'm not sure what you mean by store (?).  Most ebooks have digital rights management on them which tie them to the store's own apps/ereaders, so ibooks from Apple can only be read in the iBooks app, and ebooks from Amazon can only be read in their Kindle apps and Kindle ereaders. You can download ibooks from Apple directly in the iBooks app via the Store button at the top left of the bookshelf in the app, and similarly other abook apps generally allow you to download purchases from their store directly in them. The iBooks app also supports DRM-free epub books (e.g. books from project Gutenberg etc) which you can either use 'open in' on Safari to copy them to iBooks, or you can download them on your computer, add to its iTunes (File > Add To Library) and then sync to the iBooks app via the iPad device's Books tab.
    You can copy ibooks/epubs/PDFs from the iBooks app to your computer's iTunes via File > Transfer Purchases for backup and future re-syncing.

  • How Do You Store Your Movie Masters?

    Hi all,
    I'm curious, how do you store your Movie Masters? Let's say you filmed an important Family event from a camcorder with a hard drive. You imported the footage into you mac and edited it in iMovie or Final Cut Pro or other app.
    Then what?
    Do you make a DVD?
    Do you save a DVD image file on the computer?
    Do you export a .mov or other format file?
    Do you delete the DV original files because they are so massive?
    Do you save/delete the iMovie or FCP master original footage?
    When do you delete the camcorder hard drive original (when you need the space)?
    What other approaches do you do?
    Which is the Master?
    How do you back up your movie?
    Thanks in advance for your opinions.

    Great question. I think the issue of backup is a important one, and one I always worry about since I have a lot of video footage that is irreplaceable.
    For back-up, it is helpful to define the risk you are trying to protect from.
    For example,
    1) risk of corruption in iMovie --> I might use Time Machine (but I do not because I have not had the issue)
    2) risk of hard drive failure --> I use SuperDuper! nightly
    3) Risk of theft or fire --> offsite backup
    Here is what I do...
    1) I back up my boot disk with SuperDuper automatically to alternate external partitions every other night so I always have two bootable systems. One is less than one day old, and one is less than two days old.
    2) I back up my original video files. For my Motion JPEG, VHS-->AIC, DV, and 8MM to DV, the EVENT is the copy I back up. For my AVCHD high def video, I back up the archive of the AVCHD, but I am not currently backing up the Event files, because I would need from 4 to 8 TB to back up these events depending on whether I made one copy or two.
    3) I use CrashPlan for my offsite backup. It costs less than $4 per month, and I seeded the initial backup to an external drive to minimize having to transfer video files over the Internet. I currently have 1.2TB of data backed up to CrashPlan, which includes my entire boot drive, and the files described in #2.
    4) All of the above is automated, so I don't have to think about it too much. If I have to manually do stuff, I tend to get behind.
    You have to consider the value of total multiple redundancy vs. the likelihood that 2 or three unlikely events would all happen at once. For example, CrashPlan could lose my data. My hard disk could fail. I could lose everything in a fire. But it is unlikely that they would all happen at once, except in nuclear war, in which case, who cares?
    I am considering adding Time Machine backup and some off-site backup of the Event files into the mix, but for now I am satisfied.

  • How do you install mountain lion on all your macs in the household using one 20 dollar license?

    how do you install mountain lion on all your macs in the houshold with the same license (you only pay 20 bucks for all your macs) is that right?

    As long as they're all logged into the Mac App store with the same Apple ID, you can re-download the installer to all the Macs.
    Or you can save a copy of the installer file before you run it and use that to update the other Macs. The ML installer file will appear in your Applications folder when it's done downloading. Copy it to another location (don't move it).
    If you don't copy it before you upgrade, it will disappear when ML is finished installing.

  • TS1424 hi all how do you reset your security questions. i can not remember the answers. how do you reset them? i cant buy anything because it keeps coming up

    hi all how do you reset your security questions. i can not remember the answers. how do you reset them? i cant buy anything because it keeps coming up

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • How do you return episodes of shows or other material to the cloud so that it is not filling up your Pad

    How do you return episodes of shows or other material to the cloud so that it is not filling up your Pad

    Hey Shyster77,
    If this media was purchased on iTunes, then iTunes in the Cloud gives you access to most of your past purchases. You can delete it and whenever you want access to it again re-download it:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Welcome to Apple Support Communities!
    Have a great day,
    Delgadoh

  • Hi, how are you? I have a question. I bought the ringtone "Dancing Queen" once but it charged me 7 times. How can I remove the 6 other purchases?

    Hi, how are you? I have a question. I bought the ringtone "Dancing Queen" once but it charged me 7 times. How can I remove the 6 other purchases?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • How do you take off reseiving messages on multiple devices using the same apple account

    How do you take off reseiving messages on multiple devices using the same apple account?

    Go to Settings>Messages>Send and Receive on all but one device and add a unique email address on each device and delete the commone Apple ID email device
    If there is also an iPhone with iOS 6 associated with the Apple ID, uncheck the phone number on all but the phone.

  • How do you apply a master page to multiple documents at the same time?

    How do you apply a master page to multiple documents at the same time?

    Hi friends,
    Thank you for trying to help me out.
    Let me explain it a bit to remove the ambiguity.
    I have 10 documents nested under a book. Each of these documents have 'n' number of pages. I want to apply my custom made master page "First" to the first page of all these 10 documents in one go. The remaining pages of the documents have to be in default "Right" master page format. How will I do it?
    I tried selecting all the documents and importing the formats from another document with the custom made "First" master page. The master page format is getting imported but the first page of all the documents still remain with the default "Right" master page format.
    I think now my question is more clear...

  • How do you add a custom label to dates in contacts.....

    How do you add a custom label to dates in contacts- I have multiple birthdays in contact group and want to change label through customise to add additional birthday- unless another way to add second birthday to contacts and identify each one?????? or way to link contacts with same address phone number etc but id birthdays?????

    You have some contacts with more than one birthday?
    To add a custom label for a date, select Edit for an existing contact. Select Add Field. Select Date. Scroll up with the Info window above the date selection and select Other for the new date selection. Select Add Custom Label and then select this label for the new date field for the contact.
    As far as linking dates with multiple contacts, the answer is no to that.

  • How do you get your music on your phone without syncing the whole iTunes library on your phone?

    How do you get your music on your phone without syncing the whole iTunes library on your phone?

    Are you syncing to a different computer?  Iphone will sycn with only one at a time.  Syncing to another will erase the current content.
    Otherwise, just select what you want to be on the iphone under the music tab and sync.  What do you care if it erases?  You will be syncing what you want to the iphone.

Maybe you are looking for