Call the Main Sub

I enclose a complete record than contaions a small project with three VI s. What I want to do is this: run the MAIN.vi. Choose the necessary to load sub.vi and click on Auto load. The main FP is closed and the VI under load.

Everything works fine in design mode. But does not work when the EXE is built. (No refernces path hard-coded are used)

Cannot find the reasons why - for sure there seems to be a problem with the paths to files. And I'm taking care to strip a level in run mode. It still does not work. Don't know why - any ideas welcome.

Project 2012 LV.

You don't need to strip the path once more when the main VI is running as executable. Delete the executable check box structure in the CurPathToString.vi

In the CurPathToString.vi you properly get the path to the appellant, i.e. the top of page VI: MAIN.vi. Regardless of whether the project is running in the development environment or as executable, the MAIN.vi, the SUBVI01.vi and the SUBVI02.vi are in the same exact way, it must remove that once the name of the top of page VI of the path.

Tags: NI Software

Similar Questions

  • Question of the main application class

    Hey people out there!

    A happy Friday to all just a quick question. The class that contains the main Sub public static in the BlackBerry application method, this class should be one that extends UiApplication or can the main method call the class that is responsible for this?

    Thank you!

    Schalk

    You can try something like that.

    class Test
    {
        public static void main(String args[])
        {
            Xyz xyz = new Xyz();
            xyz.enterEventDispatcher();
        }
    }
    ---------------------
    
    class Xyz extends UiApplication
    {
        Xyz()
        {
            pushScreen(new MainScreen());
        }
    }
    
  • Call the function of FLA class

    This simple perhaps, but I have two files and I want to call a function inside a class and I don't know how to do this. EX I want to call the Main() function, after that I imported packages.  Can anyone help?

    Package CODE:

    package code

    {

    import flash.display.Sprite;

    import flash.display.MovieClip;

    public class allActivities extends flash.display.Sprite

    {

    public static var testGlobal:String = "testValue";

    private void Main (): void

    {

    trace ("initialize Global Variables");

    }

    }

    }

    package code

    {

    public class activityone

    {

    private void Maintwo (): void

    {

    trace ("testGlobal" + allActivities.testGlobal);

    }

    }

    }

    FLA CODE

    Import code.*;

    1. main must be public

    2. There must be an allActivities instance reference in the main of your fla timeline if that's what you mean by appeal to fla

  • Calling the function from inside a onEnterFrame action

    I have a class file called MonsterGame. Inside her, one of the methods that are called "queueAnim" creates a onEnterFrame function to wait until the current film is play before making the following visible.

    That works fine, but I have certain conditions that the Main() function is called just after a certain movie is played (called "eatMovie"). Everything works except the call to Main();

    I think it's a problem with SEO in the wrong place, but I don't know why.

    The trace for "this should be the root name" returns "MonsterGame", which is the name of the class where the Main() method. So if this ._name returns MonsterGame and MonsterGame has Main() inside, why used Main() or that. Main() run the function?

    PS: It's NOT because I remove the onEnterFrame before calling the Main(), at least I'm sure it's not because I put a trace here, and it works very well, proving that after deleting lines are always executed.

    PM me if you want the link to the source code and swf file

    Try the attached code. If not post a link to a zip with all the files.

  • Exchange of data between the main VI and sub - VI

    It is my first attempt to build a comprehensive program and hope you can help me.

    The idea is to load a set of data and to perform several calculations and operations on them, find themselves in the creation of a report file.

    What I want to do is to build a main VI which contains the data, and several sub - vi to do the math, dynamically loaded in a subgroup of experts (for the simple user interface). I thought about this architecture because I'm sure I'll have to change the calculation of VI, and I don't know how I'm going to need, so I can just add an another calc VI to the plugin dir and load it. The thing is, I have to keep moving data back from the main VI to the Subvi and maybe even between sub - vi. Is there an easy (or not so hard) how? I thought about queues, but sometimes the data is to be sent to more than a subvi, and I can't have a queue for each. The idea that I get is like a network producer-consumer mode BOX: the main VI produce some data and all those interested in this data use. Then they send the results back (as a "producer") and all stakeholders in the response it consumes.

    Attached, is a "skeleton" of what I intend to do.

    There are several ways you can accomplish this. First of all, you can use the Start Asychronous Call, which will provide a component of connector for you. So, it is easy to wire the reference to it. You could also implement a global functional (also known as a motor of action) to access the event reference. It is the approach we use for our shared events. If you have lines between the main VI and ths Subvi you to format a particular message reference. However, I don't think that this approach would correspond to what you are doing.

  • Model XML Publisher - Sub Oracle Footer is going back down, but I would add State nine footer in the main model

    Hi team,

    I am facing problem in Dunning letter template in advance collection.

    Basically, I created 2 model.

    1. main model

    2 Template void

    In my template void having 2 body section & footer and by the main model, I call you to Sub model body and a footer, section based on some condition.

    The question here is only in the page footer section (for example I mention below my footer of the main model condition)

    Main page footer section model-> footer

    --------------------

    <? if: ORGID = '341'? > <? call: UKENG1? > <? end if? > <? If: ORGID = '101'? > <? call: FRF1? > <? end if? > <? If: ORGID = '122'? > <? call: IT1? > <? end if? > <? If: ORGID = '141'? > <? call: ESEN1? > <? end if? > <? If: ORGID = '181'? > <? call: PTP1? > <? end if? > <? If: ORGID = '361'? > <? call: DKE1? > <? end if? > <? If: O RGID = '241'? > <? call: ATE1? > <? end if? > <? If: ORGID = '121'? > <? call: PL1? > <? end if? > <? If: ORGID = '161'? > <? call: CZ1? > <? end if? > <? If: ORGID = "162"? > <? call: SK1? > <? end if? > <? If: ORGID = '321'? > <? call: IEENG1? > <? end if? >

    --------------------

    When I use (<? if: ORGID = '341'? > <? call: UKENG1? > <? end if? >) condition in the front row, then the footer does not appear, when I use this condition in the middle of the footer of the article then it just

    a little below and when I use this condition in the last position in the page footer section, then it is extermly come down in DL output.


    Can you help me please.


    Thanks in advance!


    Thank you

    Nandan Bhatt

    can you post the model and the model of void?

  • A sub-application in the same application domain as the brother of the main loading application

    Hello

    I'm creating a portal application that loads applications into their own application domain different from the main app, basically what I'm trying to do is the following:

    -Portal - main ApplicationDomain

    -SubApp1 - new AppDomain

    -SubApp2 - same AppDomain as SubApp1

    SubApp1 and SubApp2 could then call each and other properties and change their values.

    I tried the following:

    var loaderContext:LoaderContext = new LoaderContext();

    loaderContext.securityDomain = SecurityDomain.currentDomain;

    loaderContext.applicationDomain =

    new ApplicationDomain(); //New scope

    -SubApp1

    swfLoader1SubApp1 =

    new SWFLoader();

    swfLoader1SubApp1.loaderContext = loaderContext;

    Panel1. AddChild (swfLoader1SubApp1);

    -SubApp2

    swfLoader2SubApp2 =

    new SWFLoader();

    swfLoader2SubApp2 .loaderContext = swfLoader1SubApp1.loaderContext;

    Panel2.addChild (swfLoader2SubApp2);

    When I try to change values of each and the other values, only SubApp1 can change the value of the property on SubApp2.  SubApp2 gives me an error like this when you access the SubApp1 property:

    ReferenceError: Error #1069: treeTitle property not found on SubApp2 and there is no default value.

    I'm trying to reference each and other properties as follows:

    SubApp2 call SubApp1 - NOT WORKING - GIVES above ERROR

    public function setLabel():Sub //some function which is called when clicking on a button on SubApp2

    {

    Application.application.treeTitle.text =

    "dummy value" ;   treeTitle is a member of SubApp1

    }

    The other way around works: SubApp1 call SubApp2 - this WORKS FINE

    Manager events for the tree control change event.

    public function treeChanged(event:Event):void {}

    selectedNode = tree (event.target) .selectedItem

    as XML;

    Application.application.titleBar.text = selectedNode.@label;

    }

    What I am doing wrong? Any ideas are greatly appreciated :-)

    Thank you.

    No, I'm part of what you were trying to achieve. systemManager.document will allow each app update its own "treeTitle.text". If you want to change an application objects that live in another application, then I'll try the following technique. Use the application, Application.application, like a message dispatcher to relay messages from SubApp1 to SubApp2 and vice versa. You must create a custom event that indicates what application is addressed first, "SubApp1" or SubApp2"and the value to be set in 'treeTitle.text '. The SubApp1 and the SubApp2 should add listeners for the event custom Application.application. When the event listeners are called, they check if the event is for them. If so, they update their 'treeTitle.text' to the value specified in the event. Otherwise, they do nothing. In each application you would send a message like this:

    Application.application.dispatchEvent (customEvent);

    In Flex4, using FlexGlobals.topLevelApplication instead of Application.application.

    -Darrell

  • Imported bookmarks in safari are in a bookmark called IMPORTED FROM SAFARI. Can they be merged into the main Menu of bookmarks?

    I had a few existing Firefox bookmarks but wanted to add a bit of Safari. Now, the imported bookmarks from safari appear as a bookmark called IMPORTED FROM SAFARI. How can they be merged so that all bookmarks fall under the main Menu of bookmarks?

    You can move or copy/paste to another folder in the library (bookmarks/history Manager) through the context menu or the menu organize button on the toolbar.

    • Bookmarks > show all bookmarks
  • How to determine when a subsequence in the main group of MainSequence was called simply?

    I want to implement a custom for my operator Interface progress bar and I've seen some tutorials OR how do but IMHO, the solution is very ugly in which the MainSequence hardcoded events UI message statically send completion percentage.

    Which, according to me, a better method would be to have the reminder SequenceFilePostStep increment a counter FileGlobal only when a subsequence in the main group of MainSequence has been called.  I already understood how to get the total number of subsequences MainSequence into the main group using the expression:

    RunState.SequenceFile.AsSequenceFile.GetSequenceByName ("MainSequence"). GetNumSteps (StepGroup_Main).

    It is the bold part above that I don't know how to do and that you would be grateful for assistance in this regard.  Once I have these two values that I can simply divide the two and send a UserMessage interface operator with completion percentage.

    Thank you!

    Hi Sean,.

    Instead of having the SequenceFilePostStep in your file of the client's sequence, you can put the statement step in the process template using a reminder of ProcessModelPostStep.

    Previously, when I said the words, I meant the prerequisite, but I think that you understood what I meant...

    It's a thing of style and readability - a precondition will make your movie look nice and compact, whereas an IF / END block improves readability, etc..

    I am currently writing sequences to use flow control measures (IF / END, SELECT / CASE, FOR, WHILE) for USE related to logical tests, where decision making or a loop is part of the requirements customer and pre conditions TestStand logic such as this.

    See you soon,.

    Charlie

  • HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE

    HOW TO PASS THE HEX OF THE MAIN PROGRAM VI ENUM, SUB VI ENUM VALUE.

    HOW THEN IT WILL CHOOSE CORRECT ON SUB VI HEXAGONAL ENUM VALUES.

    Enum values are strings, you must first convert the hexadecimal value to a hexadecimal value chain represtation.

    Then that convert from the enum.

  • How to display on the main façade of the progression of each sub Vi?

    my program has many void screws, I want to show in the main façade of the status of each sub Vi; What is the best way to do it?

    at least I need to show that each sub vi is complete, [I can add details about the main panelsuch before: name of the file which is read by a sub - VI, graphics drawn by a Subvi, etc...]

    can I view a graph of a Subvi on the face before of the main Vi?

     

    what I did HV is attached as an image.

    follow the example... from your example: looks like your explicit property node wants to a stream of data (LDM)

  • How to monitor the status of the main led VI, when LED changes in sub VI?

    In a sub VI a light on and 5 seconds later, the LED is off. How to read the status of the led in the main VI? The sub VI gives me only the situation of the end (LED off)

    Hi Johnny45,

    Please see attached examples for my suggestions.

    First example: sub_LV85.vi and main_LV85.vi

    Second example: Example2_sub_LV85.vi and Example2_main_LV85.vi

    It will be useful.

    Mike

  • Display a message to the main user of sub vi VI

    Hello

    I have a question which I'm sure he has met before, but I couldn't find it via the function or search with Google.

    On my main vi, I have a link to a sub vi, this subroutine vi check something and then displays a message to the user. The next step in the sub VI depends on what users on the input message is. But when I run my main vi, that the display (of course) is not, because I do not have a link between the two.

    Is it possible to send the message to the main vi and return the action the slot vi?

    Thank you

    Given that everything that happens in the sub vi, why would you go back to the main vi?

    Do you use the express vi "Prompt the user for entry" to get an input from the user?

    Can you post your code or make some dummy vi to visualize your problem?

  • How to call a function within a movieclip on the main timeline in CC animate canvas?

    Hello world...

    In AS3: Function (fnc name: myFunction) inside a Movieclip (mc1). I'll call you timeline mc1.myFunction ();

    But how to call AnimateCC canvas?

    If you have an instance of MovieClip named "mc" with the following code in to:

    This.Fun = function() {}

    Alert ("Hey!");

    }

    You can call this function (increased to 'this' within the MC) using the oon following the main timeline:

    var root = this;

    this.mc.addEventListener ("click", function() {}

    Console.log (root.mc.fun ());

    });

  • How can I create a sub navigation, detached from the main navigation bar.

    I'm in the middle of the development of a Web site that features two areas of navigation. In the upper part of the site I have the main navigation, with House, about, work and communicate with, while in the lower part of the page work, I want to add navigation sub disciplines such as Visual identity, brochures and flyers, annual reports, etc.. It will be the child pages on the work page.

    I can't find the option to detach the navigation under the disciplines of the main navigation. Can someone tell me how I should create this possibility so that the sub navigation will be generated automatically, but detached from the main navigation?

    See you soon,.

    TimNavigation_SubNavigation_Example.png

    Unfortunately two unique sets of generated navigation automatically is not possible currently. An alternative is to create your navigation bar with a menu manual, low browsing with a menu widget, and then disable the top-level pages appear in the menus (on the preferences page, or by right-clicking on a page in outline view). Since there are more pages in the navigation at the bottom, this could at least save time by keeping only the automatically generated value.

Maybe you are looking for

  • Request to format the hard drive

    What a good application to format a hard drive that would be sold to someone else? I m usually a larger capacity hard drives and hard disk which has been the main drive, even if it is formatted through disk utility change, it offers a way to complete

  • Error connecting to server Apple ID

    I try to connect to the App Store on my iMac running 10.11.4 and get the message "There was an error connecting to server Apple ID" I then tried to access App Store from my iPhone and iPad and had no problem connecting. What the * beep * is the probl

  • Chromebox: Chromebox connection requires two attempts

    When I connect to the chromebox my password gets rejected on the first try but accepted on second try, always. To circumvent and to save time I have just a couple of keys to type then wait for the second attempt and put in my regular password. I have

  • Compaq Presario CQ62-412NR does not start. Caps lock flashes.

    The LED caps lock flashes repidadly with long breaks between each blink, the wireless light and constant and the adapter LED is steady. I read blink codes and determined, he was the processor, but the problem persists after him substituting a known g

  • XW6400: SSD and HDD bluescreen

    My old HARD drive player has accident and I bought an SSD for my workstation, ADATA SX900 SATA III.  I put SSDS with and drive HARD Seagate Barracuda 1 TB SATA 7200 RPM, and at first glance, everything was ok, after 2 days, my pc has slowly gel and o