Select a range of data

Hi everyone,
I would like to know how to do to select a range of data (for example on a force/time graph during a jump landing (parable), from a certain value to another) to register it on a special file? I tried the module "separate" or "cut out" but I don't think they will be useful when you don't know when will appear the specifical value you're looking for...
Is it also possible in Dasylab to know the director coefficient of this type of curve (quite linear...)?
Thanks!
Solved!
Go to Solution.

Perhaps...
Select the values in a block (y values) at given positions (y values).
Calculate the differences, and calculate the quotient.
M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum National Instrument Alliance Partner | www.measx.com
Attachments:
steigung.jpg ‏187 KB
steigung.zip ‏6 KB

Similar Messages

  • Selecting a range of data from a file

    Is it possible to only display a selected range of data from a binary file? I can read in my binary files but I would like to only send data within a user defineable range to the data portal for viewing. This range may be over multiple binary files also. I can concatenate these files already but I need to select a range to insert into the data portal.
    Thanks,
    AJL

    OK AJL,
    This sounds good. It's convenient to have the start and stop time of each segment file in the name of that file. By the way, you want to check that in the DataPlugin and "Call RaiseError()" if the data file is not named that way, otherwise you will try to read DIAdem *.DAT files with your custom DataPlugin. DIAdem will try each DataPlugin that is registered with the file's extension (i.e. *.DAT) one after the other, until one of them does not give an error. So you should always check for some identifying characteristic in your data file and "Call RaiseError()" if you don't find it, in order to abort DIAdem using that DataPlugin for files it was never intended for.
    Now to your point. How do you know which series of segment files to read from? Does your VBScript ask the user to select a particular directory that contains all these segment files? I'm going to assume so. My recommendation is that your VBScript also create a time slice configuration file in that directory that contains the information about the time slice you want to read in (start and stop times). Then your DataPlugin can look for that file name in the directory passed to it-- if it finds none it will just load the file path it was passed outright, but if it does find the time slice file it will load any and all *.DAT files in that same directory which correspond to that time slice. This includes loading only parts of one or more of the existing binary files.
    It is straightforward enough to pick out the section of the binary file you want to load with the DataPlugin, once you know the time slice information inside the DataPlugin's callback. Use the File.Position property to move the file cursor to the position of the first data point in the time slice, and use the Block.BlockLength property to specify the number of values to read in each of the channels from that starting point (to exclude the values after the desired time slice). I assume that your binary data is stored interleaved and that you are using DirectAccessChannels to read the values in your DataPlugin.
    Finally, for time slices that span multiple segment files, you will need to load these to separate groups in the Data Portal with the DataPlugin. Then the VBScript can consolidate these channels into long concatenated channels in a new group and delete the temporary segmented groups. In a future version of DIAdem the DataPlugin API will have the ability to do this mapping for you, but not yet. I also have VBScripts that do this concatenation already-- you can download them from www.ni.com/support/diasupp. They're designed for concatenating channels from multiple ASCII/Excel/DAT files.
    Let me know what else you need,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Select Range of dates

    Hello,
    is it possible to use the <cfinput datefield> or the <cfcalendar> to allow users to select multiple range of dates.
    EG User wants to select some days in June, July and August.

    The cfcalendar only allows for blocking of range of Dates and not for multiple selection of dates.
    My client would want to select multiple dates like July 14, 17,25 Aug 25,26,28 at one shot from the calendar

  • Extract Range of Data / Waveform Zoom

    I have an NRF recording file with several channels. What I need to do is visualize the data and then extract a small part of the waveforms into a TDM or Matlab file. I actually managed to get all this done in DIAdem, but in a most cumbersome way:
    1) Import NRF file into the Data Portal using the DataPlugin
    2) Convert all signal channels to Waveform channels (using the function in the ANALYSIS module)
    3) Display the waveforms in the VIEW module
    4) Zoom downto the sample level in order to figure out where to start and stop the extraction
    5) Write down the start/stop x-coordinates (i.e. XStart, XEnd)
    6) Switch to the ANALYSIS module and generate a numeric channel with "First value" = Xstart, "Last value" = XEnd and "No. of values" = (XEnd - XStart)/SampleTime
    7) Use "Linear Mapping..." to extract the desired data
    8) Convert the extracted data to a waveform channel
    9) Export data to desired file format
    Now for my questions:
    * I'm using DIAdem 10.0 (Base Edition) and would like to know if there is not a much simpler way of getting this job done, i.e. selecting two points on a waveform, click one button and get the data between those points as a new waveform in the Data Portal (ideally for several waveforms in parallel)
    * Isn't there any way of zooming out one step in the waveform viewer? I only found zoom on/off which is a rather crude way for navigating)
    * Are there any news regarding the topic in the thread "Selecting a range of data from a file" (last posts date back to February 2005)
    Any help is greatly appreciated. Thanks

    Hi,
    * How can I run a VBS script with my Base Edition: the whole Script feature is disabled, but I was under the impression that I can run scripts (just not edit/debug)
    ... with an Link on the Desktop from your DIAdem. In Properties of this Link, you can set the Parameter:
    "DIAdem.exe" "/cScriptStart('MyScript')"
    ... with the start Script in every Module in DIAdem. Have a look at the Screenshot.
    * Isn't there any way of zooming out one step in the waveform viewer? I only found zoom on/off which is a rather crude way for navigating
    ... I´m sorry Zoom out isn´t anywhere! But you can make it like the second picture. With the upper Graph, you an control what you see in the second Graph. Zoom In/Out, no Problem
    * Also how can I precisely (down to the sample level) place the two band cursors? Using the different zoom modes I manage to do it for one of the two cursors, but not the other one.
    Sorry, I don´t understand your question! Perhaps you can precisely set you Cursor with the Coordinat Window? Have a look!
    Best regards
    Alex
    Attachments:
    Start Script.gif ‏6 KB
    Zoom.gif ‏55 KB

  • Problem: "Select a Range" doesn't work (Cannot mark data from MS Excel)

    Hi,
    I need Your help. I have some problem with connection with MS Excel.
    I can't use MS Excel range as data source.
    Please find short overview of this situation (video clip):
    [http://www.explorer-consulting.pl/XC-prob.swf|http://www.explorer-consulting.pl/XC-prob.swf]
    (Windows 7 + Office 2007).
    Maybe there is something to do w/ Windows 7 admin options, but I have no idea what kind of them.
    Please share Your ideas.
    Wojtek

    Hi Liliana,
    about video (it's flash swf file) so maybe You have to give permission to watch this (in Your browser).
    but here You are screenshot too:
    [http://www.explorer-consulting.pl/xc.jpg|http://www.explorer-consulting.pl/xc.jpg]
    XC 2008 servicepack3 with fixpacks 3.1, 3.2, 3.3 and 3.4
    I try to select cells in Excel area, but "Select a Range" window is blank all the time.
    Edited by: WojciechKorsak on Jan 31, 2011 7:38 PM

  • Select- Color Range- Results in Blue Screen (PC)  (driver out of date)

    I've been using the CS6 beta about two days.  While experimenting with color range I experienced two consecutive blue screen crashes.  The first time it happened,I was working with the color range selector and was replacing the selected areas with another color using the paint bucket.  About the third time I attempted this, my PC blue screened.  The second time, I opened a photo, went to Select>Color Range and got an immediate blue screen crash.
    I then went back to CS5 and I've been playing with the same scenario with no apparent problems.
    My PC is a store built computer.  It consists of an MSI 990-FXA GD80 motherboard, an AMD Phenom 1100t CPU, Asus GTX550 Ti graphics card and 8 gig of RAM.  It boots from a 60 gig SSD and my programs reside on a 500 gig hard drive.  The OS is Windows 7 Professional 64 bit.  CS6 is using the hard drive for its scratch disk and Photoshop is using 4339 mb of the 7232 mb of available RAM - I haven't changed that.  I'm running CS6 as administrator because the way it installed, it would only run in that fashion.
    One disappointment during the installation was CS6 made no attempt to read my preferences from the CS5 install.  That may be covered in another post, I've not yet looked.
    Please keep us informed as new betas are released, because I would like some time to work with this puppy before plunking down big bux for the upgrade.  As it is now, I'm going back to CS5.  I get mighty nervous when my super computer blue screens!
    Gerry
    gswetsky AT bellsouth DOT net

    The GPU is often at root of issues like yours. I've had so many problems with Nvidia drivers for their gaming-oriented adapters (like yours) that I finally went with one of their workstation cards. I have a Quadro card with just enough RAM to make Photoshop happy. The workstation drivers are optimized for reliability, the consumer card drivers are optimized for gaming and that often means they're less stable and reliable with Photoshop.

  • XML/XPath question--how to select a range of elements with XPath?

    Hi there,
    I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
    Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
    Any ideas? Thanks much in advance!
    Toby Buckley

    Your question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
    JTable table = new JTable(10, 5);
    JScrollPane scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane );
    In three line of code you have a simple demo program.
    When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
    and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList.

  • Select a range

    How do I select a range of values?  For instance, I need to write a select statement that, among others, selects documents based on a date range.  What I am doing is trying to pick billing documents that have a billing date within the last 365 days.  Also I need to figure out a way (an easy way) to determine if a particular day is a weekend.
    Regards,
    Aaron

    RANGES: s_date FOR ekko-aedat.
    DATA: lv_day TYPE scal-indicator.
    s_date-high = sy-datum.
    s_date-low = sy-datum - 365.
    s_date-option = 'BT'.
    s_date-sign = 'I'.
    APPEND s_date.
    DATA: t_ekko TYPE STANDARD TABLE OF ekko.
    SELECT * FROM ekko
           INTO TABLE t_ekko
           WHERE aedat IN s_date.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
      EXPORTING
        date = sy-datum
      IMPORTING
        day  = lv_day.
    IF sy-subrc = 0.
    ENDIF.
    LV_DAY = '6' for saturday and '7' for sunday.

  • Select a range of cells using ActiveCell

    I am trying to select a range of cells using ActiveCell.Offset
    This is really testing me, up to now I have this:-
    Private Sub CommandButton1_Click()
        Windows("example.xls").Activate
        With Worksheets("Data").Range("C1:C65536")
        Set c = .Find("", LookIn:=xlValues)
        If Not c Is Nothing Then
        firstAddress = c.Address
        Do
        c.Select
        Loop While Not c Is Nothing And c.Address <> firstAddress
        End If
        End With
        Start_Point = ActiveCell.Address
        ActiveCell.Select
        ActiveCell.Offset(rowOffset:=-50, columnOffset:=0).Activate
        ActiveCell.Select
    End Sub
    I want to select the last 50 cells in column C
    Please help!
    Thanks.

    Windows("example.xls").Activate
        Worksheets("Data").Select
        With Worksheets("Data").Range("C1:C65536")
        Set c = .Find("", LookIn:=xlValues)
        If Not c Is Nothing Then
        firstAddress = c.Address
        Do
        c.Select
        Loop While Not c Is Nothing And c.Address <> firstAddress
        End If
        End With
        Start_Point = ActiveCell.Address
        ActiveCell.Select
        ActiveCell.Offset(rowOffset:=-50, columnOffset:=0).Activate
        ActiveCell.Select
        ActiveCell.Offset(0).Resize(50).Select
        Selection.Copy

  • Retrieving a range of data in office 2007

    Hi All,
    My company recently upgraded to Office 2007. We are using Hyperion 9.3. A few interactive users are facing this issue.
    The issue seems to be with the 'Retrieving a range of data'.
    In a worksheet the user is selecting a range of cells to restrict the data retrieval to the selected range. The unselected area of the sheet contains data not formatted to retrieval dissapears(hard coded number and the formula).
    Under Options tried checking 'Display Unknown members' and 'Retain formula on retrieval'. Users wants to preserve hard coded numbers outside the retrieval area.
    Your help is very much appreciated.
    Regards,
    Jelan

    Use the array subset in the array pallete. put your smallest number in the index and then subtract your smaller number from the bigger number and put this result in as the length input. The output will be an array starting with the smaller number and ending with your bigger number.
    Joe.
    "NOTHING IS EVER EASY"

  • Passing a range of dates from Visual Composer 7.0 to Bex Analyzer

    Dear Experts,
             I created a button in my Visual Composer model that has the following settings:
    System action:  Hyperlink
    Apply to:  Self
    Hyperlink address:  "...QUERY=BMMSEG_C01_SAS_Q0001&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=MBUDAT&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=08/22/2006;08/28/2006"
            Basically, what I need is to pass a range of dates from Visual Composer to Bex Analyzer on the characteristic "MBUDAT".  However, it only brings back the data with those specific dates, not the range.  
          I don't think this is the correct syntax to pass in a range value:  08/22/2006;08/28/2006  Please advise how should I do it. 
    Thank you in advance,
    Kevin

    Hi J GOEL,
           Thank you for your quick response.  I created a date range variable ZPSTDAT, and then I passed in the oncatenated value to my Bex query (for this example, let says the From date is 08/22/2006, and the To date is 08/28/2006 ).
          Here's what I passed in into the url:
    ...QUERY= BMMSEG_C01_SAS_Q0001
    &#38;BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &#38;BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC= ZPSTDAT
    &#38;BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING= 08/22/2006:08/28/2006
       However, it returns all the records, so it seems like it doesn't even accept the range value that I passed into the Bex.  Do you mind to please show me the url you have that pass in the date range.  I just need to see the date range part, not the entire url.
    Thanks,
    Kevin

  • Dynamic Select Options/Ranges Maintain and Display in my screen

    Hi I am trying to figure out if I can create a screen which will will read various select-options I have stored in a custom table but am having trouble finding something which will allow me to display each of 'select-options' in my dynpro... has anyone ever done this?
    I'd rather not reinvent the wheel or mimic - does anyone know of a way to basically use a loaded range and display it on a screen for display or maintenance using standard SAP routines/classes?
    Thanks in advance!
    Roc..

    @Adrian - I got your email regarding the code sample, here is a quick example of how to popup a dynamic selection for up to 5 tables...
    *& Report  ZRS_DYNAMIC
    REPORT  zrs_dynamic.
    * START Dynamic Range Selection Definitions
    * Definition of the selection_if variable, which is used to reference
    * the selections obtained
    DATA: gv_selid TYPE rsdynsel-selid.
    * Definition of the TABLES_TAB table for use in providing the list of
    * fields available for creating select options from
    DATA: gt_tables TYPE STANDARD TABLE OF rsdstabs.
    DATA: gs_tables TYPE rsdstabs.
    PARAMETERS: p_tab1 TYPE tabname DEFAULT 'KNA1',
                p_tab2 TYPE tabname DEFAULT 'KNB1',
                p_tab3 TYPE tabname DEFAULT 'KNC1',
                p_tab4 TYPE tabname DEFAULT 'KNVV',
                p_tab5 TYPE tabname DEFAULT 'KNVP'.
    START-OF-SELECTION.
      gs_tables-prim_tab = p_tab1 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab2 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab3 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab4 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab5 .APPEND gs_tables TO gt_tables.
    * Definition of Table which includes the select-option range for field
      TYPES: ty_selopt_t TYPE  rsdsselopt OCCURS 10.
    * Definition of field name and select option range table
      TYPES: BEGIN OF ty_frange,
               fieldname TYPE rsdstabs-prim_fname,
               selopt_t TYPE ty_selopt_t,
             END OF ty_frange.
      TYPES: ty_frange_t TYPE ty_frange OCCURS 10.
      TYPES: BEGIN OF ty_range,
               tablename LIKE rsdstabs-prim_tab,
               frange_t TYPE ty_frange_t,
             END OF ty_range.
      TYPES: ty_range_t TYPE STANDARD TABLE OF ty_range.
      DATA: it_ranges TYPE ty_range_t.
    * work areas
      DATA: gs_ranges TYPE ty_range.
      DATA: gs_frange TYPE ty_frange.
      DATA: gs_selopt TYPE rsdsselopt.
      DATA: gt_ranges TYPE ty_range_t.
      DATA: gt_frange TYPE ty_frange_t.
      DATA: gt_selopt TYPE ty_selopt_t.
    * Definition of the fields list avaiable
      TYPES: ty_fields TYPE STANDARD TABLE OF rsdsfields.
      DATA: it_fields TYPE ty_fields.
      DATA: gs_fields TYPE rsdsfields.
    * END Dynamic Range Selection --------------------------------------------
      CALL FUNCTION 'FREE_SELECTIONS_INIT'
        EXPORTING
          kind         = 'T'
        IMPORTING
          selection_id = gv_selid
        TABLES
          tables_tab   = gt_tables.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
        EXPORTING
          selection_id    = gv_selid
          title           = 'Select WHERE criteria for Rule'(s12)
          as_window       = 'X'
          start_row       = 7
          start_col       = 10
        IMPORTING
          field_ranges    = it_ranges
        TABLES
          fields_tab      = it_fields
        EXCEPTIONS
          internal_error  = 1
          no_action       = 2
          selid_not_found = 3
          illegal_status  = 4
          OTHERS          = 5.
    Edited by: Rocco Scocco on Jun 17, 2010 3:48 PM
    Edited by: Rocco Scocco on Jun 17, 2010 3:49 PM

  • How to generate SIDs for a particular range of data for a DSO ?

    Hi All,
    Please let me know if there is any way to generate SIDs for a particular range of data for a DSO which does not have any SID values. I need this as when i am trying to load data from DSO to InfoCube it's taking a lot of time. When i tried to find the reason behind it, i came to know that most of the time is going in SID creation for the data which is getting loaded. Please share some solution for the same. Thanks...

    Hi,
    Try this.
    Create an internal table and populated it with the values present in the F4 help of the field. Then in AT SELECTION-SCREEN event check the value of the field with the values in the internal table and display the appropriate message.
    Sharin.

  • Reading a range of data using Storage vi

    Hello,
    My data file is in TDM format and is about 300 MB in size. I want to know if it is possible to use the "Storage" Vi to read in only a range of the data at a time (or be able to just select a range to read)?
    Thanks
    Lancer

    Hi Lancer,
    As far as I know, you can only read the full length of the selected data in the TDM file.
    Does anyone have a solution for Lancer that doesn't read all the data from the TDM file into memory, but only the selected range?
    - Philip Courtois, Thinkbot Solutions

  • Select options range table to be passed to Assistance class

    Hi Guru's,
    I have an assistance class where I have to write all my select queries. I have a selection screen with multiple Select options (as input fields). Now I want to pass the select options range table to assistance class.
    Please let me know if you have any sample code for this which may also include building range tables for select options.
    Thanks,
    Pradeep

    Hi Pardeep,
    U can use following code: for field ERDAT
    data: rt_ERDAT      type ref to data,
            R_ERDAT       TYPE RANGE OF VIQMEL-ERDAT,
            R_ERDAT_line  LIKE LINE OF R_ERDAT,
    field-symbols: <fs_ERDAT> type table.
    Retrieve the data from the select option
      rt_ERDAT = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'ERDAT' ).
    Assign it to a field symbol
      assign rt_ERDAT->* to <fs_ERDAT>.
    copy field symbols to local variable
      R_ERDAT = <fs_ERDAT>.
    CALL METHOD WD_ASSIST->"METHOD_NAME"
          R_ERDAT        = R_ERDAT
    where in class method:
    R_ERDAT     Importing     Type     ZU5QNM_ERDAT_T
    ZU5QNM_ERDAT_T : is a table type of ZU5QNM_ERDAT_R
    and ZU5QNM_ERDAT_R has following structure :
    SIGN     ACE_SIGN     CHAR     1     0     Debit/Credit Sign (+/-)
    OPTION     ACE_OPTION     CHAR     2     0     Option for Ranges Tables
    LOW     ERDAT     DATS     8     0     Date on Which Record Was Created
    HIGH     ERDAT     DATS     8     0     Date on Which Record Was Created
    I hope this wiol solve ur problem.
    Regards,
    Vishal.

Maybe you are looking for