I need to acquire impulsive signal(s) and then write them to a file - but I need a good approach

Okay, I am pretty new to Lab View, and would appreciate suggestions of how to approach a problem.
My
only LabView experience has been writing a simple .vi to acquire
voltage signals in a loop at a certain sample rate, get 5 of them each
time the loop iterated (it did so every second), average the 5 samples,
and dump them into a file at every loop iteration.
That
was for continuous data acquisition while viewing/monitoring the data
at the same time, and was probably not the most efficient way (or even a
good way) to do it.
Now,
I am doing something different.  I want to record voltage signals but
only after a trigger event has occured, and only until a certain time
window after the trigger event. 
Should I use continuous data sampling? 
Or should I sample "N" samples?
Should I use "producer / consumer" structure?
Should I continuously log to a TDMS file (I just started reading about that.... I used lvm files before....)?
I
am very confused.  I have enough programming knowledge to be dangerous,
but am very new to Lab View.  Any quick pointers to get me started? 
This is sort of time-critical....
Thanks a lot
-Jay

Jay,
There are quite a few examples in the example finder of how to implement various types of triggers IIRC.
How long is your time window and how fast do you want to sample?  That will probably determine whether you want to use N samples (for shorter time windows where all your samples will fit in the hardware buffer) or continuous (for when you will want to make several reads before you have enough data).
Producer/consumer is a very versatile design pattern.  If you have a long running acquisition that you'd like to be able to cancel or update the UI mid run then you might want to use it.  If, on the other hand you are doing a quick (in UI terms) acquistion then there may not be any need.  Templates and design patterns also become more important the longer you plan to keep the code around -- the more you plan to maintain and add onto the VI the more thought should go into the design.
File format is often a personal preference.  TDMS is a richer file format (faster, smaller, IMO normally better) than LVM (essentially just a text file).  TDMS files can be opened in Excel with a plugin or natively in any NI tools (LabVIEW, DIAdem etc.)  Text files such as LVM can be opened with just about anything.  One thing that may force your decision is if you are acquiring large amounts of data quickly (too fast to buffer in RAM) then you'd definitely want to use TDMS as it is much faster and gives your hard drive a chance to keep up with the inflow of data.
Good luck, let us know how you get on.
~Simon

Similar Messages

  • I was saving the pictures on my phone onto my computer and then deleting them after they "saved", but after they were all deleted my computer decided not to save them. I went onto the Icloud website to look at them but cant. Help?

    I was saving the pictures on my phone onto my computer and then deleting them after they "saved", but after they were all deleted my computer decided not to save them. I went onto the Icloud website to look at them but cant. Help?

    There is nothing to help with.  There is no way to view the pictures in PhotoStream from the iCloud website.

  • Can I export my itunes movies onto an external hard-drive and then remove them from my computer, but still watch them when I plug in my external hard-drive?

    I am running out of space on my macbook. What is taking up the most room is my movies. Can I put them on an external hard-drive and then watch them later after I remove them from my library?

    tothatc wrote:
    Hello,
    I recently purchased a new laptop because my old computer wwent on the fritz.  Luckily I backed up my library on my external hard drive. My question is can a) connect my itouch and ihone to my nex computer and b) run my library strictly from my hard drive and not import everything to my new computer?
    thanks for the hep!!
    On Windows, hold Shift (not alt), launch iTunes and select Choose library... and select the iTunes folder you copied to the external drive.

  • We need to delete some student accounts and then have them rejoin. How do we do this?

    After signing up, we realized that our students had to get a confirmation email. And we don't allow them to receive external email. So after allowing it, we need to delete their accounts and start over. How do we delete the account?

    The answer is not simple. First, are these images in the Camera Roll or the Photos app? Next, do you have Photo Stream enabled? Also, do you back up your phone to your computer or to iCloud, or to both?
    If you have Photo Stream enabled then the images have already been distributed to anyone who is subscribed. Nothing that I can think of that you can do about that. The rest of this post assumes that Photo Stream was never turned on.
    If the images are in your Camera Roll you can delete them from the Camera app. The won't go anywhere, however, they will still be in your backups.
    If you back up to your computer using iTunes you can go to iTunes Preferences, Devices tab, and delete your backups. After deleting all of them, and also after you have deleted the images from the Camera Roll, do a new backup.
    After deleting the backups do a Secure Delete of deleted files on your computer. On a Mac you can do this with Disk Utility; have it erase deleted files. On Windows you need to get a 3rd party "shredder" app.
    If you back up to iCloud on the phone go to Settings/iCloud - Storage & backup - Manage Storage. Tap on each backup and delete it.
    If you have photos in the Photos app that are NOT in the Camera Roll album you need to connect your phone to iTunes, click on the Photos tab, uncheck all of them that you don't want (or uncheck Sync Photos if you want all of them gone), then sync.
    Then repeat all of the steps above.

  • Merging PDFs and then saving them as one file in Leopard

    Would someone please tell me how I can merge PDF files into one PDF file. I have been able to drag and drop them together in Preview. I would love to be able to save the merged files into one file. Any ideas. I have read a lot online about this possibility in Snow Leopard, but I can't seem to save the dang file.
    Help.

    Open the first PDF. Open the tray so you can see the file on the left. Drag the other PDFs onto the first file in the tray. You can't just drag into the tray window anymore, you have to drag onto the file itself to merge. Save the file with new name.
    Macmost has a good podcast on this subject that came out about a week ago. Shows other PDF tricks with Preview as well.

  • Is it possible to save an iPhone back up and access the files later if needed?  I have a string of text sms and iMessages that I would like to save and then delete them from my phone.  Is this possible?

    I have a string of text sms and iMessages that I would like to save and then delete them from my phone, but gain access to them later if I need them.  I prefer to have the string with the date/time stamp vs copying and pasting into a doc or text file.  Is this possible?

    Not unless you buy an app that accesses data from an iTunes backup.  Check in the app store.

  • I need to create a fillable form and then generate a reports.

    Hello everybody. I need to create a fillable form and then generate a report using numbers. You know, for example if you have customers, I need to be able to write the usual , name, last name, address, and some other details and then using a standard letter I would like the form to be able to populate these fields automatically in a standard pre formatted letter by our company and then be able to print it.
    Any help to point me in the right direction I would appretiate very much.
    I have iwork 9 installed in my macbook pro

    This is acalled a mail merge and is solved using a combination of Numbers (or address book) and Pages.  To get detailed help how to performa a mail merge start in Pages, then in the help menu type Mail Merge:
    Also download the help files for Numbers and Pages here:
    http://support.apple.com/manuals/#
    Page 247 in the Pages User's Guide has details how to perform a a mail merge.
    Post back with specific questions if you need to.
    Regards,
    Wayne

  • IPhone 5 doesn't work with Mac OS 10.5.8 - do I need to ugrade to 10.6 and then upgrade to Mountain Lion or can I just upgrade to Mtn Lion right away?

    iPhone 5 doesn't work with Mac OS 10.5.8 - do I need to ugrade to 10.6 and then upgrade to Mountain Lion or can I just upgrade to Mtn Lion right away?

    At least to 10.6.8. You must do this to upgrade to Mountain Lion.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.

  • I have installed adobe reader onto my Mac but when I open up an adobe pdf it tells me that i need to accept the end user license agreement, quite, and then open up a new browser but i have never seen the end user license agreement. What should I do in ord

    I have installed adobe reader onto my Mac but when I open up an adobe pdf it tells me that i need to accept the end user license agreement, quite, and then open up a new browser but i have never seen the end user license agreement. What should I do in order to accept the end user license agreement even though it never pops up when i install adobe reader?

    Make sure Readr is closed. Go to the Applications form, look for the Adobe Reader icon, double click on it, and follow the lead. Restart Reader when finished.

  • How do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    how do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    Good luck.  I tried to do this to cue sound effects for a theater, and never found anything.  iTunes will definitely *not* do this, nor was I able to find any player that would play one song at a time in a single playlist. 
    In my case, I ended up using AutoHotkey to tie individual tracks to the keys on an external keypad. This was an excellent solution for my problem, but I don't think AHK runs on Macs.
    One workaround is to make a folder, and fill it with *shortcuts* to the songs you want (ie, the actual files).  You can change the names to start with numbers to get them in the right order.  Then if you double-click on one it will play just that song.  You'll still have to double-click on each song.
    Might be a good time to learn AppleScript   It would  also be pretty easy to write a Java app to do this.

  • Hi i have a macbook its osx 10.4.11 core duel and i think its tiger already installed but it needs updating what do i do  thanks

    hi i have a macbook its osx 10.4.11 core duel and i think its tiger already installed but it needs updating what do i do  thanks

    Hi Paul
    The current version of OS X is Snow Leopard (OS X 10.6) and you should be able to order an installation disk for your MacBook from the on line Apple Store. 
    Soon, a newer version of OS X (called Lion) is being released, but I don't think that it will run on a Core Duo because that particular processor is 32 bit only.
    Bob

  • HI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean lan

    Daniel SterchiHI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean language interface to english language interface at indesigncc download. so i wonder How i can do that?...i am very seriuos for now....i want indesigncc version for Eng.Language interface. but now i cant do that .i dont konw how i can presented kor. interfacing transite to eng. interface..
    forumnotifierHI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean language interface to english language interface at indesigncc download. so i wonder How i can do that?...i am very seriuos for now....i want indesigncc version for Eng.Language interface. but now i cant do that .i dont konw how i can presented kor. interfacing transite to eng. interface..

    First of all, uninstall it with the uninstaller.
    Then:
    Install the ENGLISH version.
    Change the language in the CC app to Korean.
    Install the Korean version. (DON't uninstall the English version)
    Change back the langauge in the CC app to English.
    When your OS is running in English, InDesign will run in English with Korean functionality added, if your OS is running in Korean it will take the Korean User Interface, so let your OS run in English.
    Every installer language will add needed plugins for the work with that language. E.g. If I install Hebrew, I get RTL functionality in German version, only if I would change the OS language it would change the language of InDesign, InDesign takes always as UI language the language of the OS if available, if not (in your case you have uninstalled English before), it takes any version which is available in the order of languages specified in the OS.
    If you need to run your program in a different language than the OS but you have installed it in the language of the OS it becomes more difficult. You would have to use some system tools which are able to force a program to open with a different language. Most of those tools are freeware.

  • I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    Adobe has made this process much simpler in recent years.
    No need to re-install any version earlier than the current version (CS6). All installers (upgrade or full) contain the full program code. The difference between full and upgrade is in the serial number.
    All you need do is download (link below) and install CS6, enter the CS6 upgrade serial number then enter the CS5 serial number (even if that too is an upgrade).
    Download CS6 products

  • Hello .. i own icloud account but i have a problem, because i need to change my security questions, and i want to reset from email, But rescue email is diffrent from my alternat email, because i can't use my credit

    hello .. i own i cloud account but i have a problem, because i need to change my security questions, and i want to reset from email, But rescue email is different from my alternate email, because it's my 1st usage for my credit and i can't accomplish it without using the secret question ..please help

    Hello, yehyakov.  
    Thank you for visiting Apple Support Communities.  
    I understand that you want to reset your security questions for your iCloud account.  Here is an article that will provide multiple options to help you with this.  
    If you forgot the answers to your Apple ID security questions
    http://support.apple.com/en-us/HT201485
    Cheers, 
    Jason H.  

  • HT201210 please,I need your help ! I was updating my iphone ios to ios4.2 and then problems begins when it shows that it needs to restore the factory software to I was trying to restore ,but that didn't happen it begins but then it shows unknown error 101

    please,I need your help ! I was updating my iphone ios to ios4.2 and then problems begins when it shows that it needs to restore the factory software to I was trying to restore ,but that didn't happen it begins restoring but then it shows unknown error 1015

    Stop being impatient.
    From the article that the question was posted from:
    Errors related to downgrading iOS
    The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go to Settings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed.   Installing an older version of iOS over a newer version is not supported.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    You cannot downgrade.
    If you have a 3GS, you can only install iOS 6.1.3 which is the current version of iOS for the device.

Maybe you are looking for