How do you begin waveform timestamps at zero?

I am new to labview, writing my first program.  I am collecting 1000 Hz temperature data, the sample rate of which can be changed on the fly.  I have 12 channels of data, so I get an array of 12 waveforms.  I wanted to get the timing data from just one waveform, so I was able to use the "get waveform time array" vi to collect that information, but it displays the real time (number of seconds since 1903 etc), and I want my timing to start at zero when I begin the vi.  It needs to be accurate to the millisecond.  I thought that I could just subtract the time (in seconds since 1903) of when the vi started from each element of the array and I would then start at zero, but there appears to be some kind of timing error or lag time and the results I get always start the time somewhere between 1.000 and 5.000 seconds, (something like 1.458, etc), which is unacceptable.  I can easily fix the problem in Excel, but if anybody knows a better way around this problem, the help would be greatly appreciated.
Attachments:
Welding Program Variable Rate.vi ‏412 KB

rgehmlich,
I think the reason you're having trouble getting the timestamp to start at 0 is because the acquisition and the Get Date/Time in Seconds.vi are not happening at the same time. I think the system time is being read at the start of the program, and then the code goes through creating or opening the file, setting up the task, and doing the acquisition and all this probably takes between 1 and 5 seconds (with selecting the file to be opened). What I think would work better is to take the time information of the first waveform from the first iteration of the while loop and subtract that value instead of the Get Date/Time in Seconds value. I've modified your code to do this (and I took out the daq code and replaced it with an express VI since I don't have a daq card in my computer right now) and the timestamps start at 0 for me. Take a look and see if it helps.
Tyler S.
Attachments:
Welding Program Variable Rate[2].vi ‏470 KB

Similar Messages

  • How can you turn off timestamps?

    We've setup our WebLogic instance (WebLogic 5.1 running on Solaris 2.7) such
    that all messages going to standard out get redirected to a file. We do this so
    that when errors appear on standard out we can capture them to help us problem
    solve later (And before anybody says "why not just use the regular WebLogic log
    files", I'd respond by saying that those log files miss way too much important
    stuff). Pretty much any message output by WebLogic contains a time stamp, but
    I've found that some messages (which are created by the JVM or by sloppy
    programmers) will not have a timestamp. The lack of a timestamp can be a real
    nuisance when you are trying to correlate problems between a busy client process
    and a busy WebLogic server. We can fix this by piping the standard out through
    DJB's tailocal and accustamp (which merely puts a very accurate timestamp at the
    begginning of each line), but the result is that the WebLogic lines which
    already have a timestamp will end up with two timestamps. I'd rather have two
    timestamps than no timestamps, but I have been trying to find a way to tell
    WebLogic not to put timestamps on any of it's messages so that when I use
    tailocal/accustamp to put on a timestamp the result will be that all messages
    will have only one timestamp.
    So the question I have is does anybody know how to get WebLogic to not put a
    timestamp on messages it kicks to standard out?
    Thanks in advance,
    Sean Stidman
    OutBounder, Inc.

    Tap Settings, tap Messages, flip the switch to Off.
    Please Get the iPhone User Manual for iOS 5.

  • How do you begin learning about Java?

    Hi. I'm new to Java. I began taking a class at the local Community college where I live. I'm in my second term. It's a lot harder than the first. I'm not sure if I still understand the basics. I've written in COBOL, RPG I,II,III&IV, C, C++, C#, Pascal, Fortran, and Basic...along with a few other languages, but I find Java the hardest one to understand and program in.
    Anyone out there got any advise as to how to begin?
    I still feel very lost.

    I am still learning myself. I have dabbled in programming since about 1976 when BASIC was available on the TRS-80 Model 1 but never did anything serious.
    Start with the Java Tutorials at http://java.sun.com/docs/books/tutorial then look at other tutorials. There are some here:
    <ul><li>Java Beginner Tutorial by
         Srini Appikatla</li>
    <ul><li>[http://www.javabeginner.com/]</li>
    </ul>
    </ul>
    <ul><li>Java Advanced Tutorials on
         ipodlot.com</li>
    <ul><li>[http://www.ipodlot.com/javalearner/test/advanced.htm]</li>
    </ul>
    </ul>
    I haven't worked through all of them but they look good so far.
    Next, buy some books. I like "The Java Tutorial" Forth Edition. Yes, it is the same as the web site but it is easy to read sequencially. It doesn't cost much, used on Amazon.
    Finally, actually write some code. It doesn't have to do much. Just play around. As you learn each new thing, try it out. It makes a big difference.

  • How do you reset Waveform chart to blank?

    I have a VI with a Waveform chart in the WHILE loop, and each time I STOP the vi and re-start it, the old data remains in the display and moves out only as new data is collected.  This old data persists even after the VI is closed and re-opened.
    Is there a way to remove the old data each time the VI is run, in other words to make the blank screen the default for the  Waveform chart?  Right now, every time I open and run the VI, there is a squiggly line in the display, from irrelevant/useless data collected previously, and it would be cleaner and less confusing if there was no old data displayed there.
    Thanks,
    Dave
    Solved!
    Go to Solution.

    Thanks, but, still confused.  I already have a data source wired to the Waveform graph.  I cannot wire two things to the Waveform graph...so...can you offer more information? See the vi below....Waveform graph allows only one thing to be wired into it....
     Are you suggesting wiring an empty array each time I use the VI and then reconnecting the data source?
    Attachments:
    waveform graph question.jpg ‏19 KB

  • How do you plan your project?

    I'm thinking of recommending Captivate 3 to a client who does
    live training sessions for hospital workers, and has had no online
    options until now.
    I have a basic understanding of how the program works, but
    how do you begin brainstorming and planning your project? Once you
    determine the audience's needs and your goals, do you draw a
    schematic diagram on paper, actually develop the content and
    interactions within the program, or....?

    The view (and actions) taken by Phillip's firm are more and
    more the "standard" or "best practice" of professional Captivate
    developers. Small "bite sized" learning pieces make the act of
    checking a specific task quick and easy for the end-student-user.
    As an instructor, I put a lot of emphasis on storyboarding.
    Paper and pencil works best for me as the first step, but "Word" is
    then used as the next step in creating a script prior to starting
    to record in Captivate.
    In summary, creating short, precise Captivate projects
    from a storyboard and written script is the best way to
    build effective eLearning objects, as well as the most effective
    method for quick and easy (easier) editing for the developer
    (especially when changes are needed "post-production") - it is just
    best for everyone.

  • How do you add a new scene to beginning without disturbing movie with music and beat markers?

    How do you add a new portion to the beginning of your project without disturbing the rest of the project that already has perfectly place clips attached to beat markers with the music ?
    I forgot to add a tittle intro before the music starts with the attached pictures. When I try to add the whole project goes out of sync.
    I want to just add an intro without disturbing the entire project.
    Thanks

    Well, if you re-attach your background music under the first clip, the starting point will be at the start of that clip so I think it will still be in sync.  If not it's simply a matter of nudging the music track a bit along the timeline.  Comparing the audio waveforms of the two tracks should help with this.  When its right you can delete the track in the background music position.  Now you can add what you like before the first clip without affecting sync.
    Geoff.

  • HT1918 How do you change the country or origin in the iTunes store and zero out the remaining balance?

    As above.... how do you change the country of origin in the iTunes store when you already have a balance in another country, in my case the balance is $0.03. At the moment I can't change the country because of this balance and have attempted to zero it out, but no luck yet. Any suggestions?

    Contact iTS to have them cashout your account, and aid in changing the nationality.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • How can you type without using capitals at the beginning of a sentence?

    How can you type something without using a capital letter at the beginning of a sentence. It always automatically outs a capital letter and I don't want one because it could be a case sensitive password?

    Tap the Shift key to turn off caps

  • HT3458 How do you go back to the beginning of playlist

    How do you go back to the beginning of playlist on ipod shuffle

    The device only displays the last portion of a large text message. I'm not aware of any other method to access the beginning of the conversation except to scroll and keep loading the older part of the message. I would imagine to help with RAM management, the device does not load entire conversations.
    You can provide feedback to Apple HERE, if you would like to see a change in the way the device displays messages.

  • How do you zero all sliders in LR4?

    The default in previous versions of LR had the sliders set to various positions on import ie. Brightness 50 etc. You could zero out the slider by setting them at 0. Now with the sliders set to 0, yet LR adding a default processing, how to you zero out to start out flat?

    jljonathan wrote:
    The sliders and tone curve were actually set to these points for default but you could zero everything out and arrive at a FLAT image. Now, with LR4 these defaults are set by LR inside, BUT with the sliders are zeroed out. Is there a way  in LR4 to to get to that same FLAT state?
    No, not directly...you could set the sliders to zero with a linear curve in an image with PV 2010 and then convert the image to PV 2012. You'll end up with a minus Exposure of some number and a tone curve with multiple points already set to map the curve. But the image will have settings, no "zero'ed" as it was in PV 2010.
    This has already been discussed, see:
    Develop basic sliders - truly zeroed?
    and:
    Zeroed Defaults vs. Zeroed RAW File?
    And before you ask, no, it's not likely to change...

  • TS2755 How do you remove previous recipients from a message list? When I begin to type a number, I have numbers appear that are no longer in use, or are incorrect. They are not in my contacts list either.

    How do you remove previous recipients from a message list? When I begin to type a number, I have numbers appear that are no longer in use, or are incorrect. They are not in my contacts list either.

    I apologize. I didn't see that you hadn't updated to iOS 7. That's an iOS 7 option. With iOS 6, you'd need to restore the device as new. Note that that will result in your phone being updated to iOS 7.
    Best of luck.

  • Waveform timestamp

    I am using DAQmx and I am using the read function with the 1D waveform polymorphic instance. I am simply reading 10 channels of analog voltage data, but the reason I'm using waveform is becuase I need timestamp data for each sample collected. I also need multiple samples, which is why I'm not using single sample polymorhpic instance.
    WIth the ten channels, I'm extracting the Y data and then concatenating all the values into one 2-d array where each channel column represents one channel of data. I'm trying to extract the timestamp from the waveform using (get waveform component t0), however, how do I get the timestamp into a form that can be concatenated with the other 1d data? When I convert it to double it just gives me one element and not an array of data. So theres only one timestamp for every like 100 lines of voltage data. 
    Please see below code. 
    Solved!
    Go to Solution.

    Hi Dennis, I see what you're saying with using the math operations on the waveforms themselves. However, as you can see below I'm trying to add the single waveform arrays into one 2D array then write to waveform spreadsheet file, where each column represents each DAQ channel. Do you know how I can accomplish this?

  • How to edit vocal waveforms to overcome sibilance and plosives

    I know there are some tricks to dealing with sibilance and plosives (there's a great article on this on EQ's website <http://www.eqmag.com/article/vocal-cords-removing/jan-08/33059>, but one thing I can't quite figure out is how to edit a waveform through GB. So far, I've not been able to do much other than slightly trim a bit of the beginning of the waveform, but I invariably cut too much off at the top of the "esses" so that it sounds like a "ts", which is not what I am going for at all.
    Any technical help on how to edit waveforms through GB? Or is this an impossible dream? I have both a Blue Snowball USB mic and an Audio-Technica M4000S, and my mic budget is already tapped out after getting a Line 6 USB interface (TonePort GX) and the mic adapters I needed to plug my mic into the interface. I also have a pop filter, which could help but I can't quite get the vocal presence I need if I sing from four inches away so it's basically no good regardless of which mic I use.

    The editing of the waveform is a good way to fix sibilance at times, but it's really hard to do in GB because the way the wave is rendered in the track. You can zoom in really close and try to do it using the volume automation, but the way the waveform is rendered in the editing window is much better, you can zoom in and find the point where the plosive is happening, but the problem is that you can't set the volume points in the editing window, you can only do that in the track. What you might want to try is editing the vocal track that needs fixing, by itself in an audio editor like Audacity(you can get it for free here: http://audacity.sourceforge.net/about/features )using the volume envelope in the sections where the plosives occur. Then drag that file back into your Garageband project. It's similar to riding the fader on a mix, a technique for adjusting the vocal to minimize popping in a recording. Of course it's always better to avoid them in the first place, and I usually position my pop filter as close as possible to the mic, maybe 1/2" away, and sing right up close to the pop filter, when I want a close-up vocal. But if you use an external editor with Garageband, you can fix tracks that have some popping you need to get out.

  • Spaces between DIV - How do you remove or adjust them?

    I'm having trouble understanding the following.
    How do you remove the space between the DIV. There is a space
    between the Banner DIV, Main Content DIV and Footer DIV as shown in
    the
    Demo Page.
    How do you adjust these spaces? I have tried all I know.
    Please take a look at the codes by clicking the link below.
    http://www.nucenturemusic.com/pr_wst2.html
    I have created a demo page to illustrate this problem, or
    should I say my lack of knowledge.
    The space is between the Banner DIV, Main Content DIV and the
    Footer DIV.
    Thanks very much for you help.
    Patrick

    Murry,
    I agree and I'm still learning. But in the context of the
    current discussion it seems it would squish all the <p>
    without the addition of your approach.
    I know when I begin to add text to a new div that these
    <p> tags are automatically inserted and cause the extra space
    the OP referenced.
    Is the correct approach then to add a descendant selector or
    remove the <p> or remargin the <p>?
    Thoughts? Thanks.
    Glenn
    quote:
    Originally posted by:
    Newsgroup User
    It could, but not if you add the concept of descendent
    selectors. By adding
    a descendent selector to the rule, you can restrict that
    margin setting to a
    single collection of <p> tags, e.g.,
    <div id="thisOne">
    <p>...</p>
    <p>...</p>
    </div>
    <div id="butNoneOther>
    #thisOne p { margin:0; }
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "GEAtkins" <[email protected]> wrote in
    message
    news:g1n70i$qcv$[email protected]..
    >I am a little confused then. Would this not then cause
    every <p> to have a
    > margin of zero or whatever and cause them all to be
    crammed together down
    > the
    > page?
    >
    > Glenn
    >
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > .oO(GEAtkins)
    >
    > >Try removing the <p> from below. See if that
    works.
    >
    > Bad idea. The 'p' is the appropriate markup for that
    piece of text. The
    > correct way is to use CSS to adjust the paragraph's
    margins as needed.
    >
    > Micha
    >
    >
    >
    >

  • Itunes match  how do you to select multiple songs or do you click each one

    In ITunes match  how do you to select multiple songs to download to pc or do you have to click each one.

    First make sure you have the current version of iTunes, which is actually 10.5.1.  I had to manually download it from apples website, for some reason, it wouldnt auto-update.
    http://www.apple.com/itunes/download/
    Once that is complete, go to the iTunes store. In the Quick Links secion to the right, you should see iTunes Match. This will prompt you to activate your subscription to iTunes match.  After that it should ask you to add your computer and once youve done that, it should begin the process of scanning your library and adding it to the cloud
    Alternatively, once you activate your subscription, you can also go to the Store dropdown menu in iTunes and select Turn On iTunes Match.

Maybe you are looking for

  • Network cable unplugged problem with WRT54G

    I just got a WRT54G wireless router recently, and experienced some problems with it. There are 5 notebooks in my network using wireless card and 2 PCs connect to the router through cables. The router is with ver 7.00.1 firmware. The router is working

  • Spry collapsible panel - repeating region

    Hi, I'm trying to make a repeating region that contains a spry collapsable panel. The problem is that i need to develop a way to automatically increase the ID of the spry panel. The problem I am encountering is that only the first Collapsible Panel w

  • How do I lookup an EJB 3.0 Session bean from servlet or JSP?

    Does anyone knows how can I invoke an EJB from a servlet or JSP ? I deployed a simple EJB on a Oracle Application Server 10g release 10.1.3 and I'm working with JDeveloper 10.1.3. I deployed the files via JDeveloper, and I didn´t specify any orion-ej

  • How do you start a function without a button?

    I currently have an action that starts with a button click. But I want it to start on frame 1 automatically without a button. How do I need to edit my code to make this work correctly? It's a typewriter effect and I plan on exporting it out as a .MOV

  • Can't get Imac to connect to Ipad or iphones

    I just got an Imac running version 10.6.7... Intel Quad It came with Facetime and Im getting frustrated. I have set it all up, even verifying email to connect with me. I have connected / facetimed with my  daughters I phone and  ipad 2, but t 15min l