How to get the length of a waveform above a certain threshold?

A simple problem... I have acquire the data of the DAQ Assistant and read it back draw the measures file using read.

My signal will be with just a peak (see figure)

I need to find the duration for which my wave form value is more than 150.

I am unable to find that the waveform of time first crosses threshold... but the second point waveform the threshold comes in... I'm not able to find

second attachment is part of the created vi...

If I can find the second time where the wave goes the threshold, I can calculate the time using dt...

As David and VSH have hinted at, you can use threshold spikes.  I did it several times...  See the attached VI.

Tags: NI Software

Similar Questions

  • How to get the length of the (playbook) video?

    How to get the length of the video?

    I need a maximum value for use with mmr_seek() or mmrenderer_event_get_position().

    If you like in the file system on your PlayBook, you will see this:

    / pps/services/multimedia/converter/context.

    There should be a directory with the name of the conext you use with mmrender. Under this directory the file called metadata. For an mp3 player, I see this:

    [n]@metadata
    md_title_album::Sublime
    md_title_artist::Sublime
    md_title_bitrate::192000
    md_title_comment::
    md_title_duration::290812
    md_title_genre::Alternative
    md_title_mediatype::4
    md_title_name::Get Ready
    md_title_samplerate::44100
    md_title_track::14
    url::file:///accounts/1000/shared/music/Media Sync/Sublime/Sublime/Sublime - 1996 - Sublime - 14 - Get Ready.mp3
    

    You could write a simple parser to get the data you need.

  • How to get the length and sub lymph nodes.

    Hello

    find the script below.

    < List1 >

    < list >

    < List1 >

    < List1 >

    < List1 >

    < / list >

    < list >

    < List2 >

    < List2 >

    < List2 >

    < / list >

    --

    --

    -

    -

    -

    -< / list1 >

    Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.

    To implement the above I used the code below

    var number = xfa.record.List1.List [0].nodes.length; (Does not work)

    But if var account = xfa.record.List1.nodes.length; (work)

    and also I want to delete a tag inside the < List > tag. How?

    Very Urgent.

    Thanks in advance.

    Yes, you need to use the name instead of the value to get the tag name...

    xfa.datsets.data.Root.nodes.item (0) .name

    Thank you

    Srini

  • How to get the length of apex_item in javascript?

    Hi all

    I'm having a tabular report using apex_item, I want to know how can I get the length of the element in javascript? as we do in pl/sql using apex_application.g_f01.count ().

    and one more thing, when I go to some page, the page tab is disabled do, what should I do to allow tab always know if I am on this page or any other page.

    Thank you
    Tauceef

    Hello

    just refer javascript on this link

    http://Apex.Oracle.com/pls/OTN/f?p=31517:213:2041230563219134

    It will help you solve your problem

    Kind regards

    Kitenge

  • How to get the length of the string a vm?

    Hello

    I'm trying to automate some consolidation of virtual machines and would like to add script. I have over 800 virtual machines manually would not work.

    I would like to

    $allVApps = get-CIVApp

    foreach ($CIVm to ($allVApps |)) Get - CIVM)) {}

    find the number of channels and if greater than 8 consolidate them.

    }

    Someone has this practice? or something else?

    I'm in a cloud environment vSphere 5.5, installed latest powercli.

    Thank you

    Don't know why this does not work for others, but what I posted before work for me.  Here is a more complete version of how get the those of VAPP VM.  There are no doubt more direct ways, but that how I made it so far:

    1. get the VAPP

    $vApp = get-CIvApp-name 'Test-VAPP.

    2. get the VMS of vApp

    $VMs = $vApps.ExtensionData.Children.vm

    3. get the ones for the VM first in the list of $VMs:

    $VMs [0]. VCloudExtension.any.VirtualDisksMaxChainLength

    This last command returns 18 for me which is the "Length of the string" value in the properties of the Virtual Machine to the virtual machine in the vCD UI.

    I hope this helps.

  • How to get the bar display of title in pixels text length?

    Hello

    Does anyone know how to get the length of the title bar text (in pixels) display?  Just to clarify, that's what I'm looking for:

    I don't see a CVI function for this.  The attribute ATTR_TITLE_FONT for GetPanelAttribute (...) is only valid for the panels of the child which prevents me from using the GetTextDisplaySize (...) to get the size.  Dive into the Windows SDK I can not even find an answer here.  Any ideas?  Thank you.

    Figured out how to do this.  Go to the SDK to get the font properties - is kind of nonobviousness.  But once you have the font properties, you can create a font of meta in CVI, with properties, and once you have the meta font you can use GetTextDisplaySize (...) to get the size.  For any future reference:

    //define a NONCLIENTMETRICS structureNONCLIENTMETRICS ncmtest;//We have to set the cbSize parameter to the size of the passed structure before retrieving it
    ncmtest.cbSize = sizeof(NONCLIENTMETRICS);
    //Get NONCLIENTMETRICS structure
    result = SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncmtest, 0);
    
    //copy the title font name to a c-string
    while(ncmtest.lfCaptionFont.lfFaceName[i] != 0)
    {
        thefont[i] = (char)ncmtest.lfCaptionFont.lfFaceName[i];
        ++i;
    }
    
    //null terminate
    thefont[i] = '\0';
    
    //create meta font with title font properties.  lfWeight & 0x700 indicates bold.  CreateMetaFontWithCharacterSet() doesn't recognize DEFAULT_CHARSET so we replace it with VAL_NATIVE_CHARSET(?).
    uir_status = CreateMetaFontWithCharacterSet ("TheTitleFont", thefont, abs(ncmtest.lfCaptionFont.lfHeight), ncmtest.lfCaptionFont.lfWeight & 0x700 ? 1 : 0, ncmtest.lfCaptionFont.lfItalic, ncmtest.lfCaptionFont.lfUnderline, ncmtest.lfCaptionFont.lfStrikeOut, 0, ncmtest.lfCaptionFont.lfCharSet == DEFAULT_CHARSET ? VAL_NATIVE_CHARSET : ncmtest.lfCaptionFont.lfCharSet);
    
    //get titlebar text
    uir_status = GetPanelAttribute (panelhandle, ATTR_TITLE, thetext);
    //get title bar length
    uir_status = GetTextDisplaySize (thetext, "TheTitleFont", &height, &width);
    

    I have a 79 for the duration of the screenshot above.

  • How to display the length of the song

    I burn an audio cd, but the song did not have the length how to show its length?

    How to get the length of an mp3 file?

    =============================
    Hover your mouse over the name of the file and
    You should see a ToolTip that shows the time.

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to get the channels spot given colors and spot channels length

    File is CMYK format... channel spot color is CMYK we as a spot channel color is c100m50y20k5
    How to get the channel spot color data using javascript? c = ? m = ? y = ? k = ?
    howv to get your channel length n (not the CMYK channel) use javascript?  such as CMYK + spot n-channel 7 = 7

    Please help me

    #target photoshop

    var myDoc = activeDocument;

    var channel = myDoc.channels;

    var number = 0;

    for (var m = 0; m< channels.length;="" m++)="">

    If (channels [m] .kind == ChannelType.SPOTCOLOR) {the number ++}

    };

    Alert (the number + "spotchannels");

  • How to get the timestamp of data DAQmx Read

    Hello

    I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.

    Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.

    I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.

    But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.

    Thank you

    You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.

  • How to get the numeric values with SCPI on an AG7034B

    Hello

    I use an Agilent 7034 osciloscope with 4 analog and 16 digital channels.

    Read analog channels is no problem, but how do I get the digital channels (101010) waveform?

    I see the digital signal on the screen of the instrument.

    And: I want to do with SCPI commands and read/write Visa.

    Thanks for all tips

    Do you really mean the DSO7034B? If so, there are drivers available for LabVIEW and other programming environments. I suggest you only start with one of these. Check your manual to become familiar with the controls.

    PS ad to the digital I/o Board is incorrect.

  • Somehow I can get the length of a segment of the timeline using only entry points and somehow like in FCP?

    Users of Adobe Premiere:

    Somehow I can get the length of a segment of the timeline using only entry points and somehow like in FCP?


    I want to get the exact length of timecode for some segments only, not the entire timeline. Can not know how to do this.

    If you set the entry points and in the program monitor, is indicated to the right:

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

  • How to control the length of field, select items list to 4.2 page

    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    help much appreciated
    see you soon
    Wim

    WimDeGroot wrote:
    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    Normally the browser automatically resizes the selection list based on the content.

    What version of the browser / do you use?

    What theme?

    What model page/region?

    What form/article layout?

    What content does not match?

    (Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)

  • EventHandler - how to get the key to the user

    Hello experts,

    How to get the key to the user within an event handler. (Recon - BulkOrchestration in bulk of trust)?
    The code below works if I create a user from the administration Console, but its does not work for the recon trust.

    Recon trust incase it's go to loop else and do not return anything.

    private String getUserKey (long processID, orchestration BulkOrchestration) {}
    Take string;
    If (! orchestration.getOperation () .equals ("CREATE")) {}
    Take = orchestration.getTarget () .getEntityId ();
    } else {}
    OrchestrationEngine orchEngine = (OrchestrationEngine.class) Platform.getService;
    Take = (String) orchEngine.getActionResult (processID);

    }
    Return take;
    }


    Thanks and greetings
    INIYA

    Why not try it?

         public BulkEventResult execute(long l, long l1, BulkOrchestration orchestration) {
              logger.debug("BulkEventResult NEW");
              try {
              Identity[] newUserState = (Identity[])getNewUserStates(orchestration);
              logger.debug("newUserState :: " + newUserState);
              for(int y = 0; y < newUserState.length; y++){
                   logger.debug(y + " . " + newUserState[y]);
              }
    
              for(int u = 0; u < newUserState.length; u++){
                   HashMap userAttrMap =  newUserState[u].getAttributes();
    
                         Iterator iterator = userAttrMap.keySet().iterator();
                         while (iterator.hasNext()) {
                                      String key = iterator.next().toString();
                                      Object value = userAttrMap.get(key);
                                      logger.debug(key + " -- " + value);  
    
                        }
              }
    
              Identity[] oldUserState = (Identity[])getOldUserStates(orchestration);
              logger.debug("oldUserState :: " + oldUserState);
              for(int y = 0; y < oldUserState.length; y++){
                   logger.debug(y + " . " + oldUserState[y]);
              }
    
              for(int u = 0; u < oldUserState.length; u++){
                   HashMap userAttrMap =  oldUserState[u].getAttributes();
    
                         Iterator iterator = userAttrMap.keySet().iterator();
                         while (iterator.hasNext()) {
                                      String key = iterator.next().toString();
                                      Object value = userAttrMap.get(key);
                                      logger.debug(key + " -- " + value);  
    
                        }
              }
    
              }catch(Exception e){
                   logger.error("In Catch");
                   logger.debug("ERROR :: " + e.getMessage());
              }
              logger.debug("Exiting BulkEvent");
              return new BulkEventResult();
         }
    
         private Object getNewUserStates(BulkOrchestration orchestration)
        {
            Object newUserStates = null;
            HashMap interEventData = orchestration.getInterEventData();
            if(interEventData != null)
                newUserStates = interEventData.get("NEW_USER_STATE");
            return newUserStates;
        }
    
          private Object getOldUserStates(BulkOrchestration orchestration)
             {
                 Object oldUserStates = null;
                 HashMap interEventData = orchestration.getInterEventData();
                 if(interEventData != null)
                     oldUserStates = interEventData.get("CURRENT_USER");
                 return oldUserStates;
             }
    
  • How to get the name of the particular index table option.

    Hello

    Can any body tell how to get the name of the item to a particular array.i have a table within array.i must compare the name of Francesca in particular key.here is the table.

    myArray= Array (@43b1e09)
    [0] = object (@42b33f9)
    Testing_1 = Array (@4428821)
    [0] = object (@43adc19)
    choice_id = '0 '.
    delete = "N".
    DownloadURL = "xyz".
    selected = 'Y '.
    translation = "2_486."
    length = 1
    length = "N".
    Editable = 'Y '.
    field_id = '388 '.
    LanguageLink = 'Y '.
    linked_definition_id = null
    multiple values = "N".
    name = "Photo".
    otheroption = "N".
    photovitlink = object (@43ad0d9)
    required = "N".
    step = '1 '.
    translation = "Photo".
    visible = 'Y '.
    [1] = object (@43ad5d9)
    [2] = object (@4490089)

    Here is the structure of the table I get server side.i give table name of result as table myArray.This have several child as an object of object.each having .i table (Testing_1 in the first case) must get the name of this Testing_1 table and compare with my sort key that I perform an operation. But I am unable to get the name of this Testing_1 array(Since_it_is_dynamic_so_this_name_changes_some_times).can a body guide me how to get the name of this table.



    Thanks and greetings

    Vineet Sharma

    Hi Vineet Osho,

    You can browse your object using the loop and you can get the name of the table... as below...

    for each (var obj:Object in myArray)
    {
    for (var str:String in obj)
    {
    If (obj [str] is array)
    {
    var arrayName:String = str;
    }
    }
    }

    Thank you

    Jean Claude

Maybe you are looking for

  • Will I lose my music/videos if I delete my folder "downloads" after I transferred to my iTunes?

    I want to delete all my music and video files in the folder "downloads".  I transferred all these files to iTunes but will I lose the music and videos if I delete the folder "downloads"?

  • Where can I get a plug 2 pins?

    I'll buy the MacBook Pro 13 "retina on the UK store. My cousin will receive it and bring it back on when she comes to visit. The problem is, it comes with the plug 3 pins for the British market, instead of the 2 pin, which is the type of the European

  • Satellite A200 not power external USB devices in mode 'sleep'

    I have a new A200. I have and USB hub and disc external hard USB powered. When I put it in mode 'sleep' their lights stays on. It came with Vista. I searched for the setting, but I could not find. It is not good for the battery. Any advise? Thank you

  • from the Windows desktop disappeared

    I don't know what happened, I had walked away from my laptop and my little girl was near her while she may have touched. When I came back all my icons are gone, it's like everything is hidden, even the menu bar at the bottom. the only visible thing i

  • database of 12 c and ASM on Windows Oracle VM Box

    HelloI created a VMbox with windows 7 (64-bit). Now, I want to install a 12 c with ASM Oracle database.I could only find a download for Linux not for Windows. Please send me the link to download 12 c with ASM.Thank youConcerningSiegwin