Starting and stopping a VI from another VI

Hello
I have to write a VI for starting and stopping a vi from another vi. I browsed the forums for an example but couldn't find one. If anyone has an example it would be of great help.
Thanks
Ankit

I may be throwing myself into a pot of boiling water here, but...
I don't think this method is called dynamically calling a VI. Going through the LabVIEW help says this about dynamically called VIs
"You can dynamically load VIs instead of using statically linked subVI calls. A statically linked subVI is one you place directly on the block diagram of a caller VI. It loads at the same time the caller VI loads.
Unlike statically linked subVIs, dynamically loaded VIs do not load until the caller VI loads them with the Open VI Reference. If you have a large caller VI, you can save load time and memory by dynamically loading the VI because the VI does not load until the caller VI needs it, and you can release it from memory after the operation completes. You also can use the VI Call Configuration dialog box to configure when to load the subVI."
and:
"Create a strictly typed VI reference to dynamically call a VI using the Call by Reference Node. The strictly typed VI refnum identifies the connector pane of the VI you are calling."
It seems that the advantage of dynamically calling a VI you can call DIFFERENT VI's with the same function on the block diagram as long as both are strictly typed to have the same connector pane. So say you have a VI that has a voltage input and a time input and calculates the rate of voltage change, could be replaced by a VI that takes the same inputs, but does something else with the data. And both VI's could be called by the same function depending of the reference passed to "Call by Reference."
I think the method of calling a VI and not caring about when it finishes is just an Invoke Node method.

Similar Messages

  • Start and stop time differ from iPod to computer

    I joined 2 .mp3 together using a music edtion program (the first song was 4:30 and the second one 3:40) making one long sound file. The stop time for the song in iTunes is set at 8:10.
    When I play the song on my iPod, it comes to a complete halt at 4:30 and my iPod turns dead, then moves on to another song after a few minutes (without playing anything in the meantime.)
    The same song played from iTunes on my computer doesn't do that, it plays till the end (8:10).
    Can anyone explain this?
    Do I need to edit the .mp3 files in a text editor, find the code (stop time reference) that causes the bug and resave it (what should I look for if that's the case?)
    Thanks
    louis
    infos: Mac OS 10.4.7, iPod classic 30 GB software version 1.2.1

    How to use your iPod to move your music to a new computer
    http://docs.info.apple.com/article.html?artnum=300173
    Copying from iPod to Computer threads...
    http://discussions.apple.com/thread.jspa?threadID=776996&tstart=0
    http://discussions.apple.com/message.jspa?messageID=3536077#3536077
    http://discussions.apple.com/thread.jspa?messageID=797432&#797432
    Also these useful internet articles...
    http://www.engadget.com/2004/11/02/how-to-get-music-off-your-ipod/
    http://playlistmag.com/help/2005/01/2waystreet/
    iPod: Frequently Asked Questions
    http://docs.info.apple.com/article.html?artnum=60920
    Patrick

  • Starting and Stopping Instances from Netweaver Administrator does not work.

    When we go to our http://<host>:<port>/nwa and navigate to Systems. We see our instances, although we see status and UNKNOWN.
    Also, when we click down to see our server nodes, and try and restart them or stop them...we enter our user/pass for Unix and but it doesn't do anything.
    Does anyone know what is involved to get this functionality to work? We're not looking install CCMS or anything like that, we just want th ability to start and stop our cluster from the central instance web administration screens.
    Thanks,
    -Tim

    Just works for us, without needing any config.
    If your running unix the alternative method is to use a tool called JCMON, much better than NWA.
    log in as <sid>adm onto your host.
    jcmon pf=/usr/sap/PEP/SYS/profile/PEP_JC00_xxxxx
    for our production portal for example;
    Which allows you to do admin on your java instance only.
    use the menu options 10 - 21.
    Message was edited by:
            James Ibbotson
    Message was edited by:
            James Ibbotson

  • Start and stop a loop automatica​lly subtractin​g at each iteration

    Hi there,
    I know that there are some topics about it, but I could not find any solution, especially because I use the version 7.1 and cannot open new version files.
    My problem is as follows:
    I need to charge a tank from 6 to 10 in the morning, every day during 3 days. The process must start and stop automatically, which means, no bottoms to start or stop. The start and stop conditions come from the hour.
    I start with a big loop of 72 iterations, which corresponds to 72 hours.
    The tank must start at level 6 every time it starts.
    After the start, 1 unit must be subtracted in each iteration. Which means, that at 6 am the tank has level 10, at 7 am level 9 and so on. In the end, at 10 am the tank level is equal to 2.
    In the next day, the process must start again and the tank must start at level 6.
    Any suggestions? Thanks in advance.
    Solved!
    Go to Solution.

    While this may work it can be improved significantly. This really isn't a state machine. This is basically the same as your flat sequence with the exception of using a While loop with a Case statement to implement each frame.
    You should define what your actions are and create a typedefed ENUM naming them. State names of 1 through 24 are meaningless. Not to mention in your code many of the cases are duplicates of others. That would mean that all of those can be one state with logic to determine what action/state comes next. A properly defined state machine would not need the outside For loop. Without knowing your specific needs some examples of reason state names would be the following: Start, Stop, Exit, Error, Initialize, Get Tank Level, Fill Tank, Drain Tank, Idle, etc. Can you see how these are easier to understand than 1 through 24.
    There are lots of examples of state machines here. Try a search and take a look at some of them.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Starting and Stopping a Timer in Java Card + GSM

    Hi,
    I seem to not be able to start a timer that my applet has
    allocated using the PRO_CMD_TIMER_MANAGEMENT
    pro active command. I want to for example set the timer
    interval to 5 seconds and I understand from the gsm
    specs that the TLV value should then be {(byte) 0x00,
    (byte) 0x00, (byte) 0x05} as the hour is zero, the minute is
    zero and the seconds = 5 .
    The command qualifier I set to 0x00 to start the timer and
    I set it to 0x02 to stop the timer. The start and stop I
    control from two menu items. From the GSM spec the first 2 bits
    control the timer and the remaining 6 are RFU (reserved for future use),
    now I assume I can then set the RFU bits to 0.
    I then have a EVENT_TIMER_EXPIRED in my processToolkit which then plays a tone.
    The tone proactive command works but I dont seem to be able to start the time or
    stop it ?
    HELP ?
    is there any suggestions or any error in my reasoning here ?

    I tried your solution but it seems to have no effect (?)
    This is the log entry of the comms during sneding of the timer start
    command:
    (Notice that where you have the Timer Identifier tag = A4, here it is
    24 and where you have Timer Value Tag = A5, here it is 25 - these tags and the APDU's are generated with the GSM java card libs in the development kit I'm using.....) It seems to go through but the TIMER_EVENT_EXPIRED never happens....Help ? Have a look at the source code I included (maybe I'm doing something wrong)....
    **THE APDU's
    //346:
    A0 12 00 00 13
    //Fetch
    //     RAPDU = D0 11 81 03 01 27 00 82 02 81 82 24 01 01 25 03 00 00 10
    //     SW = 9000
    //347:
    A0 14 00 00 0C 81 03 01 27 00 02 02 82 81 03 01 31
    //>>Terminal response
    //     SW = 9142
    **SOURCE CODE
    //IN A METHOD CALLED FROM A MENU ITEM SELECTED
    byte[] valCurrentCallUnit = {
    (byte)0x00, (byte)0x00, (byte)0x10
    }; //i.e. 1 second
    timerHandle = reg.allocateTimer();
    proHdlr.init(PRO_CMD_TIMER_MANAGEMENT,(byte)0x00,DEV_ID_ME);
    proHdlr.appendTLV((byte) TAG_TIMER_IDENTIFIER,timerHandle);
    proHdlr.appendTLV((byte) TAG_TIMER_VALUE,valCurrentCallUnit,
    (short) 0, (short) 3);
    result = proHdlr.send();
    //the following is not suppose to be required according to GSM 11.14
    reg.setEvent(EVENT_TIMER_EXPIRATION);
    //IN THE processToolkit method, I have:
    public void processToolkit(byte event) {
         EnvelopeHandler envHdlr = EnvelopeHandler.getTheHandler();
         ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
         ProactiveResponseHandler rspHdlr;
    switch(event) {
    case EVENT_TIMER_EXPIRATION:
    doSomething();
    proHdlr.init(PRO_CMD_TIMER_MANAGEMENT,
    (byte)0x00,DEV_ID_ME);
    proHdlr.appendTLV((byte) TAG_TIMER_IDENTIFIER,timerHandle);
    proHdlr.appendTLV((byte) TAG_TIMER_VALUE,valCurrentCallUnit,
    (short) 0, (short) 3);
    result = proHdlr.send();
    break;
    } /** switch event */
    }/** processToolkit */
    Any help would be appreciated....

  • Starting and Stopping an Instance

    We are looking at setting up our CF10 server such that each application will be in its own instance, and allowing the developers access to their own instance.  Is there any way to start and stop the instances from within the instance?  We are hoping that there is some way to do this without logging into the cfusion administrator to manage the restarts of each instance.  We are installed on Windows.
    Thanks!
    Jenn

    The administrator could run the following code:
    <cfscript>
    instanceName="bkbk";
    createObject("component", "CFIDE.adminapi.administrator").login("admin_password") ;
    serverInstanceObject=createObject("component", "CFIDE.adminapi.serverinstance");
    // start the instance of given name
    serverInstanceObject.startInstance(instanceName);
    // stop the instance of given name
    // serverInstanceObject.startInstance(instanceName);
    </cfscript>
    <!--- properties and methods of Serverinstance.cfc --->
    <!--- <cfdump var="#serverInstanceObject#">--->

  • Starting and Stopping FMLE from command line yields corrupt .flv files

    I am using FMLE to record and live stream TV content. In order to this I am remotely calling FMLEcmd in order to start and stop encoding processes. The problem that I am running in to is that the .flv files generated are corrupt. The odd thing is that if I use the exact same profile XML from the GUI, then the encoding process works just fine and results appear as intended.
    Here is the way my workflow works:
    I start the process by calling
    FMLEcmd /p C:\lighttpd\htdocs\xml\default.xml /l C:\lighttpd\htdocs\logs\log.txt
    then at the conclusion of the recording I call
    FMLEcmd /s "C:\lighttpd\htdocs\files\default.flv"
    When I attempt to open the files using FFmpeg I get a codec error saying that no codecs were detected. When I attempt to open the files in VLC I get a error saying that the media types are "Undf". When I attempt to open or modify the files with flvtool2 I get an end-of-file error. My guess is that my stop command is incorrect and somehow abruptly stopping the stream, but I don't know another way to stop the stream. Do I need to specify a specific stream duration in the XML and make sure to call the stop command *after* the duration has been reached? What would cause this codec corruption when the same profile works properly from the GUI?
    Here is the profile I am attempting to use.
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>Osprey-440 Video Device 1A</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>SigmaTel Audio</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            <deinterlace></deinterlace>
            </video>
        </process>
        <encode>
            <video>
            <format>VP6</format>
            <datarate>650;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
                <quality>Best Quality - Lower Framerate</quality>
                <noise_reduction>None</noise_reduction>
                <datarate_window>Medium</datarate_window>
                <cpu_usage>Dedicated</cpu_usage>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <file>
            <limitbysize>
                <enable>false</enable>
                <size>10</size>
            </limitbysize>
            <limitbyduration>
                <enable>false</enable>
                <hours>0</hours>
                <minutes>60</minutes>
            </limitbyduration>
            <path>C:\lighttpd\htdocs\files\default.flv</path>
            </file>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\Administrator\My Documents\My Videos</directory>
        </log>
    </flashmedialiveencoder_profile>

    If issue of corrupt file after cmd line not in GUI mode. Are you using some automation to copy/paste output flv to someother location?
    AFAIK, after placing stop command, FMLE took some time to write proper EOF in FLV. wait ~10 sec for FMLE to complete file writing process and than play in FLV PLayer.
    I tried manually with steps you mentioned and it's working fine for me.I playerd file in Applian Flash PLayer. "http://www.applian.com/flvplayer/"

  • Start and stop the Communication channel from Java Mapping

    How to start and stop the Communication channel from Java Mapping in XI 3.0
    Scenario  PI - > MQ -> Third Party web application 
    Web application is down and then Communication channels are stop manually .  
    We need to automate this process,
    MQ Solution - Trigger will be set in MQ which will be called when web application is stopped
    Trigger will send u201CSTOP u201C message to PI
    How to configure PI scenario to stop different com channels when this message received ?

    check this link: http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/frameset.htm
    make sure that MQ send http request to PI. i dont think a configuration scenario is required in PI. Only roles should be enabled with proper user provided to MQ team.
    However, for security reasons, you can configure a scenario if you dont want to expose PI infrastructure directly to 3rd parties.

  • Why do videos from the internet start and stop, Why do videos from the internet start and stop

    When I try to watch even a short video from the internet, it starts and stops....its annying....any ideas?

    Maybe the speed of your internet connection has some bearing on it?
    But you could give this a try - reset Safari and see if that helps at all.
    Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Start and Stop a Windows Service From Java

    Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
    I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?

    If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
    public class MsWinSvc {
        static final String CMD_START = "cmd /c net start \"";
        static final String CMD_STOP = "cmd /c net stop \"";
        public static int startService(String serviceName) throws Exception {
            return execCmd(CMD_START + serviceName + "\"");
        public static int stopService(String serviceName) throws Exception {
            return execCmd(CMD_STOP + serviceName + "\"");
        static int execCmd(String cmdLine) throws Exception {
            Process process = Runtime.getRuntime().exec(cmdLine);
            StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
            StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
            outPumper.start();
            errPumper.start();
            process.waitFor();
            outPumper.join();
            errPumper.join();
            return process.exitValue();
        static class StreamPumper extends Thread {       
            private InputStream is;
            private PrintStream os;
            public StreamPumper(InputStream is, PrintStream os) {
                this.is = is;
                this.os = os;
            public void run() {
                try {
                    BufferedReader br = new BufferedReader(new InputStreamReader(is));
                    String line;
                    while ((line = br.readLine()) != null)
                        os.println(line);
                catch (Exception e) {
                    e.printStackTrace();
    }Regards

  • Start and Stop Weblogic From Admin Console

    Hi All,
    I am using weblogic7.0.I wanted to start and stop the weblogic server from the
    Admin Console(ie., from the GUI).I can stop the server but I cannot start.In order
    to start from admin console what should I do.
    Please post your suggestions.
    Thanks blazix

    You need to run the Node Manager on the manged servers you wish to remotely
    start.
    Chris
    "blazix" <[email protected]> wrote in message
    news:3fc37eea$[email protected]..
    >
    Hi All,
    I am using weblogic7.0.I wanted to start and stop the weblogic server fromthe
    Admin Console(ie., from the GUI).I can stop the server but I cannotstart.In order
    to start from admin console what should I do.
    Please post your suggestions.
    Thanks blazix

  • Starting and Stopping Server from Administration Console without using system ID

    Hi,
    I tried to create another user in the ACL and add it to the Administrators
    group. When I connect to the admin console using this user I receive error
    message NoAccessRuntimeException. Can anybody show me how ti configure user
    to access the console to start and stop managed server. I am using WebLogic
    6.1 SP1. TIA.
    regards,
    Rudy

    Any user added to the Admin group should be able to use the weblogic.Admin
    utility and stop the server and access the console. So if we add Rudy as a user
    to the Admin group then Rudy should be able to stop the server and also use the
    weblogic.Admin commands. however, you cannot start the server with rudy's
    password. You will require a system password for starting the server.
    Please check if the user has been added correctly to the Admin group. you can
    check this in the fileRealm.properties file:
    user.rudy=0x751cc5f18261ba5e570c19a0d2d3cc29a5c5de63
    group.Administrators=system,rudy
    hope this helps,
    Mihir
    Rudy Sutjiato wrote:
    Hi,
    I tried to create another user in the ACL and add it to the Administrators
    group. When I connect to the admin console using this user I receive error
    message NoAccessRuntimeException. Can anybody show me how ti configure user
    to access the console to start and stop managed server. I am using WebLogic
    6.1 SP1. TIA.
    regards,
    Rudy

  • How to start and stop Oracle Application Server from ANT

    How to start and stop Oracle Application Server and Web application from ANT
    Thanks in Advance.
    Mani

    Hi,
    You can use: startManagedWebLogic.sh, it is in your domain directory and you have to execute it in this way
    ./startManagedWebLogic.sh managedServerName http://adminServerHost:adminServerPort
    For instance, in my case I use:
    unixserv01:/webportal/domains/appServerWeb/bin>startManagedWebLogic.sh managedServ01 http://pelma3w3per01.mesaperu.next:7001
    You have to run it on the machine where the managed server was installed.
    Best regards,
    Raúl

  • Start and Stop Apex from linux

    I have tried to find out which script is used to start and stop apex, but i hadn't been able to find it. If i do a netstat i do not see the 8080 port open but i can use apex. If i do "service oracle-xe start" oracledb starts correctly but i cannot use apex. Thanx in Advance

    here are windows script...
    First stop db, then listener then opmn (Apache)
    net stop OracleServiceXE
    net stop OracleOraDb10g_home1TNSListener
    C:\oracle\product\10.2.0\db_2\opmn\bin\opmnctl stopproc ias-component=HTTP_ServerTo start:
    net start OracleOraDb10g_home1TNSListener
    net start OracleServiceXE
    C:\oracle\product\10.2.0\db_2\opmn\bin\opmnctl startproc ias-component=HTTP_ServerOn linux you start lister through lsnrctl start/stop "name of listener"... opmn is started the same way as shown here...
    db can be started/stopped as
    ORACLE_SID=XE
    sqlplus '/ as sysdba' @start/stop_script.sqlwhere start/stop_script.sql has:
    <b>startup</b>
    or
    <b>shutdown immediate</b>
    in it.
    Hope this helps a little

  • Adding Start and Stop characters to a text field???

    "For 1D bar codes, there are two options depending on the type of PDF form you want to use. Forms that you create in Acrobat (acroforms) can be set up to use a bar code font with a standard text field. If you want to include the standard start and stop character (*) and/or a check character, you can use JavaScript to add them. The check character would have to be calculated, but that can be easily done with JavaScript."
    How would i go about doing this. My current PDF form will pull a last name and first name onto the form in a Barcode format, but i need to add in *LNM to the start and another * at the end of the data that was pulled from a SQL data base.  example the pdf has a Text Feild named "borrower1_last_name" and that filed pulls the last name..  So i was thinking there should be an easy script like you said to add in to that feild properties.
    posting here now, becasue no one seems to be able to point me to the correct resourse on the reader forum.

    okay.. so now how do I change the space between the first name and middle inital (and even the last name) in that same field?
    something like this looks like it should work but doesnt seem to do anything.
    str.replace(/ /g, "_");
    // Add an asterisk to the beginning and end of the value
    if (event.value) event.value = "*FNM" + event.value + "*";
    //Replace black spaces with an Underscore
    str.replace(/ /g, "_");

Maybe you are looking for

  • Iphone *4S* in recovery loop able to toggle dfu but WILL NOT restore....

    I APPOLOGIZE THAT THIS POSTED QUESTION OF MINE IS SO LONG. HOWEVER, IT IS A NEED TO KNOW BASIS FOR YOU ALL IN ORDER TO ASSIST/HELP ME WITH THIS MATTER THANK YOU FOR READING.... First of all i highly appreciate all of you taking time to read this ques

  • Duplicate font in PDF causes prepress RIP failure

    I've scanned various forums trying to get a handle on this problem but nothing seems to get at this issue. A book that we've built with InDesign generates pdfs that show a duplicate MyriadPro-Light font embedded in the document. The second iteration

  • Instance is down due to error 4031

    in RAC (10.2.0.4, AIX, 64bit), instance 2 is down, check altert log, ORA-04031: unable to allocate 8416 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","KSXR large reply queue") LCK0: terminating instance due to error 4031 ( db

  • No sound in earphones

    I have ipad but from past few months m facing a problem of no sound when i connect earphones to ipad and also when i connect to another speakers there is no sound. I get sound in ipad when not connected to any accessories. Please help me to solve thi

  • Calculating oversubscription on access layer

    So, the situation is that we have about 240 users (max, no further expansion to this figure) on each floor of a building, spanning across 10 floors. As I understood from the basic calculation, for every 240 users @ 100/1000, I need to deploy 5(48 por