Hao to display two lines in one Graph

Hi, I want to display two lines in one graph in different color , what should I do? Thanks.

Hello Carlos,
the help window for a waveform graph/chart only mentions "single plot
with waveform datatype". To get more plots on one graph you have to
build an 2D-array  of  points. Just look at the help window!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Display two lines under one column in ALV

    Hello Friends,
    I have a situation... i need to display two or three lines under single column in ALV report.
    example:
    col1               col2           col3                col4
    AAA               10            456.78             TEST PURPOSE HBDFJEHBEJBE EBDF B EFH
                                                                 EDEHFKHEKFHEKJCFEKJFHKEJHFKEHFEFJK
                                                                 DJFHGCGD
    AAA               20            121.78             TEST PURPOSE HBDFJEHBEJBE EBDF B EFH
    BBB               10            11.78               TEST PURPOSE HBDFJEHBEJBE EBDF B EFH EJ
                                                                 EFKBEJF KEFHEKJFHEJ KFEHKE HFKEH
                                                                 MEFBHEJFB EFBEJ EFGJEGF JEGFEGEKJE KEFHK
                                                                 EFKEFEKLKL
    Anyone has idea?
    Thanks in advance
    Regards
    Raghu

    Hi,
      You can do this by doing some additional coding..
    Ex..
    **  Let's assume you are using the internal table t_output for displaying the ALV...
    **  and t_final contains the data..t_text which contains the multiple lines texts...for the
    ** column col4...
         DATA: s_output LIKE LINE OF t_output.
         DATA: v_flag      TYPE xfeld.
         LOOP AT t_final INTO s_final.
    * Clear the work areas.
            CLEAR: v_flag,
                         s_output.
    * Move all the data.
           MOVE ls_final TO s_output.
            LOOP AT t_text WHERE col1 = s_final-col1.
    * First time move all the columns to the output internal table...for the rest of the records
    * just populate the col4..
                IF v_flag IS INITIAL.                     " For the first time.
                   s_output-col4 = t_text-text.         " Move the text.
                   APPEND s_output TO t_output.
                   v_flag = 'X'.
                ELSE.
                   clear s_output.
                   s_output-col4 = t_text-text.         " Move the text.
                   APPEND s_output TO t_output.
                ENDIF.
            ENDLOOP.
    * IF there is no text found just append the output internal table with blank col4.
            IF sy-subrc <> 0.
                   APPEND s_output TO t_output.
            ENDIF.
         ENDLOOP.
    Hope the example is clear...
    Thanks
    Naren

  • Display Two Report IN ONE

    hi Expert,
    how to display two report in one please help me .
    Regards,
    Hamad

    Hi,
    Refer the sample code:
    CLEAR w_event.
    w_event-name = slis_ev_top_of_page.
    w_event-form = 'TOP_OF_PAGE'.
    APPEND w_event TO i_events1.
    CLEAR w_event.
    w_event-name = slis_ev_top_of_page.
    w_event-form = 'XTOP_OF_PAGE'.
    APPEND w_event TO i_events2.
    DATA: lv_repid LIKE sy-repid.
    lv_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = lv_repid
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'PF_STATUS'.
    *-- Vendor Schedule List
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = i_field_cat1
    is_layout = w_lay_out1
    i_tabname = '<I_TABLE>'
    it_events = i_events1
    TABLES
    t_outtab =<b> <i_table>.</b>  Data for Report 1
    *-- Error Lsit display
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = i_field_cat2
    is_layout = w_lay_out2
    i_tabname ='I_ERROR' 
    it_events = i_events2
    TABLES
    t_outtab = <b>i_error[].</b> -  Data for report 2
    w_print-reserve_lines = 2.
    w_print-no_print_listinfos = c_x.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    is_print = w_print.
    ENDFORM. " f0504_create_list
    *-- Top of Page
    FORM top_of_page.
      WRITE: sy-title.
    ENDFORM.
          FORM xtop_of_page                                             *
    FORM xtop_of_page.
      WRITE: 'Error Records'.
    ENDFORM.
    Reward points if this Helps.
    Manish

  • How can I draw two matrixes in one graph???

    I have to draw two matrixes in one graph.
    Matrix size is 10 X 100, 10 X 100.
    Help me!
    Have a good day!

    You can do this by adding multiple plots to the graph's plots collection and then plotting each matrix on its own plot. The easiest way to add additinal plots to a graph's plots collection is to right-click on the graph in the dialog editor, click on Properties, click on the Plots tab, and then click the Add button to add additional plots.
    Now if you have a member variable for the graph in your dialog class (let's call it m_graph for this example), you could do this:
    // Plot the first matrix
    m_graph.Plots.Item(1).PlotXY(/* Your first 10x100 matrix data */);
    // Plot the second matrix on a different plot, but same graph
    m_graph.Plots.Item(2).PlotXY(/* Your second 10x100 matrix data */);
    - Elton

  • How display two-line descriptions in month view

    In the iCal version in Snow Leopard, it was possible to display a two-line description of an event in month view. Is there a way to do that in the version included with OS 10.9 and 10.10? The descriptions now are so truncated it can be hard to understand what they refer to. Also, the text of the descriptions in month view no longer is in the color of the calendar they are assigned to (except for all-day events). Instead, the descriptions are marked with tiny dots. This makes it much more difficult to distinguish between event types. Apple seems to be changing its apps for some misguided sense of aesthetics instead of emphasizing utility.

    I have the same question. One workaround is to copy an existing two-line event to the day that you want to create a new event. Then edit that to change it to the event name you want. This seems to work even though just typing a new name truncates it to one line.
    I hope someone can provide a more elegant solution.

  • How to display two waveforms in one waveform chart?

    hellow!anyone can tell me how to display two waveform together in one waveform chart? thanks!

    Hello,
    An easy way to tell how to make multi-plot charts and graphs is to hold your mouse over the chart/graph terminal on the block diagram and make sure Context Help (Help >> Show Context Help) is enabled. This screen will tell you how to connect the indicator for a multiple-plot display.
    You might want to take a look at my attached screenshots of a working multi-plot chart.
    Hope this helps!
    Liz F
    National Instruments
    Attachments:
    Multi-plot_chart.bmp ‏902 KB

  • How to display two-lines strings item

    Hi,
    How can I display list of two-line string items? Each Item in the list should have a phone number and a time. It should look similar to the "dialled numbers" display where each item has an image, and two-line string.
    Is it possible doing it with the high-level API or should I go low-level?
    Thanks in advance
    Imzadi

    use: list.setFitPolicy(Choice.TEXT_WRAP_ON)

  • Procurement tab in Sales order displays two line items per material

    Folks
    I am not a SD guy and i have a very basic question on how to read the details in the procurement tab for a sals order.
    In the Procurement tab of a Sales order, two line items per material are displayed as shown below. whats does this mean ?
    Further, I had observed the below differences in the below 2 lines
    1. Mat. Avail Date is 06/19/2007 for line 1 & 06/20/2007 in line 2.why r the dates different ?whats the significance?
    2. Confirmed qty is 0 line 1 & 1in line 2.( when does confirmation trigger or update ? Is it upon ATP check or upon delivery ?)
    3. Order qty is 1 line 1 & 0 in line 2.
    Item     Material     Plant     Confirmed Qty     SU     Mat. Avial Date     SL     Req. Type          Deliv. Date     ATP Qty     Loading dt     Route     Part. Deliv/ Item     Deliv priority     Desc                              
    10     NTE801NC     2400     0     EA     6/15/2007     CT          D     6/19/2007     0     6/15/2007     24GB03     C     98     Priority 98 (Normal)                              
                                    1     EA     6/15/2007     CT          D     6/20/2007                   6/15/2007                    Priority 98 (Normal)                              
    Thanks

    It means  2 schedule line for that materials ,
    06/19/2007  is the date on which material is requested by  customer  but there is not sufficient stock on that day so 0 quantity is confirmed for that day.
    On 06/20/2007 material is availabe and you can start delivery to customer on 06/20/2007 and system confirms the material for 20th and it is reserved for this sales order.
    Confirmation is based on your MAT ( Material availability date ), but you can revist these dates through by triggering availabilty check or Back order processing through GATP or ATP.
    Manish

  • Combine two channels on one graph

    I need to add a second channel, coming from same instrument, to the existing acq&graph Voltage VI (see attachment). I want to get two voltage curves on the same amplitude vs time graph. I configured the second channel and created a task, which also works on a that single channelled VI. Thanks a lot in advance
    Vitaliy
    Attachments:
    Acq&Graph Voltage-Int Clk.vi ‏57 KB

    I have two tasks for each channel. So Im trying to feed those two tasks through one loop and onto a graph. I do have a task named "ai cont multi" in NI-DAQmx Base Config Unility where I can choose two channels, but when I input this task into my VI, it doesn't recognize the resource which is weird cuz It does recognizes single channeled tasks that I created. I think Im missing something fundamental on the block diagram...

  • Two yaxis on one graph

    I bet this has been asked a million times before but the search function on this bloody website never works. To prove this I typed array in the search and I got no hits back!!
    I have 4 thermocouples two at 400degC and two at 20degC would like to display them on the same grapha nd have a left and right y axis. Can it be done
    nice

    Get the data into the graph first so that there are two plots. Then right click on a number on the Y scale and get the pop up menu. The options are in the menu.
    Message Edited by Odd_Modem on 03-03-2007 08:27 AM
    Attachments:
    2 y scales.jpg ‏57 KB

  • Linking property nodes to two cursors in one graph

    Hello,
    I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only 3 possibilities "All elements", "X", Y" which links only to one of the cursors (actually I don`t know which). How is possible to link 2 cursors`s position property nodes to 2 cursors in one graph?
     Thank you a lot for discussion.
    Martin Pekar
    Solved!
    Go to Solution.

    Also, if you have more than a few cursors, you can make the code more scalable by using an array of positions and a FOR loop as follows.
    Now the code automatically adapts th the number of cursors you actually have.
    (Of course all other common sense applies, for example only set this when the position changes. Don't write the same cursor postions with every iteration of the loop over and over. )
    Message Edited by altenbach on 05-06-2009 06:25 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MulticursorII.png ‏4 KB

  • Report Painter - Display two characteristics on one line in lead column

    I have a requirement to produce a Report Painter report to display values by Cost Centre and Cost Element.
    The requesting user wants to see the Cost Centre AND Cost Element keys displayed on each row of the report, to allow for manipulation in Excel.
    I have no problem grouping Cost Element within Cost Centre or vice-versa, but am not aware of any way of displaying both key values on each row in the lead column (or anywhere else).
    Has anybody done this?

    Hi Robin,
    the request is not unusual. However, report painter does not allow for two key columns or a key column combining two characteristics. You might consider using SAP Query (with table COEP or COSS/COSP for aggregates) if you do not want to resort to developing the report in ABAP.
    Regards
    Nikolas

  • Display two fields in one single cell in a BEx report.

    In a BEx 7 query, we need to display 'First name' and 'Last name' in one cell/column called "Name". The 'First name' and 'Last name' are two different info objects in the multiprovider on which the query is built. These are navigational attributes for Char - Employee. The entire flow is in 7.0 version.
    Any pointers to how this can be done in the query designer?
    Thanks.

    Hi,
    Follow the following steps:
    1. Create a Variable and in General Tab Set Processing By As Customer Exit.
    2. Now go to CMOD & Write the following code doing some custom changes specific to your requirement:
    WHEN "Variable Name"
    "Here you can write a code to select the value from Infocube table and Loop it in a work area"    
    Loop it_tab INTO wa
         concatenate S_date  s_tstmp into s_val_new separated by space.
          l_s_range-low = s_val_new.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    END LOOP
    Note: l_s_range is a structure and holds a single line whereas E_T_range stands for internal table and have multiple values . in customer exit (used for variable ) holds the derived value for the variable .
    You can go to query and there u can drag this Characteristic on which you created this custom exit variable

  • How to add two lines in one cell in smartforms

    Hi All,
    can anyone help me to implement the following format in smartforms?
    i have create one line type in table, one of the cell in the line type need to split two small line, the upper line is summary and the lower line still split into three small cell. how can i do?
    ?|????|___sum____|
    ?|????|aaa|bbb|cccc|
    Edited by: wei fang on Oct 21, 2008 2:19 PM

    Hi Wei Fang,
    You can try by creating a 2 line template (1 Template, 2 linetype) under a loop note.
    So your smartform tree structure will be shown like this:
    LOOP
        TEMPLATE1.
    On the LOOP part, pass the internal table of your data to the working areas.
    On the template put all the data of the summary on your first linetype, and put
    the detail data on your second linetype.
    Good luck and hopefully this will solve the problem
    Edited by: Prawira Fadjar on Oct 22, 2008 10:04 AM

  • Two plots on one graph....

    Hi
    I am running a project where I need to follow a plot on a graph. Currently both the plots are being plotted on the graph at the same time (i am using a waveform chart) so it is hard to follow as I have to anticipate where it will be next.What i would like to do is have the plot I want to follow already displayed on the graph and then as I run the VI the new plot is written in real time.
    Is this possible?

    Here's what I had in mind (LabVIEW 8.2)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IncrementalPlots.vi ‏14 KB

Maybe you are looking for

  • I HAVE been hacked and now I am unsure

    I am dealing with an internet stalker who was successful hacking into my mac because file sharing was checked off. I was unaware that I had to actually go in and secure this system. I switched from a PC to a mac last fall and was completely clueless,

  • Make code more dynamic

    Hi guys, My questions is about  my code I have this: DATA: MOVI(4) TYPE C,       DATOS(11) TYPE C. TYPES: BEGIN OF S_DATOS,           R01(7) TYPE C,           R30(5) TYPE N,          R22 TYPE I,       END OF S_DATOS. DATA: T_DATOS TYPE STANDARD TABLE

  • How to get sponsorship from Apple?

    Does anyone know how to submit the sponsorship proposal to Apple?

  • Enabling GZIP compression on the HTTPBC or a suggested alternative approach

    Hi, I posted this on the openusb-users group, but I haven't come up with a good solution yet. Any takers? Thanks, Rob http://openesb-users.794670.n2.nabble.com/gzip-compression-support-in-HTTP-BC-tp5366301.html Does anybody know whether the HTTP BC s

  • Repository variable syntax

    What is the syntax for calling a rep variable in Answers? Using the "@{<variable_name>}" format described in the Answers documentation, I am unable to display the values of Repository Variabes (like "CURRENT_QTR") on reports.