How is dt from "Get Waveform Components" calculated?

I am acquiring data, making waveforms, and writing to TDMS.
I physically took data for 2 hours and did timed events.
When I "Get Waveform Components" and determine array size of components I get the following result for data length:
dt = 0.002 sec/sample (500 hz)
Array Size of waveform components = 129350 samples
0.002 x 129350 = 258.7 sec = 4.3 min of total data length
When I view the waveform in Labview, I see an accurate representation of my timed events.
It looks like the full 2 hours of data is captured to some degree.
If I am losing data, does that mean my dt isn't always equal to 0.002 like "Get Waveform Components" says?
Any other ideas?
Thanks!

Waveforms assume a constant dt with each sample occuring every dt.  If you are missing data, then the waveform will show a shorter acquisition time and what you actually took.  Since you claim your times look right, then it is safe to assume you had no data loss.
DAQmx will give you warnings if you miss data from the DAQ card's buffer (data overwritten).  So if you didn't get a warning about that, then you didn't miss any data.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • I have tried to wire a "get waveform components" to my WDT signal, but I get a broken wire.

    I an answer to a previous question I was told that I needed to wire my WDT signal to a "get waveform components" to seperate out the time stamp, but the second that I connected the wire I got a broken wire, with the comment that the two were of different data types. Where am I going wrong? and what is it that I don't understand? I have the vi file attached below.
    Attachments:
    Acquire_N_Scans_save_to_ss.vi ‏77 KB

    AI Read returns a waveform array. Each element in the array is for a single channel. Even if you're acquiring a single channel, an array is returned. What you need to do is use index array function first before wiring it to the Get Waveform Components.

  • I used "Get Waveform Components" to separate waveform data. I need to get the time stamp and write it on file as an header.

    I am not able to solve the problem because I can't find an I/O vi that writes on file time stamp data. An error occurs, because of connecting different data types. How can I convert time stamp data so that I can use it as input in a write on file vi? Please, help me!

    The problem with the selection seems to be that you are using two different indexing tunnels on the for loop. One of them loops over every value of the first incoming waveform, the other one over all waveforms in the incoming array. The value you wire to the N terminal will be ignored, the number of loop executions will be the minimum of your indexes. Anyway, the loop doesn't seem to do what you wanted:
    - If you want to store the complete waveform: loop over all waveforms, check for the maximum of each of them and write it just like you do now.
    - If you want to store only the values of each waveform that actually exceeded the threshold: You can either use 2 nested for loops to iterate over each value of each waveform. Use shift registers t
    o create new arrays of timestamps / values for the values you want to store. You need to either convert the waveform to x-y-pairs (VI on analog waveform palette) or calculate your own timestamps. You might as well want to check out the "Search waveform" VI. Configure it so that value+-tolerance covers the band between your expected minimum value and your threshold value. The VI will give you the indices and timestamps of all fits.

  • Do you know how to keep from getting missing pixels?

    Dear fellow Photoshop Beginners,
    I am having an issue making a texture for a school project. Everytime I duplicate a layer and then "ctrl + T" to align the texture, I end up getting missing pixels along the edges of the duplicates even after I merge the layers. The original image is on the left and the duplicates are snapped to the right to create an elongated texture. I am using CS6. Do you know how to duplicate a layer without missing pixels on the edge?

    Hmm, I tried it myself and at 25% view I did see a line between the original and the duplicate:
    However, zooming in to 100% there was no border between the images, and looking at the individual pixels (600%) showed that there were no missing pixels.
    I'm wondering, what is the final purpose for this pattern, and what is the final file format? What happens when you view your image at 100%?

  • How to keep from getting duplicate emails on my iPhone

    I keep getting multiple, duplicate email messages on my iPhone.  How do I correct this?

    Apple will never reveal that info to you, since you were not the originally purchaser. However, you can get the date of sale by entering the SN here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Warranty starts on the date of sale, which is most likely the date of activation, but not necessarily so.

  • Modify components from multiple waveforms

    I would like to use the "Acquire waveforms" fonction and modify SOME parameters of SOME signals.
    Note this is the the function that acquires waveformS (plural) and not waveform (singular).
    Attached is my vi that shows simply what I would like to do.
    But it seems that some signals are incompatible.
    Could you give me help please?
    USing Labview6.0 and NI-daq6062E
    Thanks in advance.
    Nico404
    Attachments:
    modify_components_from_multiple_waveforms.vi ‏24 KB

    You're mixing apples and oranges in a couple different places. First you're acquiring an array a waveforms and trying to wire it to the Get Waveform Components which only accepts a single waveform (i.e. one element of your array). Second, you're trying to extract the Y data (which is an array of points) and use a formula node with a scalar input. I've modified your example to do what I think your're trying to accomplish.
    Attachments:
    modify_components_from_multiple_waveforms[1].vi ‏26 KB

  • How do I show a Waveform using the Labview Report Generation Toolkit?

    I am using LV 6.0.2 & have charts that consist of Waveform array type data - how do I break this down properly to using in Easy Graph.vi for the report generation tool kit which accepts on 2D arrays ?

    It looks to me like you want to use the Get Waveform Components VI in the Waveform Subpalette on the Functions Palette. The Waveform data type is a cluster of three elements, one of which is the data array. Because you have an array of Waveforms you will want to extract the data from each waveform in the array and build a 2D array of data for the Report Generation VI. The easiest way to do this would be auto-indexing into a for loop. The for loop should have the Get Waveform Components VI in it and then each data array (1D array) will be added to a 2D array using auto-indexing on the way out of the for loop as well.
    Hopefully my description was able to help out. I am including a bit of code which isn't really useful other than illustrating the code I des
    cribed above. It simply takes an array of waveforms, extracts the data and creates a 2D array of data.
    As a side note, I find the Context Help Window extremely useful when using new data types. This is especially true when using Graph and Charts
    Good luck!
    -scraggs99
    Attachments:
    Waveform_Array_to_2D_Data_Array.vi ‏30 KB

  • Measure ramp time from a waveform

    Hello,
      I'm relatively new to LabVIEW and need help with (what I think is) a pretty basic operation.
      I have a 3rd party DAQ board from Measurement Computing on which I'm reading a single analog channel. My task is to measure the ramping time from off to full scale (~6V) and make sure that it accomplishes this within 75 milliseconds. That's it.
      I have looked at the sample VIs that came with the DAQ board, and found one which graphs the channel and produces a waveform - 1 Channel, N samples. I tried using Get Waveform Components to break out T0 and Y, but not sure where to go from there. The Y component seems to be an array, but the T0 is not.
      As far as starting the waveform capture, I am programmatically in control of when the "switch" is turned on that powers the device, so I should be able to know when my true T0 is.
    Thanks for your help.

    An update - I still have no workable solution to this problem. I have talked to NI; I've tried using "Transition Measurements.vi". My current hardware mockup does NOT allow me to know when the voltage ramp is starting, although in the future I will have program control over that. For now, I was just trying to get a working VI that will do the ramp measurement. The other gotcha in this is that when power is applied, there's a short spike, then the voltage falls off temporarily, then the ramp up occurs.
    I've attached screenshots of both the whole waveform, and a closeup of the portion I'm interested in measuring. So I do have a valid waveform (DBL). I just can't figure out how to use Transition Measurements properly (or any other method) to get a valid result.
    Can anyone give me some help on this?
    Thank you.
    Attachments:
    total waveform annotated.jpg ‏51 KB
    waveform to measure annoted.jpg ‏57 KB

  • How do I save a waveform as a *playable* .wav file? (LV 6i)

    What series of I/O file saving .vi's do I need to save a general waveform as a .wav file (ie- i want to be able to use a general wave file player to output the file with the waveform)?

    Hi,
    Your Waveform has time and data information. You should unbundle it (Get Waveform Components) and use the data array as an input for the Snd Write Wave File.vi (Functions>Graphics&Sound>Sound>Sound File). The 'sound format' input refers to the sampling rate of your waveform, which will tipically be 8000,11025,22050,44100 Hz.
    The file is in a PC wave file (.wav) format and can be read by the Snd Read Wave File VI or other applications.
    A good example to look at is: Help>Examples>(Directory Structure)Sound>sndExample.llb>Simple Audio Player.vi. There you'll find everything: since how to store and play music, since how to code and decode wav files.
    Regards,
    Guillermo

  • How can I get "library components" for Encore? download from Adobe site is corrupted/missing files

    How can I get "library components" for Encore? download from Adobe site is corrupted/missing files.  I have tried 3 times to d/l and each time problems.  HELP please!
    I just want the DVD templates and buttons that would come with actual purchase of Encore.  Having creative cloud subscription should not limit this for me, right?
    BTW I have CC subscription, Windows 7,

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • How get all components from form Jdev10.1.3.4

    hi
    I have a form on her field is not related to VO. Pagedef empty.
    each element has the id and Binding.
    <af:inputText label="#{r['questionnaire.surname']}"
                                  required="true" id="surname"
                                  binding="#{QuestionnaireBean.surname}"
                                  />I want to get an array of elements.
    in obtaining a list of bindings
             BindingContainer bindings = getBindings ();
             bindings.getAttributeBindings ();null ((((((

    As you are asking your empty pagedef, which is what you do with
    BindingContainer bindings = getBindings ();
    bindings.getAttributeBindings ();it returns null. This is expected behavior.
    You have to walk the component tree to get all components check each for it's type and get the information from the component itself. You can use something like
    // reset all the child uicomponents
    private void getAllUIItems(AdfFacesContext adfFacesContext,
                                     UIComponent component){
       List<UIComponent> items = component.getChildren();
       for ( UIComponent item : items ) {
           getAllUIItems(adfFacesContext,item);
           if ( item instanceof RichInputText  ) {
               RichInputText input = (RichInputText)item;
               //do your work here e.g. store id in an array
           } else if ( item instanceof RichInputDate ) {
               RichInputDate input = (RichInputDate)item;
               //do your work here e.g. store id in an array
    }you may have to alter the signature of the method to return the array of ids ...
    Timo

  • How do i get the components when a new window opens from the main window?

    In a given application, i am able to get the list of components for the main window. When an event happens in the main window, now a new window opens here how do i get the components for this newly opened window?

    getContentPane().getComponents() can be used, only if i know that new class name thats been poped up when the event happens to that main window....
    Is there anyway in runtime to know that new class name & fetch the event...

  • How to handle flat file dissembler in biz-talk from getting spited in to multiple files???

    Hi,
    How to handle flat file dissembler in biz-talk from getting spited into multiple files according to number of transaction sets???
    where the Map flow is from Flat file to X12 Standard files.
    Please advise...

    You can go through following links:
    Developing
    Custom Pipeline Components
    How
    to Develop BizTalk Custom Pipeline Components - Part1
    Custom
    BizTalk Pipeline Disassembler Component
    Creating
    a custom BizTalk 2010 pipeline component–Part I
    add one more which talks about extending the FFDASM @http://msdn.microsoft.com/en-us/library/ee267856(v=bts.10).aspx
    Regards,
    Rachit
    Vote, if you find it useful.

  • How to save data from a waveform chart to a file?

    Hi! I have a question:how to save a real time data from a waveform chart? attachement is a example,how can i do to save the data from 0 second to 25 seconds to a file ?thanks!
    Attachments:
    example.vi ‏23 KB

    You can use a property node to get the chart history as a array. Then you can write that data to the file. The data in the array in you example can also be writen to a file. If you only wnat a portion of the data to be saved, use the Array Subset function to get the part you want.
    Lynn

  • How do I capture a waveform on MATH1 from my TDS754D scope?

    My Tektronix TDS 754D oscilloscope has a total of 11 channels: CH[1-4], MATH[1-3], and REF[1-4]. I can capture waveforms nicely from CH[1-4] using the Configure Channel VI included in the IVI drivers for my model. That VI doesn't seem to accept MATH[1-3] or REF[1-4] though. I get an error about an "invalid parameter".
    So how do I capture a waveform on the MATH and REF channels?

    Look under Configuration>Math Configuration for all the functions for configuring your math channels. There is a Configuration>Reference Channels palette as submenu as well.

Maybe you are looking for

  • ISight is not working with boot camp

    Hi, I have a Macbook Pro and very satisfied with it. Formerly I worked with Windows XP, so I decided to buy a Macbook and use boot camp. Everything was fine. In my enthusiasm I bought the LED cinema display. Very good display but the iSight camera is

  • Call Applecare?

    My logic board was fixed by apple, and as usual they did a good job. But I have noticed a few odd things after my computer came back to me, such as a file with a question mark at start up and my entire screen blinking off and on again after coming ou

  • Installing standalone adapter engine

    Is it possible to install a standalone adapter engine (unix) on an existing j2ee. Say that existing j2ee has other apps running on it already like portal and NWDI? Thanks

  • Difference between columns

    Hi all, I have a situation like the one pointed out in the picture here: http://i40.tinypic.com/dlq5tz.jpg This is a pivot table, and it extracts the Products and their average on the shelf on the last month and the same period one year ago. I would

  • XML Randomization Error

    I am trying to randomize XML document that contains 4000+ nodes and extract a random sample of 25 sentence pairs. But the pairs randomized through following code are not as what are required. These are less than 25, and are having gaps in the Transfo