Stop running vi from another vi

Hello All,
I have some vi that is running in background and i want to stop it from another vi. The problem is that if i haven't refnum to it, i don't know how to do that.
Any suggestions?

Hi Nadav,
you have to open a vi reference to the background vi, then use the methods/properties of the VI-Server.
See the attached example, from the master.vi you can run and halt the slave vi progammatically, without passing any reference.
Good luck,
Alberto
Attachments:
remote_stop.llb ‏37 KB

Similar Messages

  • Is there any way to stop running apps from showing in dock

    Is there any way to stop running applications from showing in the dock

    MacUpdate.com for OnyX or TinkerTool, one of those has the ability to lock the Dock so no changes occur, basically giving you what you want.

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • 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.

  • Can you run fcsvr_client from another machine?

    has anyone tried running fcsvr_client from another machine:
    eg: fcsvr_client --host 10.1.1.1 --user Username --pass Password search /projects
    can't seem to figure out what they want for a user and pass. i keep getting the following error:
    CODE = E_LOGIN, DESC = no valid user identified for this action, SRC_FILE = PmsTask_SearchEntity.C, SRC_LINE = 189
    ideas?

    This post here will get were you want: http://discussions.apple.com/thread.jspa?threadID=1502389&tstart=200
    In summary in can access the db only from localhost BUT you CAN use ssh tunneling to access the remote fcsvr computer and get access to the db (in your case fcsvr_client).
    Good luck

  • Run job from another user

    Hi, first of all, sorry for my pour english.
    I'm system in a db, and i need to run a job from another user. I don't have the password. Theres a way to run this job?
    It's a oracle db 10g enterprise.
    Thanks in advice.

    I have the permissions, and I can't change the user password or application may stop. There's a way, but I just can't remember:
    PRIVILEGE
    ANALYZE ANY
    UNLIMITED TABLESPACE
    CREATE TABLE
    ALTER TABLESPACE
    ALTER DATABASE
    GLOBAL QUERY REWRITE
    CREATE MATERIALIZED VIEW
    SELECT ANY TABLE
    8 linhas selecionadas.
    Decorrido: 00:00:00.21
    PRIVILEGE
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    SELECT
    SELECT
    EXECUTE
    EXECUTE
    EXECUTE
    WRITE
    READ
    WRITE
    READ
    WRITE
    READ
    69 linhas selecionadas.
    Decorrido: 00:00:00.48
    GRANTEE GRANTED_ROLE ADM DEF
    SYSTEM MGMT_USER NO YES
    SYSTEM TRIPOA_READ YES YES
    SYSTEM DBA YES YES
    SYSTEM TRIPOA_WRITE YES YES
    SYSTEM AQ_ADMINISTRATOR_ROLE YES YES
    SYSTEM TRIPOA_EXEC YES YES
    SYSTEM PRIV_DML_STUDENTSLOG YES YES
    SYSTEM PRIVILEGE_ALL_TRIPOA YES YES
    8 linhas selecionadas.

  • How to run java from another directory

    hi,
    i have a Sample.java file in F drive(f:/Sample.java). I opened command prompt in windows and went to c: drive and try to compile as
    C:\>javac f:/Sample.java
    above command works well. it generated Sample.class file in F:/Sample.
    But, when i try to Run that file, i got the error as follow.
    C:\>java f:/Sample
    Exception in thread "main" java.lang.NoClassDefFoundError: f:/Sample
    Caused by: java.lang.ClassNotFoundException: f:.Sample
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: f:/Sample. Program will exit.
    Please guide me to run java file from another directory

    Thanks a lot. I appreciate your answer
    But, when i try to run the java program.. below message has been displayed, showing how to use the command with options....
    I didn't get the result of java program.
    c:\>java f:\Sample.java
    C:\>java -cp f:\Sample
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
    show splash screen with specified image
    C:\>

  • My iPad recently stopped running video from websites and itunes store samples

    my ipad won't run video from websites (ex. CNN just shows a still and no way to start), youtube just has the spinng timer as does itunes when I'm trying to get a song sample. Suggestions? These worked fine amonth ago.

    Close all apps in the recents tray and reboot the iPad.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Close every app. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Can't run app from another machine

    Some time ago, I created a prototype using the Flex 2 Beta
    tools, and it is working fine on the machine I built it on. When it
    runs, it reads in some XML files. It runs fine if I run it directly
    from my file system, or from the IIS server on my machine. But if I
    move the files to another directory - on the same machine - I
    cannot run the demo from the file system. I get errors on startup
    saying "file:...blah.xml may not access Internet URL". Also, if I
    move the files to a new machine I get the same problem.
    This demo is being used internally to my organization to try
    to foster the acceptance and potential adoption of Flex
    technologies within the enterprise, and we have a big presentation
    coming up and I need to get this to work on a laptop. What would be
    causing these errors, and how can I fix it? Do I have to install
    the Flex release version (which I will be doing pretty soon,
    anyway) and recompile it? I just would like to understand the
    problem, first.
    P.S. I tried adding a crossdomain.xml file to allow access
    from any domain, but that had no effect, and I'm not sure how that
    even works when launching from the local file system.

    Try adding -use-network=false to your compiler options. I
    don't know if that will work but your symptoms sound
    similar.

  • How do I interupt a dbx run app from another XTerm

    Hello,
    I am launching dbx (in java app) and running a c++ executable.
    How do I cause an interrupt to the dbx so that I can single step the program.
    Ii.e. can I do "kill -<someSignal> <aPID>" to achieve the same affect as ctrl-C at the dbx command line.
    Thanks,
    Neil

    Hi,
    We'd like to understand your query first:
    You say that you have a java application that launcehes dbx.
    This would be perhaps your own "dbx gui" written in java
    Or some people use dbx as an engine for debugging your
    higher level language/system (usually a simulation system with a langage like VHDL) and wrap a gui around it.
    Is that the case?
    Is it the case that you want to know how to implement a button in the gui to interrupt the dbx?
    Thanks.
    Rose

  • Run script, from another script

    Hello everybody. I try learn to use a scripts in AE. And I have some trouble. But first of all this:
    var AEPanel = this;
    myBTN = AEPanel.add("button", [10, 10, 120, 40], "Apply");
    myBTN.onClick = onScriptButtonClick;
    function onScriptButtonClick()
    var scriptFile =  File("Support Files/Scripts/Change Render Locations.jsx");
    scriptFile.open();
    eval(scriptFile.read());
    scriptFile.close();
    I put this script in ScriptUI Panels folder. Panel appear normally. But! Then i click on the button, nothing happens.
    And in the debugging I see that the path to the script is identified correctly. It is true instead of spaces in the tooltip I see these the symbols:
    %20
    Pleas help me. How to properly run a script?

    Thank you Paul!
    %20 is just how space characters are encoded and doesn't matter
    Ye, I know this,.. it`s was my just suggestion...
    So. The solution in this string:
    var scriptFile = File(File($.fileName).parent.parent.absoluteURI + "/Change Render Locations.jsx")
    Everything else is identical, in my script and in your. Of course except alerts. I remove them, and now i have just my button which works fine....
    And may be you can suggest, why does not work "my" method of running the script?
    Thanks again!

  • Question re: JDS/gnome/X and running smc as another user

    Running Solaris 10 on Sun VirtualBox, have one user account in 'Staff' where I want to administer some aspects of my system for the time being as part of best practice for administration. I login to my user account, open a terminal, su - root and then run smc&. I get an error in the terminal window about DISPLAY environtment variable not being set. echo $DISPLAY reveals that it is null, so I export DISPLAY=hostname:0 and then try to run again and I still get the message. I am able to execute smc& from the shell prompt if I am logged into the root session. The only change I have made to the system operations at this point was to move /export/home to a different disk/slice and that mounts fine so and should not have caused an error anyway. If I execute xauth as root and list I get something like this:
    hostname:0 {encryption type} {RANDOM}
    hostname/unix:0 {encryption standard} {RANDOM}This is to say it would appear to be that this is set correctly. [This example|http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWabe/ADVOSUG/p33.html#NETWORKAPP-88347] leads me to believe that a null DISPLAY should still allow programs to process by the Xserver/gnome .
    My question then is:
    - How can I run smc from another users session or must I log into a session as root?
    - If DISPLAY is incorrectly set, how can I configure my system to create accounts with the correct settings?
    I should note that *xhost +*, while it disables the access control, has no affect on the outcome of executing smc&.

    Running Solaris 10 on Sun VirtualBox, have one user account in 'Staff' where I want to administer some aspects of my system for the time being as part of best practice for administration. I login to my user account, open a terminal, su - root and then run smc&. I get an error in the terminal window about DISPLAY environtment variable not being set. echo $DISPLAY reveals that it is null, so I export DISPLAY=hostname:0 and then try to run again and I still get the message. I am able to execute smc& from the shell prompt if I am logged into the root session. The only change I have made to the system operations at this point was to move /export/home to a different disk/slice and that mounts fine so and should not have caused an error anyway. If I execute xauth as root and list I get something like this:
    hostname:0 {encryption type} {RANDOM}
    hostname/unix:0 {encryption standard} {RANDOM}This is to say it would appear to be that this is set correctly. [This example|http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWabe/ADVOSUG/p33.html#NETWORKAPP-88347] leads me to believe that a null DISPLAY should still allow programs to process by the Xserver/gnome .
    My question then is:
    - How can I run smc from another users session or must I log into a session as root?
    - If DISPLAY is incorrectly set, how can I configure my system to create accounts with the correct settings?
    I should note that *xhost +*, while it disables the access control, has no affect on the outcome of executing smc&.

  • How the **** can I stop stupid apple from sending me responses from a 3 years old post to my email ???

    How the **** can I turn off email notifications to stop receiving responses from another post.
    I alredy went to my profile and turned off every option I have for notifications. But this stupid company
    Keeps send in me email notifications.
    Warning !!! If you replay to this post you may end adding stuck with one more notification to your email,
    Unable to opt out!

    Hmm. It appears you are not subscribed to any threads. Let us know if the issue continues.

  • Access to a FG from another running program

    Group, Is there any way to "get a hold of" a reference of a functional global running inside another vi?  I have a program that uses a functional global to pass data between vi's of a program.  I have this program starting up as a service when I start the computer so I don't really have access to its front panel.  Part of the data that the FG holds is a STOP flag and will shut down mulitple parts of this program.  I would like to build another program that I can start and run at will that will set the STOP flag in the "hidden" running program.  I am not sure quite how to do this.
    Thanks
    Todd

    What you are essentially asking to do is to access an internal resouce of another program. Doesn't really matter if it's a LabVIEW program. In your case you could enable the ActiveX server for the other program so you can access the VI that way. The LabVIEW Help contains information on how to enable the ActiveX server for an app and how to use it from another application. You could also use shared variables. You can take a look at this overview for more ideas:
     Community: Inter-Application Communication

  • Stopping a thread from running

    Hai
         I am new to java. It would be helpful for me if someone helps me out in doing this.
         Actually in my program ,I should
    i. Find out whether a particular file exists in the given directory or not.
    ii. If the file doesn't exist, my program should wait for certain timeframe and check for the same file again.
    iii. If the program cannot find the required file within the timeout specified, my application should exit.
         I have done (i) and (ii) using threads. But in the case of (iii), I came to know that stop() method is depricated.
         I am providing my code for a better understanding. Could you please let me know, what would be the best way to stop the thread from running after the timeout is reached in my program?
    Thanx in advance
    import java.io.File;
    public class Fileexists implements Runnable
    static Thread t;
    public static void main(String[] args)
         System.out.println("creation of object");     
         FileExists test = new FileExists();
         t = new Thread(test);
         t.start();
    // run method
    public void run()
         File f = new File("searchfile.txt");
         boolean b = f.exists();
    System.out.println();
    if(b == false)
    System.out.println("Required file doesnot exists");
    try
         t.sleep(20000);
    catch (InterruptedException e)
         // TODO Auto-generated catch block
         e.printStackTrace();
              t.run();
    else
    System.out.println("Required file found");
    } // end of run()
    } // end of FileExists class

    Actually your use of threads is a difference which makes no difference. The JVM starts an initial thread and runs your main(), at the end of which you start a thread and return. So you've just replaced one thread with another. There's no parallel processing.
    The t.run() at the end of your run() method won't work. A particular Thread object can only run once. It will give you an IllegalStateException.
    I can't see how multi-threading will help you with this task at all, all you need is a simple loop with a Thread.sleep in it.
    If you really want to use a separate thread or Timer to implement a timeout (as an exercise) then use Thread.interrupt() to wind up a thread. The looping thread should test with Thread.interrupted() in it's loop condition, if it's in sleep() when interrupted an InterruptedException will be thrown which you should catch and allow to break the loop and let the thread terminate.
    So your loop structure looks like:
    try {
    while(!Thread.interrupted()) {
        ...  do your test
        Thread.sleep(.....);
      System.out.println("Thread terminated by detecting interrupted");
      } catch(InterruptedException ex)  {
         System.out.println("Thread interrupted from sleep");
    You can get the Thread for the main thread simply by storing Thread.currentThread() in a Thread reference.
    I'd suggest using a java.util.Timer to launch your time-out and leave the loop on the main thread started by the JVM.

Maybe you are looking for

  • Unable to book order

    Hello we are facing some issues when try to book a Sales Order; This is the error we get : "The Booking Activity has error out, please contact your System Administrator." Would you please help me on this? Regards

  • Populating ADF Table from Multi-Dimensional Array

    Hello! I'm trying to populate an ADF table from a multi-dimensional array. Let's say that my array is String [] [] myArr = new String [3][5]. On my page backing bean, I have a private attribute called tmpArr like this... String [] [] tmpArr; ...which

  • Drop shadow on eps shape produces fine line when inserted into InDesign and PDF created.

    Hi I am having a few issues with an eps file that I have created. Basically it is a eps file with shapes, a gradient and a drop shadow on the outlined text - created in illustrator. All looks fine until I take it into Indesign and create a pdf. I the

  • Problem with Freezing/buffering

    Hi people, i have a problem with my 8520 curve. A lot of the time when i go to use it, it has the wee black square in the middle of the screen ( like the hands going round on a clock ) it reminds me of the internet buffering when you are trying to wa

  • My iphone contacts won't sync on my home computer

    I sync my iphone at work with the Macbook Pro I use at work. But when I get home, it won't sync with my home Macbook Pro.