Plotting data from sequence structures.

Hi all,
I have a program that contains two pages in a sequence structure. On each page, I am generating data and I would like to plot this data in real-time on an XY graph. I understand that once I've executed Page 0 in the sequence structure, I cannot go back to this page. As such, once this page has finished executed I would need to pass the data to the next page. However, I would like to plot both datasets on *one* XY graph. Is this possible? I've tried putting the graph outside the sequence structure, but the data is not allowed to pass to graph until the page is executed (so it is not real-time plotting). I've included the VI I've been working on.
Attachments:
appendgraphs.vi ‏30 KB

Hi,
if you really want to use sequence, you can use a local variable of the graph to add points on the second frame, see modified.vi.
Anyway you can get the same functionality without sequence, see optimized.vi.
Good luck,
Alberto
Attachments:
modified.vi ‏33 KB
optimized.vi ‏27 KB

Similar Messages

  • How to extract data from a structure?(Data Dictionary)

    Hi all,
           This is regarding extracting data from a structure.
    For Eg:if we want to extract data from a structure ADDR1_DATA,How will we do that in report programming?Structures on its own has no existence unless it s attached to a database table or view.when am using 'Where used List' on that structure also I am not getting any database tables or views.What can I do about this?
    Thanking you,
    anjaly

    HI Anjaly,
    as you said structure does not have any value .. unless something is added to it..
    So just use the structure to define the type of the sttructure you want..
    Or to include it in your itab like..
    data : Begin of itab occurs 0.
           include structure ADDR1_DATA.
    data  i type i.
           end of itab.
    you cannot directly extract data from the  structure ADDR1_DATA..
    regards
    satesh

  • How to extract  data from a structure?

    I want to get the data KWERT from structure KOMV.
    is there a way to do this? thanks..

    Hello,
    U can't get data from the structure.
    Find out the dataelement of the field KWERT and search for where used list.It will list number of tables from which u can find out the table from which can fetch the data of the field KWERT.
    Don't forget to award points.#
    Regards,
    Vasanth

  • How do i get data from a structure using join?

    hi,
    what is the actual use of a structure.?
    my problem is :
    KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
    get data from a structure using join?

    structure temporarily holds  any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
    a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join 
    search the transparent table in which same field are present and  use it in join.
    A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
    If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
    Edited by: suja thomas on Feb 11, 2008 6:24 AM
    Edited by: suja thomas on Feb 11, 2008 6:31 AM

  • Get the data from a structure not a transparent table

    Hello masters, does anyone knows how to retrieve data from a structure?

    Structures do not contain data, they are mearly a way to describe it and are usually used in screen programming to collect data into which come from transparent tables.  For example, lets say you have data from two tables that need to be displayed on a screen, the data is related, so a good programming practice is to use a structure either described internally in the program, or in the ABAP dictionary.  Then in the program, you retrieve the data from the transpart tables and move the data to the structure fields, these structure fields are then defined within the screen. 
    Anyway, when you do F1 help on a field in a screen, and it is says that it is part of a structure, then this is becasue the structure is being used to group these fields into a common container when doing the screen programming, so it is a little trickier to find where the data is coming from, but not impossible.  One way is to use the ST05 to do a SQL trace on the program, this will tell you the tables being hit, and you can find the data that way.  Another way, is to debug the program, and see where the data is coming from.
    Regards,
    Rich Heilman

  • Extracting data from a Structure in R/3.

    Hi,
    This is in continuation to one of my previous questions.
    I found that for a standard report  "S_ALR_87012347"  for FI GL in R/3, the values are taken from a structure "FAGL_S_RFBPET00_LIST2".
    I have used 0FIGL_O02 DSO and 0FI_GL_3 Datasource. The problem is I do not get proper values for G/L Account where the account type is either K (Vendor) or D (Customer). Instead of showing the Vendor/Customer Number here the report shows the G/L account number which is quite obvious. But if we see in the R/3 report (mentioned above), the account number field shows the Vendor/Customer Number if the Account Type is either K or D.
    My question is: can I directly extract data from the Structure FAGL_S_RFBPET00_LIST2?
    If yes, then how...???
    Thanks...!

    Structure does not contains any data. You have to write code (Function module) to populate the data for structure fields.

  • Get the data from the structure OR View

    Hi All,
    how wud i take data from the structure OR View? when i m writing the select query then its saying that its not defind in data dictionary.
    I hav the requirement to develop a report for PM module..
    in that i hav all structure like AFVGD,CAUFVD,PMCOEA...
    Plz tel me how to write a select quary for this...

    Hi,
    You cannot select data from a structure.
    A structure / work area contains data only at the run-time.
    You can select data from views and tables.
    The data you need to select will be in Database tables. All you need to do
    is to find those table and select from there.
    Let me know if you need further help.
    Regards,
    Rajat

  • Error Extracting data from a STRUCTURE in SELECT statement

    Hi,
    I have an SAP defined structure BIW_KNA1_S which has been enhanced with 2 fields (ZZS1 and ZZS2). I need to populate these 2 fields with data from the 2 SORT fields from ADRC table.
    I tried the following code but i do not get any output. This piece of code is in a FORM statement from which i should return contents of table ITAB in the foll. code.
    DATA ZS TYPE TABLE OF ADRC WITH HEADER LINE.
    DATA ITAB LIKE TABLE OF BIW_KNA1_S WITH HEADER LINE.
    FIELD-SYMBOLS: <FS> LIKE ITAB.
    SELECT SORT1 SORT2 FROM ADRC INTO CORRESPONDING FIELDS OF TABLE
    ZS WHERE ADDRNUMBER IS NOT NULL.
    LOOP AT ITAB ASSIGNING <FS>.
    IF ZS-ADDRNUMBER IS NOT INITIAL.
      <FS>-ZZS1 = ZS-SORT1.
      <FS>-ZZS2 = ZS-SORT2.
    ENDIF.
    ENDLOOP.
    Since i did not get any output, I then added the foll. line of code before the LOOP statement.
    SELECT * FROM BIW_KNA1_S INTO CORRESPONDING FIELDS OF TABLE ITAB
    WHERE KUNNR IS NOT NULL.
    When i execute this, i get the foll. error.
    "BIW_KNA1_S is not defined in the ABAP dictionary as table, projection view or database view."
    How to extract data from a structure BIW_KNA1_S using a SELECT statement.
    Could someone help.
    Thanks

    Hi Roberto,
    Ok. Let me explain my requirement more clearly. I don't want to write the code in include ZXRSAU02. In ZXRSAU02, i will have only PERFORM statement which will call the FORM statement depending on the name of the program.
    Ex: PERFORM form_name ...tables i_t_data.
    In this way, i don't need to make any changes in this file. I will only need to make the changes in the report where my Actual FORM code resides. In the ABAP report, i will have my FORM code which will return contents.
    And this is the code which my FORM report will consist:
    DATA ZS TYPE TABLE OF ADRC WITH HEADER LINE.
    DATA ITAB LIKE BIW_KNA1_S OCCURS 10 WITH HEADER LINE.
    FIELD-SYMBOLS: <FS> LIKE ITAB.
    SELECT SORT1 SORT2 FROM ADRC INTO CORRESPONDING FIELDS OF TABLE ZS WHERE ADDRNUMBER IS NOT NULL.
    LOOP AT ITAB ASSIGNING <FS>.
    IF ZS-ADDRNUMBER IS NOT INITIAL.
      <FS>-ZZS1 = ZS-SORT1.
      <FS>-ZZS2 = ZS-SORT2.
    ENDIF.
    ENDLOOP.
    But as you said, i will have some problems i suppose. Like if my ADRC has some 70 records and if there are 100 records in BIW_KNA1_S, then when i try to copy the fields from ADRC into ITAB (BIW_KNA1_S) i might have problems. I will get back to you once i clarify these things.
    Thanks for your reply.

  • CALL function to extract data from a structure table

    Hi Gurus,
    Anyone knows how to write a call function to extract data from a structure table?
    Your help is very much appreciated.
    Thanks alot.

    Hi,
    structure doesnot hold any data. instead of it you can check the stucture in which table it is used, find the table name,use select query to extract the data u needed.
    you can use where used list option to find the structure in which table it is used.
    regards
    siva

  • How to get data from  INVFO structure

    Hi Guys,
                Can anybody tell me How to get the Data from INVFO structure for field WRBTR and i am also down loading from BSEG WRBTR field. so i have to display these 2 fileds in the Final Ouput of ALV grid. so can anybody tell me how to download INVFO-WRBTR value?
    Thanks,
    Gopi.

    Hi Gopi,
    INVFO is a structure of BSEG and other tables.
    You can get the WRBTR from BSEG table not from INVFO structure.
    Regards,
    Atish

  • How to read data from INVFO structure

    Hi Guys,
                Can anybody tell me how to get the Data from INVFO structure for field ZUONR as I have to assign it into  from BSEG-ZUONR field. using FI Assignment technique. so can anybody tell me any table where INVOF-ZUONR are stored in FV60 transaction?
    Thanks & Regards,
    Ashish

    Hi Ashish,
    I'm not clear with your query, however if you are looking for a table, where Assignment field for Park document is stored, you can use Table VBSEGK - Document Segment for Vendor Document Parking.
    Just park one doucment with FV60, and than go to SE16N give table VBSEGK, and pass this doucment number and company code to table VSEGK, or your assignment vlue in ZUONR fied.
    You will see your documents there.
    VSEGK-ZUONR
    Regards
    Javed

  • How extract data from case structure

    Hi all, I would like to extract the data from case structure, it's circled in red in the attached file. How should I do it? Thanks for taking your time to look at my post. Your help is greatly appreciated.
    Attachments:
    bp.jpg ‏161 KB

    Thank you guys for your prompt reply.
    As u can see from the vi, there's an error, I need the values in the circled area to be passed on to the block ( Bundled by name)
    Thanks !
    Attachments:
    fyp_bp_only.vi ‏90 KB
    fyp_bp_only.vi ‏90 KB

  • How to Fetch the Data from Screen(Structure) Leval

    Hi,
    In HR I have to retrive some fields from Screen leval ..Ex.Q0002..genaraly we are able to retrive the
    data from PA0002.
    in this Scenari how can i fetch data from Q0002.
    Thanks in Advance

    you can check the below code for this .
    DATA: BEGIN OF DYNP_VALUES OCCURS 10.
            INCLUDE STRUCTURE DYNPREAD.
    DATA: END   OF DYNP_VALUES.
    DATA : HELP_val TYPE Pxxxx-abcde.
      REFRESH DYNP_VALUES.
      DYNP_VALUES-FIELDNAME = 'PXXXX-ABCDE'.
      APPEND DYNP_VALUES.
    * read screen values
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
               DYNAME     = SY-REPID                        
               DYNUMB     = SY-DYNNR                        
           TABLES
                DYNPFIELDS = DYNP_VALUES
           EXCEPTIONS
                OTHERS     = 1.
    IF SY-SUBRC EQ 0.
    SORT DYNP_VALUES BY FIELDNAME.
        READ TABLE DYNP_VALUES WITH KEY 'PXXXX-ABCDE' BINARY SEARCH.
        IF SY-SUBRC EQ 0.
          HELP_VAL = DYNP_VALUES-FIELDVALUE.
        ENDIF.
    ENDIF.
    just check if this code is working for u .
    br,
    vijay.

  • Plotting data from two instrument​s at different rates

    Hi,
    I have a VI that reads temperature from a multimeter using VISA and acquires image from a IR camera via IMAQ. Each acquisition process takes place in an independent while loop; each with its own frequency. From the IR image I get a pixel value which is converted to temperature.
    My problem comes when I try to plot both signals (temperature from the multimeter and from the pixel in the IR image)in one chart. Just merging signals doesn´t work. I have embedded the multimeter section in the "while" loop corresponding to the image acquisition. This works, but speed is limited by the multimeter, which is very slow (approx. 1.5 Hz)
    I would like something like this: if I get 50 images and 1 multimeter reading
    in a certain period of time, set up some kind of buffer so that the 50 values from the camera are plotted as well as the one from the multimeter reading repeated 50 times. I´ve tried resampling but to no result.
    Sorry if something is not quite clear, please tell me if I should be more specific. Thanks in advance for your help
    Alberto Foronda

    Try putting the data from each souce into a waveform (see the waveform pallete). Make sure you write the t0 of the waveform. Do this for each reading, and then build an array of these waveforms and then present this to your chart.
    THe Chart will use the t0 of your vaeform to plot your data. It will not matter that the time are different, that chart will figure that part out. If you have data from your camera but no new reading from your multimeter, just make sure the waveform for the multimeter has an empty "Y" array. This will plot the camera data but it will leave the multimeter trace alone.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Retreive data from wa structure into fields.

    Hi friends,
                I am having a query regarding classical report.I want to retreive data for vendor billwise realisation report.I am getting few fields into my list screen(fields from bsis table).Remaining fields i want to retreive from table bseg(augdt,augbl....)with the condition that the belnr of both the tables should be same and Account type = 'k'(vendors).
    I tried it using select queries for the bsis and bseg..but data is retreived only from one table bsis and not from bseg.so for data from bseg i used workarea(wa).data is retreived for only single doc no. and not for other documents.
       If any problem in understanding this pls give me the mail id i will send in detail.
    Thanks and regards,     
    Anand.

    Hi Anand,
    You should not use Workarea, if you are exepecting N number of records. Please use internal table.
    SELECT * FROM BSIS
        into table i_bsis
         where ....
    if not i_bsis[] is initial.
    sort i_bsis by belnr.
    SELECT * FROM BSEG
    into table i_bseg
    for all entries in i_bsis
    where belnr = i_bsis-belnr.
    endif.
    Best regards,
    Prashant

Maybe you are looking for