Call sub-vi

I used an open reference to open a sub-VI and run it in the Main VI, but the sub-VI only runs when I open the sub-VI manually in advance and then hit run on the Main VI. If I just run the Main VI without opening the sub-VI manually in advance, nothing happens, I do not get any data. Does anybody know why this happens?

Sorry, I attached the wrong main. This is what I actually use to call the sub-VI. It was working yesterday just fine, I was able to get the data in the main VI as the sub-VI runs, the only problem was the sub-VI needs to stay open. So I tried to fix this problem, and now I cannot even get the data from the sub-VI for some reason. I think the problem is the case statement, the index array gives a default value after you run the sub-VI's case. I need to be able to change the order of my tests, and also be able to see other test clusters in the list while a test is running, so that's why I had two cases statement. But I was able to do all of this last night, so I am very confused. And now it seems like LabView crashes every 4-6 times I ran
the main. Thanks much...
Attachments:
Combined_Test_(run_tests).vi ‏804 KB

Similar Messages

  • Problem in Calling Sub VI remotely from a main VI in a Web Browser.

    Hi i am Calling Sub VI remotely from a main VI in a Web Browser.
    My task details:
              I my project i am fechting data from a MySQL data base and storing in a table on the main VI front panel.For User help i am calling a sub VI front panel which is consisting of a progress bar and percentage indicator.It indicates the user that the data is loading from the DB.The main purpus of a subVI is to make the GUI more user friendly..by displaying the SubVI front panel until whole data is loaded into the table and closing Immediately after load complete.
    What i did? 
            To call a SUB VI i just right clicked on the subVI icon on the main VI >> SubVI node setup>> Show front panel when called.
            In main VI Execution property i have seected Preallocated clone reentrant execution
            In Sub VI Execution property i have seected Non- reentrant execution.
            If i select Preallocated clone reentrant execution in Sub VI while calling sub VI i am getting warning message saying subVI front panel cannot be controlled remotely.
    Promblem I am facing:
    It is working perfect in a server machine(as a stand alone) but when i call the same VI or application in remote system i abserved two issues
    1.  When i call a sub VI every time the front panel is coming in both server and client machine.I want the subVI panel to display only in the client machine, other wise the user sitting in front of the server will be confused by seeing many popups(SubVIs) in his system.
    2. When one client is calling a SubVI, the other user should wait until the the sub vi displayed and closed in the 1st client.Means the simultaniously more than one client cant access the SubVI.In this case i can access the main VI simultaniously but not the SubVI.
    Please give me the solution.It wil be very helpful for me.Thank You in advance.
    Thanks & Regards
    Gundappa

    I did some prijects with Siebel, but we used JMS for sending and retrieving message between Siebel and BPEL. Can you use this solution? This also gives you the advantage that you can guarantee that the transactionis committed and placed in a queue. You can also bring down the BPEL environment without interfering the Siebel environment, because the communication is done via JMS (queueus)

  • HTTP trigger script using ECC variable/Call sub flow - not working

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

  • Calling Sub Report which is in Different project

    Hi All,
    Can we Call sub Report which is in different project? If so, How? Can you please help me out.
    Thanks
    sush

    Hi susheel1347,
    In Reporting Services, when we call a sub report, in the Subreport Properties, we can only select the report in current project (from the drop down list) as a subreport. If we type a report which is in another project, this report can't be found
    and it will return the message like below:
    So your requirement can't be achieved currently, we suggest you copy that subreport into current project.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to trace/debug main workflow calling sub workflow.

    Guys,
    I am calling Sub workflow from MAIN workflow.
    I am able to trace till beginning of sub workflow, with the help of workflow log.
    But, is it possible to trace/debug the sub workflow as well(in single stretch).
    Please guide with t-codes & procedures(links).......
    Regrads.
    santosh.

    Hi Santosh,
    You should be able to see the technical log for the subflow as well - but perhaps that's not what you are asking.
    First, you should always be able to 'trace' your subflows by starting them directly via SWUS.  Then you will have the log to review.
    You can also set the workflow trace on via SWU9.
    Hope this helps,
    Sue

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

  • Error while calling sub template in XML Publisher

    Hi friends,
    For the Header part of my report,I create a sub template and i am trying to call it.
    I am calling the sub template using the following commands:-
    <?call@inlines:Header?>
    <?end call?>
    Then in the body ,I am importing this file using <?import:file:///C:\sreekanth\Header.rtf?>
    When i run the report i get the following error
    Caused by: java.io.FileNotFoundException: /C:\sreekanth\Header.rtf (No such file or directory)
    please help me .
    I am unable to find out the reason for the error.
    But when i run it locally it runs fine.
    Is then any problem while i creating the subtemplate?what are steps to create a sub termplate?

    Hi,
    the BI Publisher Forum might be a better place for you to get an answer than the Reports Forum.
    Regards
    Rainer

  • Dynamic call sub vi issue

    By using the vi in the attached picture, I am trying to call the sub vi many times, each time should open another instance.
    But I can only open an instance at the first time. The 2nd time will give error as below.
    LabVIEW:  The VI is not in a state compatible with this operation.
    And when I run again, even the 1st time give same error.
    By the way, I also want to control the position of the new instance, they should appear just beside the center and each one shift a bit.
    Also, when they been closed, is there any method to send a message back to the parent vi.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    vi.jpg ‏41 KB

    There are several things you will need to do for this to work.
    1. You need to set the VI you want to launch to reentrant execution. You do that in the VI Properties dialog under the Execution tab.
    2. When you load it with Open VI Reference, you need to input 8 on the Option terminal. This will open a new instance of the program.
    3. To control the position, you will need to keep track of where you want it to be and then write those values to the VI>Front Panel Window>Panel Bounds property of the VI you opened.
    The only way to send a message back to the parent is to use some sort of queue or event that you have to set up within the parent and child vi's.
    That should get you most of the way to where you want to be!
    Chris

  • Encrypt sensitive with password and calling sub pkgs

    Hi we run 2012 enterprise and r introducing a db2 connection that "allows saving password".
    We run from the file system (not the catalog) and face a challenge.
    The default prot level on the SUB PACKAGE that has the db2 connection (only such connection right now) prevents our prod credentials from making the connection because its a different user than the one that created the sub pkg.
    Encrypt sensitive with password seems a more strategic alternative but I dont know if the param (I think its called "decrypt") on the dtexec command line that allows passing a password at run time applies to just the parent pkg or all subs also.
    I dont want to delay validation.  I wouldnt even mind changing the xml connection string (by entering pswd in whatever syntax is necessary) using notepad but dont know what issues that will cause.
    I wouldnt mind having someone logon and "re" save  the pkg using the credentials of our prod userid and choosing the default prot level instead.
    I also wonder if none of the other pkgs (including master) dont have any sensitive data, can their prot level defaults be left alone?
    Can the community comment?

    If you are having sensitive info (passwords for conn strings etc) in our packages, the best way is to change the protection level to "encrypt sensitive with password" and then provide the password.
    When we schedule a job or exec the parent package, the child packages are called automatically.
    Thanks, hsbal

  • Calling Sub-Templates from a Template not working

    I have a Template that I want to call a multiple Sub-Templates, and the Sub-Templates actually define an entire report. After I load the Data and try to preview I get the following error:
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 39, Column 62>: XML-22049: (Error) Template 'MWAC_JOB_RTG' invoked but not defined.
    Can someone tell me what this means? Is what I'm trying to do even possible?

    Is the sub template accessible by the main template? Have you included the import statement in your main template?
    Thanks!
    BIPuser

  • Calling sub controllers in different BSP applications

    I try to call in a controller class a sub controller which belongs to another bsp-application (and another dev package)
    Here the example of the structure:
    (Package) Z_TST1
    --(Controller class) Z_CO_TST1
    --(BSP-Application) Z_TST1_BSP
    (controller) tst1.do ...
    (some additional views, model classes, ...)
    (Package) Z_TST2
    --(Controller class) Z_CO_TST2
    --(BSP-Application) Z_TST2_BSP
    (controller) tst2.do
    Now i want to call the controller tst2.do as sub controller in controller class Z_CO_TST1. help.sap.com says its possible to call controllers of other applications:
    http://help.sap.com/saphelp_erp2004/helpdata/en/21/d8463c9c9ffc3ae10000000a114084/frameset.htm
    In controller class Z_CO_TST1 i will do some code like described in help.sap.com:
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/43473ccf20514ee10000000a114084/frameset.htm
    Thanks for any ideas
    Peter

    I'm sorry, but I solved it by my own (today). Solution is to let application_namespace empty and use application_name for the BSP application name you call in the create_controller method. In the view I only call <bsp:call comp_id = 'name_of_controller_id' />. Help.sap.com has more info, than I thought.
    Thanks for answering - Peter.

  • Calling Sub screen

    Hi all,
          Iam getting a problem in calling a sub screen.
    Iam getting error as below:
    <b>"." or "ID .....FIELD..." expected after "SUBSCREEN".</b>
    Please go through this code and suggest me
    *& Module pool       Y_MP_SUB_03
    PROGRAM  Y_MP_SUB_03.
    tables : kna1.
    data : begin of itab occurs 0,
            name1 like kna1-name1,
            land1 like kna1-land1,
           end of itab.
    CALL SCREEN 100.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TT'.
    CALL SUBSCREEN SUB 'Y_MP_SUB_03' '110' .
    endmodule.                 " STATUS_0100  OUTPUT
    module USER_COMMAND_0100 input.
      case sy-ucomm.
           when 'DISP'.
              SELECT NAME1 LAND1 FROM KNA1 INTO ITAB WHERE
               KUNNR = KNA1-KUNNR.
               APPEND ITAB.
              ENDSELECT.
          WHEN 'EXIT'.
             LEAVE PROGRAM.
      ENDCASE.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text

    HI,
    u shouldn't use that in module.u have to call that in flow logic.
    PROGRAM ZBHTSTRIP.
    DATA:OKCODE LIKE SY-UCOMM.
    DATA: N1 TYPE I, N2 TYPE I, R1 TYPE I, R2 TYPE I.
    DATA SCRNO(4) TYPE N VALUE 2001.
    CONTROLS TABS TYPE TABSTRIP.
    MODULE USER_COMMAND_1001 INPUT.
       CASE OKCODE.
         WHEN 'ADD'.
           R1 = N1 + N2.
           SCRNO = 2001.
           TABS-ACTIVETAB = OKCODE.
         WHEN 'MUL'.
           R2 = N1 * N2.
           SCRNO = 2002.
           TABS-ACTIVETAB = OKCODE.
         WHEN 'BACK'.
           SET SCREEN 0.
         WHEN 'CLEA'.
           CLEAR: N1,N2.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1001  INPUT
    FORM ON_CTMENU_FORM1 USING MENU1 TYPE REF TO CL_CTMENU.
      CALL METHOD MENU1->LOAD_GUI_STATUS
        EXPORTING
          PROGRAM = 'ZBHTSTRIP'
          STATUS = 'MENU1'
          MENU = MENU1.
      CALL METHOD MENU1->ADD_FUNCTION
        EXPORTING
           FCODE = 'EXIT'
           TEXT = 'EXIT'.
    ENDFORM.
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'TIT1001'.
    ENDMODULE.                 " STATUS_1001  OUTPUT
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    <b>CALL SUBSCREEN SUBA INCLUDING 'ZBHTSTRIP' SCRNO.</b>
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    CALL SUBSCREEN SUBA.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2001.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2001.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2002.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2002.
    rgds,
    bharat.

  • How to call sub-vis with a click of a button?

    Is there any block that functions llike "System Exec" ?
    "System Exec" calls only .exe file.
    I need a block that can call a Sub-VI.
    TQ

    Here is a way to do it with the example I first showed.  I don't know why you could not get it to work, it does.  I changed your diaglog vi to have a stop button to close its window.  Closing the subvi does NOT close the main.
    Message Edited by tbob on 05-18-2010 04:46 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    dialog[1].vi ‏7 KB
    Program3[1].vi ‏9 KB

  • Custom run-time menus within dynamically called sub-VIs?

    How do you use custom run-time menus within sub-VIs that have been dynamically called? I'm using Labview 6.02.

    Since you say within subVIs, I am assuming that you have the subVIs open their front panels when called. Each subVI must have the RTM defined when the subVI is created. You can use the same RTM for each one (use the open function in the menu editor).
    If necessary, you can dynamically add and remove menu items using the Application Control->Menu functions. I have some subVIs that add items to the main RTM when they are loaded and remove the items when they finish.
    Rob

  • Regarding call sub screen dynamically

    hi to all,
    Is it possible to call subscreen dynamically means we are calling subscreen like
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
    MODULE STATUS_0100.
    suppose we r coding like calls subscreen at the initially whenever display main screen but my requirement is
    i have edesigned 3 or 4 sub screens for vendor,material ..etc for up dation
    i  place the button regarding vendor whenver i press the button vendor that subscreen will display in that i designed insert delete update operations of vendor data like that all the screens
    for this operation can't use tabstrip control
    please provide solution
    thanks and regards,
    surya.

    Hello Surya,
    Based on a particular function code or click of a button it is possible to bring different subscreens into the normal screen's area reserved for calling subscreen
    ........so in the subscreen we need to give fields and structures required to be displayed on clicking a particular button or recieving a condition
    Please check the following
    declare a variable : loc_dynnr type sy-dynnr,
                                loc_repid  type sy-repid .
    assign a default value:
    loc_dynnr  = 120. "First subscreen being called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'   
    we will be using the statement
    "CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
    CALL SUBSCREEN: SUB INCLUDING loc_repid  loc_dynnr.
    so on clicking the button we will have different function codes captured
    case sy-ucomm.
    when 'Button1'.
    loc_dynnr  = 120. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'   
    when 'Button2'.
    loc_dynnr  = 130. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'  
    when 'Button3'.
    loc_dynnr  = 140. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'  
    endcase.
    and in the calling code use...
    CALL SUBSCREEN: SUB INCLUDING loc_repid  loc_dynnr.
    please remember to put default values for loc_repid ,loc_dynnr..otherwise it may dump
    Pls check and revert..rewards if helpful
    also check the following link
    Re: Module Pool Program : Calling Subscreen in a Normal Screen
    Regards
    Byju

Maybe you are looking for

  • BDC for XK02 getting problem in table control.....

    hello i want to migrate data for vendor from flat file to SAP.i want to update VAT date and VAT number. but i m not getting how to handle index of table control? coz when we scroll down index get changed...... pls guide me......

  • Another iMac Randomly Shutting Down!!

    Hey Everyone. I'm new to the forums, though i've always used them as a resource over the years to learn more or troubleshoot issues. Hopefully, now, someone can help me with mine personally.. :-/ I have an intel 2.8gH Aluminum iMac that I purchased f

  • Create PDF From a backend web page

    Hello, this is my first post on the Adobe Forums I am trying to get a capture of a web page using Adobe Acrobe "Create PDF from Web Page" However, I cannot figure out how to capture a page after I have logged into the site. I thought that Adobe Acrob

  • What parameters can I put in the Presenter 10 configuration xml?

    I'm looking to make a silent installation of Presenter 10 and noticed the configuration.xml file and it's ability to take a list of parameters.  What's missing is what parameters it takes.  Can anyone provide that?

  • 359 Degree Sprite Rotation Crashes App

    This is a weird bug I've been chasing for a while with spontaneous crashing of a Director App in OSX. I've now narrowed it down to when I rotate a sprite to 359 degrees. It only occurs at higher resolutions ( ie. 1680 x 1050 ). At lower resolutions i