How to exchange data between loops?

why can't I exchange data between loops? it is esiest explained by looking at the attached example......... hope you can help me out!

Falkpl covered all bases for parallel loops that both run at the same time. This was probably the spirit of the original question even without seeing the diagram.
Steve.Briggs wrote:
The easiest way to exchange data between loops is to simply wire the data going in. 
A wire creates a data dependency between the two loops. Dataflow dictates that a diagram object will (1) start executing once all inputs contain data and (2) will only produce data on the outputs once the entire object has finished.
This means in practical terms that if there is a wire going from loop A (output tunnel) to loop B (input tunnel), Loop B must wait until loop A has finished. If you have wires going from loop A to B AND back from loop B to A you create a deadlock and broken code. You cannot "exchange" data between two parallel loops using wires.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to exchange data between two web application (servlet)

    Hello, all,
    I have two servlets: SerlvetA and ServletB, they are deployed as web appA and appB in the same web container(tomcat)
    How ServletA exchange data with ServletB?
    I have tried follow methods:
    1) appA and appB could not share HttpSession, so I could not transfer data through session
    2) I write a new sigleton java class called AppBroker, servletA get AppBroker's instance, and set some data into the it. ServletB could not get the same instance of the AppBroker, because the appA and appB use different class loader.
    tell me how to?

    thanks reply, but
    1. static class can not solve the problem, it is same
    as my sigleton class method, as different web app use
    different class loaderhmm... at least in tomcat this seems not be true since i can use static classes in one webapp that are available in another web app on the same host/servlet runner.
    Maybe if you build your own classloader than the "scope" of the static class is limited to that classloader (for my understanding this shouldn't be the case since i think it depends on the instance of the jvm and not of the classloader..?!).
    2. rmi and object serialization are too expensive!
    I am working on how to use jndi to solve this problem.
    And I think this maybe a Sevlet specification's
    shortcoming: maybe a Local Method as EJB local
    interface need been introduced into servlet spec.
    could you suggestion other methods?none at the moment. i guess the basic methods are listed.
    Maybe there's just one left, a really ugly one. Depending on what kind of data and how often you have to exchange you could think of building a file-based queue, i.e. a dir where you drop files in an read out from the other web app (maybe based on a file/directory listener). But this would only be an appropriate way to go for kind of email and messaging systems i guess...

  • How to exchange data between the html in the form layout and itsparameters?

    i am trying to rephrase a question i asked a few days back and which yielded no response.
    is there any way to exchange/transfer values or data between the html in the form layout editor and the form parameters?
    for instance, is there any bridge such that the form template design (controlled by some html-based attribute), or the display property (again managed by some string value for the style:display attribute) of some of its divisions etc could be controlled by the values passed to some parameters of a portal form?
    has any body ever tried to do it or thought of doing it? or it's inherrently beyond the portal forms capacity?
    folks, any clues or hints on 'yes, that's how' or 'no, and that's why not!' please? will greatly appreciate.
    Naqvi

    i am trying to rephrase a question i asked a few days back and which yielded no response.
    is there any way to exchange/transfer values or data between the html in the form layout editor and the form parameters?
    for instance, is there any bridge such that the form template design (controlled by some html-based attribute), or the display property (again managed by some string value for the style:display attribute) of some of its divisions etc could be controlled by the values passed to some parameters of a portal form?
    has any body ever tried to do it or thought of doing it? or it's inherrently beyond the portal forms capacity?
    folks, any clues or hints on 'yes, that's how' or 'no, and that's why not!' please? will greatly appreciate.
    Naqvi

  • How to exchange data between wda program and abap program?

    Dear guru,
    the situation is:
    we have a abap program , which uses
      CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
        EXPORTING
        PROTOCOL                  =
        INTERNALMODE              = 'X'
        SMARTCLIENT               =
          application               = 'YHREFM_WD_APPROVE2'
        CONTAINER_NAME            =
          PARAMETERS                = lt_parameters
        SUPPRESS_OUTPUT           =
      IMPORTING
        OUT_URL                   =
      CHANGING
        VIEWER                    =
        EXCEPTIONS
          invalid_application       = 1
          browser_not_started       = 2
          action_cancelled          = 3
          OTHERS                    = 4
    to call a wda application inside sapgui, and  we want to get data return by the wda application in the program.
    we tried to use EXPORT/IMPORT  TO/FROM MEMORY, but failed.
    could you please tell me how to do that?
    br
    zj

    For integration between SAPGUI and WDA, the only supported solution is to have two iViews within the same portal page.  As mentioned in the linked thread, this function module is not released for customer usage.  You could setup a parameter transaction around WDYID and launch the WDA application from a SAPGUI transaction.
    For communicaiton of data, I wouldn't suggest anything that relies on memory communication.  In a multiple application server envinroment, there is no way to know if the two sessions will be on the same application server due to load balancing.  Therefore you should fall back to communications at the database level. Write data into a temporary database table. Consider using Server Cookies.

  • How to exchanging data between SAP and P3?

    could use BAPI directly between SAP and P3? And if we use XI as middleware, which protocols or methods should we use?
    any answer should be appreciated.

    Hi,
    U havent mentioned what exactly ur P3 system is.
    Considering it to be Primavera P3 system, the integration could not be done directly using a BAPI since the structure of Projects (as well as the rules to define the projects) are different in SAP and Primavera P3.
    Thats y XI is required. U have to use Idoc/RFC interfaces. Have a look about what Primavera wants to say about this integration
    http://www.primavera.com/newsroom/primavera_sap_051007.asp
    Regards,
    Prateek

  • Best way to transfer data between loops?

    Hi, whats the best way to transfer data between loops(state machines, regular while loop etc) in labview. For so many years ive been using local variables but these can cause race conditions. Anyone advise?
    Stu

    It depends one the structure of the loops and how they need to exchange data (unidirectional, bidirectional, broadcasting).
    The simple case of one loop passing data to the other loop: producer/consumer design pattern using a queue
    If the structure already contains an event structure: User Events
    The way I code is documented in my community nugget on events
    I often mix this with producer/consumer.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

  • How to pass data between two internal sessions using ABAP memory?

    Hi,
    How to pass data between two internal sessions using ABAP memory?
    It would be fine if you could explain with an example.
    And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
    Thanks.

    Hi ,
      check the example.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
    PROGRAM SAPMZTS1.
    DATA TEXT1(10) VALUE 'Exporting'.
    DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    DO 5 TIMES.
      ITAB-BOOKID = 100 + SY-INDEX.
      APPEND ITAB.
    ENDDO.
    EXPORT TEXT1
           TEXT2 FROM 'Literal'
      TO MEMORY ID 'text'.
    EXPORT ITAB
      TO MEMORY ID 'table'.
    SUBMIT SAPMZTS2 AND RETURN.
    SUBMIT SAPMZTS3.
    The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
    Example for SAPMZTS2:
    PROGRAM SAPMZTS2.
    DATA: TEXT1(10),
          TEXT3 LIKE TEXT1 VALUE 'Initial'.
    IMPORT TEXT3 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT3.
    IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT1.
    Example for SAPMZTS3:
    PROGRAM SAPMZTS3.
    DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
    LOOP AT JTAB.
      WRITE / JTAB-BOOKID.
    ENDLOOP.
    The output is displayed on two successive screens. It looks like this:
    and
    The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
    The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
    Pls. reward if useful.....

  • SAP threading-how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Passing Data Between Programs
    [http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9df735c111d1829f0000e829fbfe/frameset.htm]

  • How to sinck data between  production and R12 instance

    Hi,
    I am working on Oracle Apps up-gradation project.
    Now I have upgrade 11.5.7 to R12 (12.0.4) successfully. I started up-gradation task with 1 May of production data (backup) on new machine.
    Client wants to live R12 from 1/August/2009.
    Please suggest how to sinck data between production and R12 instance.
    Thanks
    Anup

    Hi,
    It is not possible to do what you propose (sync data from an 11.5.7 system to a 12.0.4 system). You will need to re-run the upgrade against the August 1 data, following your original upgrade procedures.
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • Best way to transfer single point data between loops on FPGA

    Hi,
        I used quite number of loops on FPGA and need to transfer single point datas between loops. Only the current value of data is needed so buffer is not necessary. I don't want use target scope FIFO since it require minimum 21 elements and I only need the current value. Is there other way other than local variables?
        Thanks for help!
        Regards,
       Tom

    Hi Godel,
    Since this discussion thread is over 3 years old, it would be better to start a new thread with your specific questions to get quicker help.
    I did a bit of research on your question, and found this helpful White Paper (http://www.ni.com/white-paper/7727/en/) that discusses the resources used for components in LV FPGA code. For local variables (although it depends on hardware), it looks like it uses Flip-flops and LUTs.
    As for using local variables with different clock rates, I found this KnowledgeBase article that might help shed some light on your question - some issues can arise from using them with more than one clock rate (http://digital.ni.com/public.nsf/allkb/C683585460E88508862570D1006B7434)
    Hope this helps! Again, if you have follow-up questions, I would definitely recommend creating a new thread
    Xavier
    Applications Engineering Specialist
    National Instruments

  • How to Reconcile Data Between SAP Source Systems and SAP NetWeaver BI

    Hi,
    I just read "How to Reconcile Data Between SAP Source Systems and SAP NetWeaver BI".  While I'm waiting for  more authorisation to r/3 to carry it out and test this functionality.
    I'd like to ask a question to anyone who has implemented this type solution.  On page 10 it talks about creating a view then setting up the datasource. The solution talks about runnig a query.  I suspect when we run a query I would run it for only a period(using variable) to reconcile.
    My question is this.  Will the datasource extractor on /r3 only select the period in our variable or will it do a full selection of the data which would then be passed to BW for filtering?
    Regards

    DEar Mark,
    There are several avenues where you can see and reconcile your data with source system, u can see data in by tcode RSA3 for a datasource, and compare the values with actual document posted into the R/3 system. Respective fuctional consultant canhelp you a lot to confirm the data.
    On BW side u can see the data in PSA and then check tranformations which subsequent change/update/reject data records based on the selective conditions.
    hope this helps.
    Kindly assign the points if it works.
    Revert back if u need futher help/information.

  • How to separate data between two colons

    Hi,
    how to separate data between two colons?
    ex: 'ABC:1234:1-ss-2:0:0:0:0-DEF:5678:0:0:0:0'
    how to access these 1234, 5678 and 1-ss-2 ?
    there may be any string.
    please help

    Hi,
    The string 'ABC:1234:1-ss-2:0:0:0:0-DEF:5678:0:0:0:0' contains 11 colons, and 10 sub-strings that are between colons. How do you distinguish the ones you want,
    (1) 1234
    (7) 5678
    (2) 1-ss-2
    from the ones you don't want
    (3) 0
    (4) 0
    (5) 0
    (6) 0-DEF
    (8) 0
    (9) 0
    (10) 0
    Anyhow, in Oracle 10 (and up) you can easily get the n-th item from a :-delimited list by saying:
    REGEXP_SUBSTR ( txt
                  , '[^:]+
                  , 1
                  , n
                  )First use REGEXP_REPLACE to remove anything before the first colon and anything after the last one.

  • How to Exchange Data and Events between LabVIEW Executable​s

    I am having some trouble determining how to design multiple programs that can exchange data or events between each other when compiled into separate executables. I will layout the design scenario:
    I have two VIs, one called Status and the other Graph.  The Status VI displays the serial number and status of each DUT being tested (>50 devices).  The Status VI has one timed loop along with a while loop that contains an event structure.  If the user clicks on the DUT Status Cluster the event structure needs to pass the serial number to the Graph VI.  The Graph VI when called fetches the records for the DUT based on the Serial Number and time frame.  This VI is a producer/consumer so the user can change the time frame of the records to display onto the front panel graph.
    I have a couple reasons the VIs need to be separated into independent applications. One being the underlying database fetches tends to slow the threads down between the two VIs; the other is that they may be distributed into separate systems (don't consider this in the design criteria).
    I have been researching the available methods to pass the serial number to the Graph VI.  My initial idea was to us a command line argument, but this does not allow the Status VI to pass another Serial Number to the Graph once it has started (I do not want to allow the user to execute multiple Graph applications because the database query can load down the server).
    Is there a program method that I can implement between the two VIs that will allow me to compile them as two executables, and allow the Status program the repeatedly send an updated serial number event to the Graphs program.
    I have reviewed many methods; Pipes (oglib_pipe), Action Engine, and Shared Variable.  I am not sure which method will give me the ability to use a Event driven structure to inform the Graphs program when to update the serial number.  Any suggestions and tutorials or examples would be greatly appreciated.

    I have used the Action Engine (aka: functional global) approach for many years and it works well. Something to think about is that if you make the event's datatype a variant the only code that will need to know the actual structure of the event will be the function that needs to respond to it. Hence, a single event can service multiple functions.
    Simply create a cluster containing an enum typedef that is a list of the functions that the event will service, and a variant that will be the function event data. From anywhere in the code you can fire the event (via the functional global) by selecting the function from the enum and converting function specific data to a variant. On the receiving end the event handler uses the enum to determine the function that is to get the data and sends the variant to it. The event handler doesn't know or care what the actual event data is so you could in theory add new functions without modifying the event handler.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to transfer data between a multi-thread dll build with LV7 and MS C++, using envent programing method.

    It is easy to transfer data between a simple input/output dll build with LV and an external code like C++, but when data are available inside a loop running in the dll(in fact thread running in LV); How can I read them or receive an handle pointer to the calling C++ application when new data are ready.

    If you're using LabVIEW 7, you can use the PostLVUserEvent function to fire an event for an event structure in LV. Refer to the Using External Code in LV manual.
    Or you could use datasocket for this. The datasocket activex dll is nids.dll. You could have the class wizard generate wrappers for you or if you have Measurement Studio, you could use the custom wrappers it provides to communicate between the VI and dll.
    I hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

Maybe you are looking for

  • Windows server 2008 R2 Standard Edition

    Dear Team, I am having server 2008 R2 standard edition. The Server is getting shut down and showing error in event viewer "Windows Kernel event ID 41 error "The system has rebooted without cleanly shutting down first" Please reply on this asap to res

  • Since new update - Adobe Media Encoder and CUDA not working

    CUDA not launching - Premier CC says that only software will work. Media encoder crashes on launch. Re-installed both. Nvidia 670 GTX

  • Create API append in the transaction COMM_ATTRSET

    Hi Friends, We have implemented the Note <b>602673</b> to Download R/3 ERP Material Sales Status MVKE-VMSTD to CRM. We have overlooked the point in the Note where it is mentioned that the check box <b>Create API append</b> should be checked while inc

  • Expand for More Details

    On a page of my website built in Flash and uploaded as DW .html, I have 6 text items listed. I would like the viewer to be able to "Read More" about the particular item. What is the easiest but effective way for me to accomplish this task?  I have lo

  • IPhone 4 freezes and will not restart or restore using iTunes.

    iPhone 4 freezes and will not restart and cannot be restored using iTunes (unknown error 1602). My daughter's iPhone 4 did the same thing 10 days ago. Is this a software glitch? I replaced her phone, but I'm ready to switch to Android.