How can I split a waveform into chunks at each sawtooth?

I have spent a lot of time trying to tackle this problem and hope someone can offer a useful insight!  I have attached the VI described here.
I am using Labview connected to a NI USB-6212 DAQ to create a voltage ramp, which drives a laser through its scan.  The laser is pointed at a detector, and I simultaneously read in a signal from that detector using the same DAQ. Because the detector is illuminated by the laser, it shows the scan ramp.  I would like to repeat this voltage scan and read-in indefinately.  Much of this system is working.  I have used the "RampPattern.vi" to create a sawtooth wave, which is output successfully to the DAQ.  As expected, the input from the detector shows the same sawtooth pattern.  However, I am having a lot of trouble managing and displaying the scanned sawtooth from the detector, which is currently read in as a waveform.
The challenge I can't seem to get around is manipulating or collecting the sawtooth in such a way that I can do two things:
1)  Display the incoming sawtooth a 'tooth' at a time.  Each sawtooth represents one laser scan, and I would like to see the incoming scan ramp as a single slope, not a series of sawtooths.  Ideally,as each scan came in, it would replace the prior scan (as in the Labview 'graph'), so that the plot would show a motionless scan that would flicker up the input of the last scan.
2)  Split the incoming sawtooth at each ramp into an ever-updating array that could be acted upon with the math functions, saved to a file, etc.
I have the feeling that this wouldn't even be a speedbump for an experienced user, but I have been hung up on it.  Could I collect the incoming analog signal from the detector in chunks that are the length of each ramp?  Could I trigger an event at each ramp that would split off the waveform into an array?
I am open to any suggestions!  Thank you for the input and help,
Sam
Solved!
Go to Solution.
Attachments:
scancode_topost.vi ‏129 KB

Problem solved!
The solution was to wire the "number of samples per channel" setting in the DAQMx Read VI.  I set the 'number of samples per channel' to the number of points in each sawtooth scan (that is the same value as 'number of samples in waveform' used to generate the sawtooth in BasicFunctionGenerator.vi).
The DAQMx Read Analog VI now reads one sawtooth at a time.  The Waveform Graph displays each sawtooth, one at a time, as captured.  The output waveform also has the proper dimensions (the length of the scan) and I can perform math operations on each single scan.
Works great! I have posted the operational code.
Attachments:
fullsimulation_20101208_newramp.vi ‏131 KB

Similar Messages

  • How can i split a library into two.. i no longer want to sync all of my wifes songs and apps.. i have a separate account, but want to take my music and apps from hers so i now have my own and she has her own.. so that syncing is easier

    how can i split a library.. my wife and i used to share it, but now we have our own id's.. i want my music and apps off of hers so that i can sync my phone and only my music and apps will "come over"

    how do i share then? can she upload music if we share it somehow?
    If so how??
    i am also having the same problems now with IPhoto, she has all of her/our pics in my IPhoto library.
    I have told her that now i have bought her the Ipad she would have to log into her user, the only thing is there is no music in her itunes account nor photos in her I Photo library, i have spent all day trying to find a way to "share" but no luck,
    Please help i`m going mad!
    Surely we could just share these...?
    I need step by step instructions please someone send me a link on "how to share pics and music!"

  • How can I split a class into 2 files?

    I converted a C++ program to Java recently and it works fine, but I ran into a problem.
    One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
    I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.

    JavaIsBetterThanCPP wrote:
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
    But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
    There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler.

  • How can i split my catalog into two

    I am using PSE 11 would like to take 31,000 files from the main catalog and put them in a separate catalog.  The files are all in a directory tree called Digital Scrapbooking which has 1,728 folders and 31,000 files. Is there a simple way of doing this?  Alternatively would putting these files into an album achieve a similar effect?
    Another problem I have is I would prefer the organiser to open with the directory tree showing as the default rather than the list of folders it shows at the moment.  Is that possible?
    Thanks in advance for any help or suggestions.

    Thanks for the input folks.  I do a lot (and I mean A LOT) of digital scrapbooking.  The files I want to put into another catalogue are all related to this.  They are digital papers, elements, backgrounds, textures, masks etc saved as layered .psd, .png, .jpg formats.  They are not photographs per se.  I did have them in a separate catalogue at one stage but combined them when PSE11 catalog would do it's own thing but now with >30K scrapbooking files and >25K of photographs the catalogue is just too cumbersome and time consuming to 1. load and then 2. change to the directory tree I prefer to work with.
    In case you haven't guessed I really dislike this version of the catalogue I much preferred version 9 and I don't want to go to version 12 and find I have similar or more problems.  If I could use PSE without involving the catalogue at all  I would but some things just have to be done through it which is a real pain in the butte.

  • How can I split a signal coming in from an instrument​?

    I have a device (USB-TC made by Measurment Computing Corporation) that reads in 3 thermocouples in real-time and sends the information to my computer via USB. I am getting one signal from the instrument, how can i split it up into each thermocouple's information in LabVIEW 7.1?
    Cory K

    You are going to have to clarify what you mean by 'one signal'. If you can specify a multi-channel acquitisiton, then you should be getting back at least an array where each element in the array represents a channel. If you are specifying a single channel and getting back a scalar, you would need to call that three times with a different channel each time.

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

  • How can I split my Dj mix into separate tracks and export the tracks

    How can I split my Dj mix into separate tracks and export the tracks. I'm trying to burn my Dj mix to cd and I don't want it to be one long track.

    Henryfrommo wrote:
    How can I split my Dj mix into separate tracks and export the tracks.
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportsections
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • How can I split a QuickTime file in two?

    8/21/2006. How can I split a QuickTime file in two? I saved a two hour videotape converted by PYRO A/V LINK to iBook G4 combo into a file of 24.5 Gb, and I saved to QuickTime into 536 mgs. Of course, it took half a day. When I went to copy it as video (536 mgs) onto a CD of 700 mg capacity, Toast 7 said it required 1100 mgs and couldn't do it. I have QuickTime Pro, got just recently. I would be very happy to learn how to split it, so to copy each of the split pieces onto 2 CD's, for my own purposes. Many, many thanks. Chuck Yopst. [email protected] 847-394-5621 Moutn Prospect, IL (nw Chicago suburb)

    Wednesday, 10:35 am CDT, 30 August 2006
    Kirk, Thanks for your post Monday 8/21. Interesting how things worked out. I split the OuickTime file--of my retired uncle Church of the Brethren pastor's 50th wedding anniversary, and came up with two folders. Each contained four more folders, and inside folder Mvseg was file Avseq.dat which contained the video material and, when double clicked, started playing that half of the story on Windows 98SE. It just so happens that my uncle's PC operating system is a Windows 98SE. All this from QuickTime 7.0 which Windows 98SE would play the audio but not the video. Then a week later, yesterday in fact, in looking through iDVD help I found your solution, which heretofore I had no idea of. I had to go into System Preferences--Hardware--CDs & DVDs, and set these for "Open with 'Ask what you want to do'." The factory settings were to "open these when inserted" without that "Ask"ing. So then I was able and did follow your solution and it worked, but as a single QuickTime file, playable on Windows XP and Windows 2000 and Macintosh but not Windows 98SE. So everything worked out well. And thank you again. Chuck Y

  • How can I split a project. In iPhoto one could choose that option from the Events dropdown on the toolbar

    How can I split a project? In iPhoto I could use the Event tab in the tool bar and there was an option to split the event but I can't find it on Apeture 3.

    Hi Wayne.  Aperture and iPhoto differ in many -- perhaps all -- ways.  They were designed (afaict) with radically different users in mind.
    To move images into a new Project, select them, then execute "File→New→Project" and check "Move selected items to new project".

  • How can I split these numbers 05/24/2014,"55","15","49","16","28","18","2", pnto different columns?

    How can I split these numbers 05/24/2014,"55","15","49","16","28","18","2", pnto different columns?

    replace:
    with a tab
    copy the text:
    05/24/2014,"55","15","49","16","28","18","2"
    into a text box, then replace the "," with a single tab and replace the ," with a tab, then replace ", with a tab
    then copy, then select a cell, then paste
    05/24/2014,"55","15","49","16","28","18","2"
    ends up looking like:
    05/24/2014     55     15     49     16     28     18     2   (do NOT copy and paste from here... the forum replaces the tabs with spaces... so it won't work)
    when you copy and paste into a table in Numbers it looks like:

  • How can I split sections?

    How can I split sections?
    I imported a book (159 pages) into a Pages Word Processing document.  I want to be able to make each chapter a section, but my page thumbnails show the whole document is one section.  I can't seem to find a way to "de-section" it.

    mac,
    That's a great idea.
    At the top of the page of each new chapter, Insert > Section Break. Or, at the end of the last Page of each chapter - whichever you prefer. This will cause the yellow boundaries in the Thumbnail Pane to break in to smaller segments.
    Jerry

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

  • How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    Which exact Mini?
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Have multiple accounts, how can I move all products into one account?

    have multiple accounts, how can I move all products into one account?

    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Or you can simply use the Restore option of Disk Utility to clone the drive to the backup:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

Maybe you are looking for

  • Error message on the display

    I changed the ink cartridges and managed to print a copy. The message on the display then said - Pull out the paper tray. Load plain paper then press OK. Which I did. The message now reads "Printing alignment page" However it doesnt print and the mes

  • XML Bursting Output Report

    I am new to xml publisher and bursting. I have created a tax invoice that i can generate and print using XML Publisher. i now need to distribute the report - i have the option to email, fax or print. Unfortunately due to the nature of my clients infr

  • In original Budget crossing the limit for a particular order no error procd

    Hi In budget where the amount exceeds the original budget without showing any error message for budget exceeding. for example order no:xxxx amt 100000 and posting amt 200000 without error system proceeding. But generally system don't allow if we cros

  • RFC1845: SMTP Service Extension for Checkpoint/Restart

    Hello, I'm wondering if it's possible to enable this extension to the Mac OS X Server 10.5.6 SMTP service. My internet provider requires it because of some "security policy": my server has been "grey listed" because it is not compliant with this RFC.

  • Need License Key to Reinstall Windows 7 Professional

    Need License Key to Reinstall Windows 7 Professional