How to instantiat​e a subvi multiple times parallely?

Hi,
I am developing an application which uses a set of input controls for performing a task. I have given eight such sets of these controls in the main vi. However, I want to provide user an option to add more sets if required by invoking a subvi (which will have one such set of control) and likewise invoking the same subvi to have few more sets (as windows of one set each).
The important things here to be noted are:
User should be able to invoke multiple instances of the same subvi parallely using the same menu item in the main vi(say).
User should be able to transfer the control from mainvi, to subvi instance1, subvi instance 2 and so on by mere mouse clicks on the respective windows.
How can I implement such case using labview? All suggestions are welcome.

Hi mnx,
Just to correct me if I'm wrong:
You have 8 subVIs and each have their own jobs
For example, you want to control a temperature, you would press a button which pops up the control for the temperature and the subvi GUI will pop up for your to control
Well, if you want to open the subVI: you can find the example code here: http://forums.ni.com/t5/LabVIEW/Call-a-SubVi-in-La​bview/m-p/1590320#M580140 
To start 2 subvis parallely, you can use the error cluster to force execution just like the vis I modified from the example codes from the earlier link. The error cluster wires (error in and error out terminals) make use of the dataflow rule in LabVIEW to make 2 functions or subVI's to run in parallel.
Hope it helps
Warmest regards,
Lennard.C
Learning new things everyday...
Attachments:
SubVi.vi ‏10 KB
SubVi - Copy.vi ‏10 KB
MainVi.vi ‏13 KB

Similar Messages

  • How to use same dynamic text, multiple times in a Movie

    FLASH CS5.5
    How can a dynamic text field be used multiple times, on any
    frame, in any new layer during a Movie?
    ~~
    A number of unique dynamic text fields are being used.
    The intent is to use them each, many times during a Movie.
    (i.e. a users first name)
    They are successfully being "ExternalInterfaced" from a PDF form field.
    (the SWF is displayed within the PDF as a RMA)
    This all works well, IF I only use one instance of the dynamic text field.
    (one use of each unique text field)
    If I try and use that same dynamic text field, again, in a new layer, later in the SWF,
    all of that said, duplicate dynamic text fields do not display.
    ~~
    Stumped!!!
    Thanks in advance for your advice / comments!
    D-

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • How to control the opening form multiple times

    Greetings to all,
    I used Open_Form to open the form in my 'Menu.mmb'.
    My Question is:
    How we control the opening of a form from multiple times?
    Ex:
    In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form to open. How to do this?
    Thanks,
    Bhujendra

    pls try with
    FIND_FORM('EMPDETAILS1');
    OPEN_FORM('C:\INH\EMPDETAILS1');
    jeneesh                                                                                                                                                                                           

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • Please:How to repeat the return values multiple times in sapscript

    Currently my subroutine is returning a value called TOQBSSHB single time and i am working with standard layout called RFFOUS_C.Please can anybody tell me if i want to show multiple times TOQBSSHB for different values of VBLNR .Is it possible if it is what are changes i should make on layout and subroutine.
    PERFORM EXTRACT IN PROGRAM Y_MIT_TEST2
    USING &REGUH-VBLNR&
    USING &REGUH-NAME1&
    CHANGING&TOTQBSHB&
    ENDPERFORM
    FORM EXTRACT TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.
    TABLES : REGUP,BSEG,REGUH,REGUD.
      DATA : BILL_NO LIKE REGUH-VBLNR.
      DATA : ITAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : JTAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : BELNR1 LIKE ITAB-BELNR.
      DATA : QBSHB1 LIKE REGUD-SWNES.
      DATA : QBSHB2 LIKE REGUD-SWNES.
      DATA : TOTOQBSHB LIKE REGUD-SWNES.
      READ TABLE IN_PAR WITH KEY NAME = 'REGUH-VBLNR'.
      IF SY-SUBRC = 0.
       BILL_NO = IN_PAR-VALUE.
      ENDIF.
    SELECT * FROM REGUP INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE VBLNR
    = BILL_NO.
      READ TABLE ITAB INDEX 1.
      IF SY-SUBRC = 0.
      MOVE ITAB-QBSHB TO QBSHB1.
      MOVE ITAB-BELNR TO BELNR1.
      ENDIF.
    SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE BELNR
    = BELNR1.
      LOOP AT JTAB.
      READ TABLE JTAB INDEX SY-TABIX.
      IF SY-SUBRC = 0.
      QBSHB2 = QBSHB2 + JTAB-QBSHB.
      ENDIF.
      ENDLOOP.
      TOTOQBSHB = QBSHB1 + QBSHB2.
      READ TABLE OUT_PAR WITH KEY NAME = 'TOTQBSHB'.
      IF SY-SUBRC = 0.
      MOVE TOTOQBSHB TO OUT_PAR-VALUE.
      MODIFY OUT_PAR INDEX SY-TABIX.
      ENDIF.
    ENDFORM.

    I said :
    - A) you should copy the main program without to copy
         includes, so when the systems ask you which objects
         you want to copy: check all excluding INCLUDES.
    So you'll have a new program which uses the same includes of the standard program.
    - B) in your z-program you find the point where you should insert your code: you'll have two cases:
    - you should insert code in a point that is writen in z-program;
    - you should insert code in a point (for example a form) that isn't write in z-program, but in a standard include your z-program use.
    In first case you only write your code, in second one before you should copy the include, than insert it in your z-program and so insert your code in the include.
    For example:
    - A) Copy RFFOUS_C in ZRFFOUS_C
    - B) I should change the code of routine  
         SCHECKDATEN_EINGABE, it's defined in RFFORI01, so I copy it in ZRFFORI01, insert my code in it.
    - C) found where my z-program call include RFFORI01:
    subroutines for check print and prenumbered checks                  *
      INCLUDE RFFORI01.
    now replace this with the call to my new include:
      INCLUDE RFFORI01.
      INCLUDE ZRFFORI01.
    If you do in this way you copy only includes where you should change the code.
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • How to show a JSP Page Multiple Times ??

    Dear Experts,
    Our requirement is like :
    The client chooses to enter the details of 10 customers in the First Jsp page , by selecting 10 in a dropdown list and clicks the Proceed button in the same JSP.
    The Second JSP ie. Customer Details Jsp is popped up and the client enters the details of the first customer. Then he clicks Next Button in that JSP.
    Clicking the Next Button in the Second JSP, will :-
    1>Create a customer object to store the details and add the object to an arraylist ,
    2>Close the current Customer Details JSP and show a new one.
    This will repeat for 10 times and after the last customer details are entered , the Done Button in Customer Details JSP will take the control back to the First Calling Jsp. The First JSP should contain data previously entered.
    How can we implement this logic in JSP ??
    Thanks & Regards
    Saswata Mandal.

    by doing your job. You are a programmer right? So design and develop the code to be able to do this. Don't know how? Then you have some reading to do.
    Hint: you are doing what seems to be some sort of wizard. Whenever I do a wizard type flow, I use a session bean to store the results of all the steps, to validate and store them all in the final step.

  • How to print the label in multiple times

    Hi,
            I wrote a program which will display the label. But  I want to display the labels according my input.
             Pleae Explain the process How can I get.
      Ex  If I give 4 as input number in  selection screen.  that should display 4 labels.
    Regards,
    Surya

    Hi,
           Thanks for your answer.  I used  SS-FUNCTION_MODULE_NAME  function module to call the smartform and I called  that generated function module.
    To which parametr I want to pass the number of copies to print Please explain clearly.
    Regards,
    surya

  • How not to generate complex event multiple times? Exclude used events.

    Hi all.
    My problem is that I need to generate alerts in my application where time window is 30 minutes and it is moved on every new incoming events, so if I have event1, event2, event3 in the first time window where event2 and event3 cause an alert and I have event2, event3, event4 in the second time window then my alert will be generated twice, but I need an alert to be generated once.
    Is there any solution to filter events which have caused an alert to prevent duplicate alerts?
    Regards,
    Sergey

    I think the following query should satisfy your requirement
                    SELECT
                          T.userId as userId,
                          T.totalAmount as totalAmount,
                          T.numEvents as numEvents
                    FROM
                          helloworldInputChannel MATCH_RECOGNIZE (
                              PARTITION BY userId
                              MEASURES
                                    userId AS userId,
                                    SUM(BUY.amount) as totalAmount,
                                    COUNT(*) as numEvents
                              PATTERN ( (B|S)+? (C|T) ) WITHIN 10 minutes
                              SUBSET
                                     BUY  = (B, C)
                                     SELL = (S, T)
                              DEFINE
                                    B AS (B.operation = "BUY"),
                                    S AS (S.operation = "SELL"),
                                    C AS (C.operation = "BUY" AND (SUM(BUY.amount) = SUM(SELL.amount)) ),
                                    T AS (T.operation = "SELL" AND (SUM(BUY.amount) = SUM(SELL.amount)) )
                          ) AS T

  • How to get Header data into multiple times along with the Line Items

    Dear All,
      I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
    Details is below.
    Example
    Header record is one
    E1EDK01
    E1EDKA1
    Line items are two
    E1EDP01
    E1EDP01
    I want in the flat file two records having duplicate data in the fields which is belongs to header data
    Like :
    Record #  partner data     Line item data
    Record 1 : WE name1 city   00010 materialname1 156
    Record 2 : WE name1 city   00020 materialname2 198
    ( WE name1 city - data is same in the record 1)
    For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
    I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
    If any one knows , please give solution.
    It is great help to me.
    Thanks in Advance.
    Ramarao

    Dear Ramarao,
    This will help you,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    No Documentation for Mapping Function useOneAsMany (Mapping Problem)
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Thanks & Regards
    Agasthuri Doss

  • If you make a picture in pages.... how do i duplicate the image on the same page multiple times????????!!!!

    If I make a little picute in pages ... HOW DO I DUPLICATE THE IMAGE MULTIPLE TIMES ON THE SAME PAGE!11?????!!!!

    Or you can hold down the Option key while you click on the image and drag to create a copy. Then Select All and repeat. Repeat again, each time doubling your image count. You may, at an early stage, want to align your photos so that they will be in position when you Option-Drag the next set.
    Walt

  • How to run  multi reports at a time using button

    dear all
    i have a button on form, that call a report abc.rep. when i press the button report is displayed. now i want to show another view of that report when i press button second time. but it doesn't appear. when i close the first report that it gets run.
    how can i run same report multiple time using this button.
    regards.
    Asif iqbal
    Software Engineer
    (Karachi, Pakistan).

    HI
    Call you report using this code then you can run more then 1 report at the same time
    declare
    AppID PLS_INTEGER;
    begin
    AppID := DDE.App_Begin('RWRUN60 module=d:\reports\LEDGER_NEW.Rep userid='||:global.the_username||'/'||:global.the_password||'@'||:global.the_Connect||' maximize=yes user_id='||:global.the_username||' user_password='||:global.the_password||' user_connect='||:global.the_connect, DDE.App_Mode_Maximized);
    end;
    Rizwan
    www.rizwanshafiq.blogspot.com

  • Calling a vi multiple times makes the timer "crash"

    I use a subvi for writing data from a profibusnetwork. In this vi I can set a timer for the "update" to write away the data. I use a global variable to remember the last time the writing was done. The problem I encounter here is that when I use this subvi multiple times only the data I want updated fastest will be written away.. My question is: Is it possible to use just this one vi multiple times instead of renaming it for every datasource I want to write away?
    Thx in advance,

    Use a while loop with an uninitialised shift register instead of a global,
    and build it into a function marked "re-entrant". This way different data
    exists in each different copy of it in the code.
    henk007 wrote in message
    news:[email protected]..
    > I use a subvi for writing data from a profibusnetwork. In this vi I
    > can set a timer for the "update" to write away the data. I use a
    > global variable to remember the last time the writing was done. The
    > problem I encounter here is that when I use this subvi multiple times
    > only the data I want updated fastest will be written away.. My
    > question is: Is it possible to use just this one vi multiple times
    > instead of renaming it for every datasource I want to write away?

  • Executing same VI multiple times, sending/retrieving data

    I know how to
    execute a single vi multiple times using the invoke node/reentrant method.  But
    I am not sure how to send/get data the running vi's.
    A little background
    on my project.  I have to test up to 64 units for a long period of time.  When
    one of the 64 units is found, I want the test to execute the test.vi then come
    back to my main.vi and wait for the next unit to test to be
    found.
    The test.vi will
    require some information to run so I need to get that data into the test.vi
    along with a way to stop the tests while they are running.  I also want to
    report running data back to the user, so I need to get data from
    test.vi.
    I am using a
    producer/consumer/display loop(s) and I would like to be able to use my display
    queue to collect and sort data from my running test.vi's.
    I may be going about
    this wrong executing test.vi using the invoke node, but I am trying to find away
    that the test vi's will independently execute and run.
    Please let me know
    if I need to clarify my situation.  I have been trying to figure this out for a
    while, so it may make sense in my head, but not on paper.
    Thanks,
    Zac

    If I understand you correctly, you are invoking a reentrant VI to run in up to 64 different instances?  And you need to set up a communications mechanism between each instance and the main VI.
    I would look at a functional global variable or action engine.  (Search on either of those terms and  you will come up with numerous examples).
    Let the FGV store data in its uninitialized shift registers.  If you need a separate queue from each VI instance to the main, then have one shift register be an array of queue references.  Let's say you are ready to invoke the first instance of your VI.  Pass to it and ID value of 0 in its connector pane.  Obtain a queue and store the reference to that in index 0 of the queue array in the FGV.  Every time you need to enqueue or dequeue from queue 0, you use index array to retrieve the reference stored in queue 0.  You would do that whenever you need to work inside the instance of the VI (have it remember that its ID was 0) or in the main VI.
    Next instance of the reentrant VI, you pass it a 1 as its ID.  Let the FGV obtain a queue and store its reference in index 1 of the array.  You could have other values stored in the FGV or other arrays such as an array of booleans that serve as flags to tell the instance of the reentrant VI to stop running.
    Basically the FGV or action engine becomes a storehouse of information for each instance of the reentrant VI.  It will be scalable.  Each time you need to add a new instance of your VI, you store the info in another element of the array stored in the FGV that is based on a ID number you assign as you create each instance.

  • Signing a document multiple times without saving it?

    Hello all,
    Can someone please tell me how do we sign a document multiple times without having to save the document after each signature?
    For instance, I am a realtor and have to sign the contract about 3-4 times. However, when I sign it, Acrobat 8 prompts me to sign after each signature.
    When I was using Acrobat 7, I could sign as much as I want and then save it. This is much more efficient and practical.
    Can anyone advise me?
    Thanks in advance.
    Geo

    Hi Geo,
    It may be more cumbersome in version 8 (and 9), but it's safer. In version 7 and earlier when you signed, Acrobat did everything in memory. You weren't prompted to save the file to disk until you wanted to close the file. The problem is computer memory is where the bad guys get into to make changes. The majority of computer vulnerabilities occur when the hacker escapes the allotted memory space (aka buffer overflows) and reads and writes to memory address that they shouldn't be in. Think of memory being divided up like a row of houses along a block. The bad guy gets out of his house and into yours, and that's where bad things happen.
    Beginning with version 8, signature operation all take place on disk, not in memory. It's slower, and as you pointed out it's more cumbersome, but it's safer. The file is committed to disk (the hard drive) before the signature is created and the signed bytes cannot be manipulated in the middle of the signing procedure.
    Interestingly (at least to me), when we had this discussion four or five years ago when the change was made, the example used was of mortgage contact being signed where any of the terms could be changed in memory prior to the signature being completed. It was just a bunch of geeky engineers sitting around a table discussing possible vulnerabilities with the current signing operation (i.e. signing in memory). To see the theoretical example in actual use is kind of exciting (granted I don't get out much ).
    Steve

  • Running Ecatt script multiple times

    I have created a ecatt script for ME21N. I need the script to run multiple times.So,i have used Do Enddo statement and put the number of times to be executed.
    The script is running fine for the first time. then its not running. From the second time,its putting blank values into the fields and not saving the data.
    How can i run the script multiple times.
    Thanks,
    Aparna.

    Hello,
    When you run the script multiple time then you will have to pass different values to the fields so that every time the script is run with new set of values and the data is created.
    So in the script you will have to parameterize the fields and then handle the position of the fields so that when the script is run for the first loop counter the data is maintained in the first line of the transaction(for example) and the increament the counter for the second run so that the control moves to the second line for the second execution similarly for the multiple runs.
    Alternatively parameterize the fields with the table containing so many entries as the number of times you want to run the script and for each execution one set of entry from the table is picked and used in the execution for the next run the second set of values is used and so and so forth.
    Hope it answers your question.
    Thanks and Best regards,
    Ajay

Maybe you are looking for

  • What's best workflow for Keynote iMovie iDVD Burning

    I create a slideshow in Keynote each year for our 5th graders.  I then export as a QT movie and import it into iMovie to add chapters markers, titles, credits, etc.  I then export as a QT movie again to pull into iDVD.  I then add Menu's and then bur

  • Does Acrobat X (Pro) work properly in OS 10.9 Mavericks?

    Does anyone know if Acrobat X (Pro) works properly in 10.9 Mavericks? Acrobat 9 Pro does not work all that smoothly, and has the sidebar issue. I am thinking of upgrading the whole Creative Suite from CS5 to CS6, but it doesn't make sense if I will s

  • Error in calling webservice in XI

    Hi All, We are facing the folllowing error in calling a Webservice in XI from XML Spy. QOS = BestEffort We are getting the following response <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0"> <context>XIAdapter</context> <code>DeliveryExce

  • Flash Builder 4.5 SOAP call for images using Base64 Encoding

    I am trying to load some image meta data in a flash builder mobile application by making a SOAP call to .Net service. I am able to test the web service successfully using a .Net console application. However when I make the call from flash builder mob

  • Missing features in PSE9, screen reso problem?

    So we already know that the screen resolution is the reason why the Advanced Dialog box is missing.  But what else? I noticed that when creating a new album in Organiser (clicking the large green plus sign under albums on the bar to your right), you