Collecting waveforms from a continuous aquisition using an external pulse to section them off

I have an analog input and a digital, (or analog square wave), pulse counter. I need to continously aquire data from the input channel, and I need to divide the input up ,(collect waveforms), and then file the waveforms away in arrays using the rising edge of the counter pulse to mark the divisions. Is it possible to go about this without hooking up additional digital triggers or encoders which I don't have, and if so what's the best way to go? Thanks in advance for ANY help at all.
P.S. I'm using a PCI-MIO-16E-1 board

Hello;
By my understanding, you need to be able to recognize different waveforms that will be divided up by counter pulses.
One thing you can do is, since you know the sample rate of your Analog Input operation, you can use a counter to measure how much time was elapsed in between two counter pulses, than do some calculations on your VI to determine the number of points per waveform, after retrieving all datapoints from the file.
So, the main idea is to stream to disk all Analog Input points, and also save the counter information to a different file, then, retrieve that information and post process both files to figure out the number of points per waveform.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • Play movies from commercial DVD disks using an external DVD player?

    Is it possible to play movies from commercial DVD disks using an external DVD player on Mac OS X 10.5.6? Thanks.

    You might not need to install Tiger. If you pop in the installer DVD there might be the DVD Player under Additional Software/Applications. Then you can install that and watch DVDs.

  • How do i convert my music and pics over from windows to mac using a external hard drive.

    New mac user.  How do i convert my files from windows to mac using external hard drive.  I am using a Seagate freeagent go flex.

    leave as is and add NTFS driver to write to the drive / migrate maybe / reading NTFS drives isn't always perfect, some times external drive case has trouble mounting or staying mounted and suffers slow copy speed after awhile or with large files which is why I suggest Paragon NTFS for Mac OS X.

  • Saved photos from e-mail to desktop. Now can't get them off.

    I saved photos from an e-mail to my desktop as well as I-photos. Now I can't get them off the desktop. How can i do that?

    Hello Sungal15,
    Thanks for using Apple Support Communities.
    To remove items from your computer, all you need to do is simply click and drag them to the Trash on your dock.  
    Delete an item from your Mac
    Drag the item to the Trash. Or select the item, then press Command (⌘)–Delete.
    Click the Trash, then click Empty. You can also choose Finder > Empty Trash.
    When you see a warning message, click OK.
    OS X Yosemite: Delete files and folders
    Take care,
    Alex H.

  • Best way to collect photos from family members for use in Photoshop Elements Organizer 13?

    I am a long time Photoshop Elements & Premiere Elements user. My biggest problem in producing my annual Christmas video has been collecting photos and videos from remote family members. Most are exclusively taking photos and videos on their smartphones (but I'll take wheat I can get).
    What toolset or service will offer my family members the easiest way for them to securely share those assets with me so that I can ingest them into Element Organizer 13?
    I've been told that Adobe now has apps for smartphones to aid in this process, but I have yet to track that down.
    I've recommended my family members use dropbox or other comparable services, but it seems to perplex them. More often than not, I wind up receiving them as attachment via email or not at all. I'd LOVE to improve their ease of use and am will to pay to deliver an easy and pleasant experience for them.
    Thoughts?
    Thanks in advance.

    What about Google Drive? And just share the folder with the family members.
    Erick

  • How do I transfer files from pc to mac using an external drive?

    I get the that I copy files from the PC to the external drive and then copy to mac. What I do not know is what format does the external drive need to be? FAT32 is somewhat limiting.

    I don't do Windows, but Macs can read & write ExFAT, too.
    If the PC has an app that will format & write any variant of Mac OS Extended, those are native to Macs.
    You can also transfer via network, if that's convenient.  See the Use a Network Connection section under Manually Migrating in Switch Basics: Migrate your Windows files or system to your Mac.

  • I cannot continue to use my external hard disk which I used with windows. OS 10.8 can read it but declares the disk as "read only". Is there a way to change this?

    Hallo everyone,
    I just tried my external disk on my Macbook air and I cannot save data to it any longer. This external disk was used with windows. Now i want to use it with macbookAir as I have changed my computer. It seems that OSX.10.8.5 can read the data on this external drive but when I try to save new data to it (pdf documents from the web for example) it refuses to save the data ans the message I get is that my drive is "read only". Please is there a way to change this or do I have to format the re-format the external drive?
    Thanks for your help

    You will have to reformat the drive for use with a Mac.
    Mac only: Format as MacOS Extended (Journaled)
    Mac and Windows: Format to MSDOS

  • How do I turn on the fans on my iMac to keep it from overheating? I used to be able to turn them on when I plugged in the computer and turned the computer on simultaneously but that stopped working.

    how do I turn on the fans on my iMac to keep it from overheating?

    You could use smcFanControl.  That will control the fan speed but be aware the fan is always running.  If you have a fan revving up due to overheating it could be because a temperature sensor is failing.  Try running Apple Hardware Test (on your second installer DVD -- boot with the D key) to see if can detect any sensor problems.

  • Multiple recording of waveforms using an external trigger signal

    Dear all,
    Maybe somebody could help me with the following:
    System:
    Windows 2000,Pentium III,~800-900MHz,32-bit master PCI bus,256 MB RAM
    PCI-NI 5122 Digitizer
    PCI-GPIB card
    PCI-DAQ card
    Labview 7.1
    NI Scope 2.7
    Problem:
    I want to acquire multiple waveforms (e.g. 100) using an external TTL trigger signal of ~40Hz. I have to acquire 1 waveform per trigger signal i.e. 100 subsequent trigger signals will acquire 100 subsequent waveforms.
    After, or during the waveform acquisition (?), I have to transfer the waveforms as 100 1D-arrays from the onboard memory of the digitizer through my fitting routine (one-by-one!). The fitting routine accepts one waveform (1D-array) at the time, fits the waveform and calculates 1 fit-value per waveform. So, when I pass the acquired 100 waveforms subsequently through the fitting routine, I need to get out a 1D-array with 100 fit-values. This 1D-array with the 100 fit values will be further processed and a final value will be saved.
    This procedure will repeat itself at different points in a sequence structure. The sequence structure will be located in a loop and running for several hours!
    Please see attached program flow diagram.
    Qustions:
    1. When I want to acquire 100 waveforms using 100 subsequent trigger pulses, the attached VI (Multiple_record VI) gives me the following error message:
    ERROR
    "Possible reason(s):
    Driver Status: (Hex 0xBFFA4009)
    A previous acquisition is still in progress. If you are attempting to change an attribute, note you can only change fetch attributes while an acquisition is still in progress.
    Status Code: -1074118647
    What am I doing wrong? Is there a better and more efficient way to do this?
    2. How can I transfer the 100 waveforms from the digitizer, one-by-one as 1D-arrays, through my fitting routine? A waveform will have ~2000-3000 data pts. (DBL type). Remember: I DO NOT HAVE TO SAVE THE WAVEFORMS!
    3. Which way is faster, and more efficient (memory) for my PC system to transfer the waveforms from the onboard memory of the digitizer to the fitting routine?:
    a) Start transfer of already acquired waveforms (1D-arrays), one-by-one through the fitting routine, during the waveform acquisition process is still in progress?
    b) First, acquire the 100 waveforms (1D-arrays), store them in the onboard memory (digitizer) and then transfer them one-by-one through the fitting routine?
    4. How can I make sure that after the waveforms were transferred through the fitting routine, the onboard memory of the digitizer is EMPTY (clear waveforms which have already been fetched) and ready to repeat the waveform acquisition at a different point of the sequence structure?
    5. I do not want to display each acquired waveform because I think it will slow down the acquisition process. Instead, I want to display the last of the acquired 100 waveforms, so I can check my fit and maybe adjust the fit-parameters. How can I do that?
    I think the important thing is to perform this process in the fastest way possible with the best use of the PC resources (memory etc.) because this process will run for hours. Any suggestions?
    It would be very nice if somebody could give me some help with this.
    Kind regards,
    beam
    Attachments:
    program flow diagram.vi ‏11 KB

    The method you use to analyze your data is fine. The only thing I would watch out for is memory problems. If you keep with the numbers you gave earlier, 100 waveforms at 3000 pts/wfm, you will be transferring 2.4MBytes of data per set. This is way over the 1MByte buffer NI-SCOPE uses for data transfer. It will work, but it might be slow. If you have problems, switch to niScope Fetch WDT.vi for your acquisition and move it inside the loop. Before you call the fetch VI, set the record it will fetch by using the property node and setting Fetch->Fetch Record Number using your loop index.
    A couple of other performance tips I think you probably know. The graph inside the loop will slow you down a lot. In addition, the graph of all the data outside the loop will also take a fair amount of time (plotting 2.4MBytes of data). If you want to see just the last waveform, pop-up on the terminal going out of the loop and disable indexing so only the last waveform goes through, not all of them.
    Your analysis method should work fine. You may consider doing an I16 fetch instead of the WDT fetch you are currently using. This will reduce your memory usage by a factor of four, provided you don't immediately convert it to a double array. If your analysis is actually finding a max/min, this is faster on an integer array than a double. You can scale the integers using the numbers in the information cluster. It is much faster to scale one integer at the end than a whole array. That said, the I16 fetch is not particularly faster than the WDT fetch, just less memory. This choice will depend on your analysis.
    The min record length is the minimum number of points the device will acquire. The actual record length is different if the acquisition rate you ask for is not one of the acquisition rates the device is capable of. The acquisition rate is then coerced to the next highest rate and the record length increased so your acquisition time remains constant. This behavior is part of the IVI specification for digitizers. Using your VI as an example, you ask for 300kS/s acquisition rate and 800 data points. What you actually get is 300,300.3003 S/s and 801 data points. The sample rate is determined by an integer divisor from 100MHz, in this case 100,000,000/333. So, if you really want a certain number of data points, you need to set the sample rate to a physically realizeable one. Alternately, you can just fetch the number you want instead of all the points, realizing your sample window will be a bit shorter than you asked for.
    You are correct. To see anything in the records done, you need to delay. However, in this code, the records done output is really not doing anything. The fetch won't fetch until everything is done, so you know all is finished when your data shows up. I would just delete it. If you do want to put a delay in, wrap a sequence structure around the records done query. Add a frame before the current frame and drop a Wait (ms)delay into it. You can find this primitive in the timing and dialog palette. This is an example of when the sequence is actually useful. The delay VI has no good way of enforcing data flow, so the sequence does it.
    The way you have implemented it, you don't need to poll acquisition status. To get acquisition status, use niScope Acquisition Status.vi. You would put this in a WHILE loop before your acquire and exit the WHILE loop when the acquisition was done (or an error occurred) to proceed to the acquisition. Make sure you also put an appropriate delay in the WHILE loop or it will eat your entire processor capacity. The delay should be based on how long you expect the acquisition to take.
    You should definitely put your fetch code in a subVI if you are going to call it more than once. LabVIEW makes it easy. Select the code you need to make into a subVI, then select Edit->Create SubVI. Don't forget to put an icon and documentation in the subVI. You will thank yourself later.
    Let me know if you have any more questions...
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Using an external HD and Local HD

    I have a bunch of pictures that are on my computer from icloud and people sending through email etc.  I also have a whole library of pictures on my external HD as well. 
    What is the best way to organize these?  I want to continue to use my external HD and not copy everything to my Macbook Pro.  I also want to continue to have whatever pictures I take with my phone and Ipad automatically sync to my computer.
    Thanks

    Thanks for the reply.  Just a couple more quick questions.
    I am going to take your suggestion and use both the EHD and my local storage.  Does this mean I'll have to create a separate library?
    The EHD I have was originally used with my Windows PC and is formatted to NTFS.  I'm going to use the program Paragon to allow me to be able to write to the disk.  How do I get the library to see the pictures?  When i plugged in the EHD it obviosuly doesn't just show up in Iphoto.  Do I have to import the pictures?  If I do that, am I not just copying them all to my Macbook Pro?
    Ultimately what I would like to do is be able to open Iphoto and see all my pictures in one library using both local storage and EHD.  Is that possible.
    Last question.  If the EHD is not plugged in and I open Iphoto, will it still show me thumbnails of the pictures? Can I see a larger size but just not edit the file?
    Thanks

  • Can I use USB external DVD Drive to boot up my G4?

    My G4 (PCI Graphics) internal drive DVD-ROM is not working, its dead. I want to replace it with an External USB or Firewire Lacie DVD Drive.
    According to Apple document http://docs.info.apple.com/article.html?artnum=58606, my computer cant boot up from Firewire devices. I think that means, I wont be able reinstall my Mac OS or install future systems or start my DiskWarrior from the CD. Using a external Firewire DVD Drive. Let me know if I am wrong?
    Can I use a USB external DVD Drive to boot up?
    G4 (PCI Graphics) 400 mhz, 488Mb Memory, 50GB, 9.2.2 & 10.3.9. USB 1.0 & Firewire 400 Ports
    G4 (PCI Graphics)   Mac OS X (10.3.9)  

    Hi, Harold -
    Bad news - your G4 (PCI) model can not boot to either a firewire drive nor to a USB drive.
    Although the G4 (PCI) models do have native firewire, they (and their cousins the B&W G3) are specifically exempted from firewire booting; there is no workaround for this -
    Article #58606 - FireWire Booting
    Relatedly, a G4 (PCI) machine can be the Host machine in a Firewire Target Disk Mode setup, but can not be the Target machine.
    Article #58583 - Firewire Target Disk Mode
    USB booting was introduced first on the G4 (AGP) model, and is not available on earlier Mac models -
    Article #58430 - USB Info and Benefits of Dual-Channel USB
    The only external drive your G4 (PCI) can be booted to is a SCSI drive - but that requires that the machine have an appropriate SCSI PCI card installed.
    Replacing the internal optical drive might be the best choice, particularly for ease of maintenance and OS installing in the future.

  • Strange behavior when using Labview to collect data from Tektronix tds8200 oscillosco​pe

    I have hit a wall in trying to figure this one out. The problem I am having is that my program does not start the oscilloscope when it should.
    I am using a Tektronix TDS8200 oscilloscope. My goal is to collect waveform data from the oscilloscope using Labview. My program first initializes and configures the oscilloscope; this part of the program runs fine.
    The second part of the program begins the data aquisition using the  'tktds8k Start or Stop Aquisitions.vi' function, which is equivalent to pressing the Run button on the scope. The 'tktds8k Get Waveform.vi' function is then used and should ideally return the data, which I have connected to a waveform graph for visualization.
    When I run my program, the first part executes without issue, but as soon as the program gets to the Get Waveform function, the Run button on the scope, which is green when running, turns off; the program then times out, and no data is collected.
    Here's where it gets weird. I went through some debugging to try and figure this out, and I put breakpoints on both the Start and Get Waveform functions so that I could step through the later part of the program. The program continues through the Start function, and the Run button on the scope is green. The breakpoint for the Get Waveform function is reached, and when I press continue, the Run button turns off and then turns back on almost immediately; the data is collected, the waveform graph is displayed, and the program exits without an error.
    I thought timing might be the issue, so I made the program wait as long as 5 seconds between the Start and Get Waveform functions, and that did not work. I also tried moving the Start function to before the configuration functions, and removing the Start function altogether; neither method worked.
    Are there any thoughts on why the program works when I have the breakpoints enabled and doesn't when the breakpoints are disabled? I am sure that there is an easy fix, but I haven't been able to find a solution.
    I have attached a pdf containg information on the Oscilloscope functions (tktds8k.pdf), and I have also attached my program.
    Solved!
    Go to Solution.
    Attachments:
    tktds8k.pdf ‏1424 KB
    set_up_osc.vi ‏32 KB

    Thank you for the swift replies.
    After Bill asked about the ID Query, I decided to try a few things that I had already gone over just to double check. I was suspspicious that timing was the source of the error. Using a timed while loop, I set the wait time to 10 seconds and got results. As it turns out, 5 seconds is not long enough, but 8 seconds is a sufficient wait time for the program to work. With the problem solved, I am still mystified as to why waiting 8 seconds is required.
    I think that the oscilloscope must be given sufficient time to display the signal on-screen before the Start Aquistion or Get Waveform functions are used. With this logic in mind, the breakpoints were acting as a sort of wait, allowing the signal to be displayed before continuing through the program.
    In response to Jeff, I am indeed using an external direct trigger. The hardware is sound, but apparently, my coding could use some work.
    I have attached the modified code. I am certain that there is a more elegant solution to the timing than simply slapping a timed while loop on the code. Any suggestions?

  • I recently bought an iphone 4s from people who are not in the know and restore my iphone .. Now do not be in use for not having ID and password ... Owner apple owner just gave me a serial number how do I want to continue to use this ... Their telephone he

    I recently bought an iphone 4s from people who are not in the know
    and restore my iphone .. Now do not be in use for not having ID and password ... Owner apple owner just gave me a serial number how do I want to continue to use this ... Their telephone help me: (

    I am having same problem . i can not use the phone. my Carrier ROGERS checked the phone its not stolen or lost phone but after restoring always ask for apple ID of previous owner and seller is not responding to any mails or phone if some one can help me out than it will be great.
    thank you

  • I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    Hi mshields1162,
    Great question, and welcome to Apple Support Communities.
    First, you may want to choose to have the sidebar displayed for familiarity:
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    Afterwards, your device should be displayed if connected:
    We'll want to click on it, and choose the Music tab at the top. Let's make sure "Sync Music" is checked:
    Afterwards, you'll have the option to sync either the entire music library (for your first iPod), or "Selected playlists, artists, albums, and genres" (for the secondary device). Upon selecting this option, four larger option boxes will appear allowing you to pick and choose what content will be synced. For audiobooks, you may need to do the above in the "Books" section. For a visual instruction on how to do this, see the following:
    iTunes 10: Sync to your iPod
    http://support.apple.com/kb/VI72
    Thanks,
    Matt M.

  • Use Java to collect data from HTML

    Hi Guys
    I am doing a online stock trading project, the main part is to collect raw data from http://finance.yahoo.com User can retrieve the stock detail by inputting the right stock symbol, such as "AOL". I dont have too much problem in this part because yahoo provde a spreedsheet format to display the result. If you type the URL below, it can bring you a set of stock data separating by comma. So, I can use StringTokenizer(date, ",") to collect each data from yahoo into my system.
    ========================================================================
    http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=AOL&
    "AOL",15.57,"8/12/2003","4:01pm",+0.04,15.47,15.63,15.40,12097200
    ========================================================================
    However beside this function, I also need to search Stock Symbol, because user may only know the company name. Although Yahoo finance also provide this function, with no spreedsheet format provided. So, if I type the URL below, it will only give me a set of result BUT in HTML format.
    ========================================================================
    http://finance.yahoo.com/l?s=AOL&t=S&m=
    ========================================================================
    So, can anyone tell me what is the best way to collect data from a HTML page? Or anyone know any good stock quoting sites which also provide spreedsheet format?
    Thank you very much
    Kel

    I am doing a online stock trading project, the
    the main part is to collect raw data from
    http://finance.yahoo.com
    Sounds fun.
    So, can anyone tell me what is the best way to
    to collect data from a HTML page? Or anyone know any
    good stock quoting sites which also provide
    spreedsheet format?I really don't know any other stock quote sites. But if you want to implement a search function for stock names, I would do it like this
    1) Code the HTTP SUBMIT/POST to lookup the possible stock names
    2) Use XSL to filter out the HTML path to the table with results, the layout is consistent, so there are no strange exceptions. You can check the DOM structure by using Mozilla's DOM inspector. Just write down the path to the TABLE element and select it, and transform it to CSV for example.
    3) Reparse the CSV to fill some boxes
    To possibly save some server load use a small fixed size in memory cache to store N requests based on some strategy.
    The other part is actual a separate part of what you want to code and should be a separate class in which you can feed the stock name.
    If the user types in a bad stock name, you can retrieve a list of possible names using the input as the company name.
    Greets.
    Maybe there is a SOAP service out there somewhere.

Maybe you are looking for

  • How to make a RTF-Template for the Bill Presentment Architecture (BPA)

    Hallo, I search a way to make an external RTF-template for the Oracle Receivables Balance Forward - Detail report in the Bill Presentment Architecture (BPA). I've never done that. I don't know how to get a XML-file of this request to use for the crea

  • Have a new Dell Latitude with Adobe X Standard pre-loaded.  Purchased upgrade to Adobe XI Pro today

    Have new Dell Latitude laptop with Adobe X Standard pre-loaded.  Purchased upgrade to Adobe XI Pro today and have Serial #.  Installed the upgrade successfully, but it is asking for the Serial # of the previous version...  I don't have that Serial# a

  • SQL2005 collation setting

    Hi, I reinstall SQL 2005 and restore company database. I login SAP B1 and do drag and relate, hit error message: No matching records found (ODBC -2028)  [Message 131-183] I browse thru the forum and get know this might due to SQL collation setting is

  • Capture all SQL for a session

    I'd like to be able to capture all the SQL run for a session in SQL Developer.  I am aware of the SQL History, however that does not include updates made "directly" to tables via the Data view.  I am really more interested in inserts, updates and del

  • Off-topic but I don't know where to put this...

    I have what should be an easy activity but I'm spending more time than it's worth.  Below is a clipping from a photo of a stained glass window.  The unseen figure above the text is Aristotle and presumably the clipping is a quote of his words in anci