Running tcl script in parallel with vi code

i need to run a tcl script from within a vi but i don't want to be blocked by tcl script. right now when i call tcl script within my vi using "system exec" vi, the rest of the code in my vi does not get executed until tcl script exits. i need to run tcl script in parallel.
an equivalent operation in unix can be done by running a script in background using &.
any ideas how to do it in labview.

Go to your help menu and select Show Context Help. Move your mouse over the function. You'll now see the help for the function and you can read what the input called 'wait until completion? (T)' means.

Similar Messages

  • How to run .tcl scripts with VTK?

    I have a bunch of .tcl scripts that use VTK. How do I run them? I have tcl/tk/vtk installed, but when I try to run `tclsh script.tcl` it outputs errors about VTK. On other distros i saw a binary named `vtk` that could run .tcl scripts out of the box. Is there something like this on Arch?
    Thanks.

    Hi, vtk is in community. It should supply the tcl bindings. I once was the maintainer when it was in AUR. It works here with the tcl examples that come with the vtk package. Have not tested the version in community yet.

  • Running Matlab Scripts in Parallel

    I have several MATLAB scripts running in my LabVIEW VI via MATLAB script nodes, and one of them in particular slows by program down considerably.  It dawned on me that I could just take the slowest commands in the script, place them in a script node running a separate VI, and run the two VIs in parallel.  It seems it doesn't work that way, though - my main program runs a little faster than it did before, but I only get a major speed increase when I stop the second VI.
    I realized a long time ago that two VIs running in parallel share the same MATLAB environment and can even address the same variables, but it never occurred to me that I couldn't actually run two MATLAB scripts at the same time - and that seems to be the case.
    What would be the best way around this limitation?  Is there some way I can force the two VIs to use separate MATLAB environments?  (There's plenty of resouces available on the computer, so I'm not particularly worried about inefficiency.)  Would compiling the VIs or compiling the scripts somehow help?

    What is your LabVIEW version. How complicated is the matlab code? Would it be easy to rewrite it in plain LabVIEW?
    Have you tried to see if it runs in mathscript instead?
    ( I am not sure about performance comparisons and I also don't know if mathscript can run in parallel.).
    How many CPU cores do you have?
    LabVIEW Champion . Do more with less code and in less time .

  • Embedded Event Manager - SNMP - run TCL script

    I would like to run a tcl script on a router using snmp. I understand Embedded Event Manager can do this but haven't found what I need to run that.  Can someone point me in the right direction?

    Yeah, you could do this, but it depends on your version of IOS.  You will need EEM 3.1 or higher (15.0) to be able to intercept SNMP GET requests.  Then, you could do something like:
    event manager applet snmp-trigger event snmp-object oid 1.9.9.9.9 type gauge sync yes istable no action 1.0 policy my_tcl_policy.tcl action 2.0 snmp-object-value event-id _event_id gauge 0 next-oid 1.9.9.9.9.0 action 3.0 exit 1!snmp-server manager
    Then, when you query 1.9.9.9.9.0 on the device, the Tcl policy "my_tcl_policy.tcl" should execute, and the snmp-trigger applet policy will return a value of 0.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • Run a  script before shutdown with launchd

    Is there a way to run a shell script before shutdown with launchd? In 10.4, I have a shell script to remove user's folder when a user logs off.
    Lisa Perez

    the only way to do it that I know of is using a logout hook. see this link for details
    http://www.bombich.com/mactips/loginhooks.html
    However, I'm not sure exactly at what point in the logout process the logout hook is executed so there might be a problem running a script that deletes the home directory of the user that's being logged out.

  • How to run tcl scripts with arguments on OMBPlus

    Hi,
    I am trying to deploy mappings from OMBPlus. I could do it by saving step by step commands to a tcl file and run it on OMBPlus as
    source e:\\mi\\test.tcl
    Contents of test.tcl is:
    =======================
    OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
    OMBCC 'S80_DWH_PROJECT'
    OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
    OMBCC 'S80_OWBTARGET'
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
    'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
    SET PROPERTIES (OPERATION) \
    VALUES ('CREATE') SET REFERENCE MAPPING \
    'DWH_BA_MAPPING'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
    puts "Mapping Deployed..."
    OMBDISC
    ===========================
    Now i want to pass mapping name as argument/parameter, so that my script can work dynamically. I tried following in test.tcl:
    OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
    set mapname [lindex $argv 1]
    OMBCC 'S80_DWH_PROJECT'
    OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
    OMBCC 'S80_OWBTARGET'
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
    'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
    SET PROPERTIES (OPERATION) \
    VALUES ('CREATE') SET REFERENCE MAPPING \
    '$mapname'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
    puts "Mapping Deployed..."
    OMBDISC
    and, run it as follows on OMBPlus
    source e:\\mi\\test_map.tcl DWH_BA_MAPPING
    then it is giving error for invalid arguments.
    Can anybody help me to sort it out.
    Many Thanks.
    Deepali

    As Jorg said, you can pass command line arguments when you start OMBPlus.
    If you want to pass parameters from within OMB, just create a proc and then run it...
    proc deployMap {mapName} {
         set mapName [string toupper $mapName]
         OMBCONNECT owbdesigner/owbdesigner@humistst:1521:mistst
         OMBCC 'S80_DWH_PROJECT'
         OMBCONNECT RUNTIME 'CONN_MISTST' USE PASSWORD 'owbruntime'
         OMBCC 'S80_OWBTARGET'
         OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN \
              'CRE_MAP' ADD ACTION 'MAPPING_DEPLOY' \
              SET PROPERTIES (OPERATION) \
              VALUES ('CREATE') SET REFERENCE MAPPING \
              '$mapname'
         OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'CRE_MAP'
         puts "Mapping Deployed..."
         OMBDISC
    }Run it like this
    deployMap <map_name>You can automatically load the proc when you start OMBPlus but putting it into ombinit.tcl (or put it in another file and put "source myprocs.tcl" at the bottom of ombinit.tcl).

  • Is it possible to run a subVI in parallel with the caller VI?

    I have a front panel VI which calls numerous subVIs, one or two of which I would like to execute simultaneously with the calling VI. The front panel has time-dependant operations which are being prevented from running because it is waiting for the subVIs to finish, even though no data is required from them.
    Is it possible to call these subVIs such that they run silently in the background allowing the front panel to execute unhindered?
    I've looked at the Synchronisation features but is this what I need?

    shoneill wrote:
    > It's also very important to mention that the whole multi-threaded
    > execution CANNOT be reliably observed in highlighting mode in the
    > LabVIEW development environment. You need to let the VI run
    > full-speed to see this.
    >
    > Highlighting (to the best of my knowledge) forces single-threading, or
    > acts like it does.
    This is simply a convinience by LabVIEW since humans are inherently
    non-multi treaded. What you will see in parallel loops and which can
    still be distracting is that LabVIEW seems to randomly switch between
    different parts of your diagram. In fact this is also what is happening
    in normal execution but the execution switch is so fast (each individual
    operation typically taking microseconds it
    seems they execute in parallel.
    The nice part of LabVIEW since version 2.0 somewhere around 1988 already
    is, that it provides this seemless multithreading on every single
    platform even if the underlaying OS is not multithreading capable at all
    (Win3.1, MacOS).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Creating a job that runs a Tcl script

    Hi,
    We currently have a scheduled job running a Tcl script on a 8.1.7 DB. My question is, can I still use the same setup in 10g DB (i.e. creating a job that runs Tcl script)? If I can, how am I gonna do it?
    Thanks,
    howie

    It depends on how you scheduled the job in 8.1.7 DB.
    By Cronjob? Yes you can do the same to connect to 10g
    By DBMS_JOB?. Yes you can do it in 10g and in addition, can improve it with DBMS_SCHEDULER
    Via OEM? Yes in can use Enterprise Manager to create a Job that runs the Script.

  • Help with tcl script with labview

    I am trying to run a program using tcl script via labview.
    Currently I am using wish80 tcl to run it. And it works fine.
    I tried using example I found on NI website called Run Tcl Script.vi
    I will attach the vi and the tcl file. Hope someone will have a idea what I am doing wrong.
    Thanks
    please change the testpairs2.txt to testpairs2.tcl as it is not letting me attach as tcl.
    Attachments:
    Run Tcl Script1.vi ‏27 KB
    testpairs2.txt ‏1 KB

    Hi randyram,
    try the referenced labview example with your parameters. I guess there are some changes on the OS. (actual OS with LV6.1 to XP) :-)
    LabView Online Help:
    "Refer to the Calling System Exec VI in the labview\examples\comm directory for an example of using the System Exec VI."
    Mike

  • Cannont update E70 nad bug with phone code after b...

    launch NokiaSoftwareUpdate v1.4.39pl
    accept and start update to software 3.0633.09.04 ( using USB cable)
    time remaning 15 mintes ... nokia have white screen , during proceed to 9 minutes , and e70 is reset after reset , on e70 screen show :
    AFE_TEST_SERVER ,w19_06,(c) NMP
    test mode
    nokia
    update show information with 2 steps about put out a battery ,
    after hard reset phone is run but its a problem with PHONE CODE
    after i configure a phone i change default code to my code xxxxxx
    but after bad update code is reset to unknown code
    other bug i found my personal code enter when i change a phone code and enter twice new code show me msg error [-6]
    but old code enter correctly becouse if i use another code then after put twice new code show me message a invalid code .

    Can you please try generating and re-inserting the FB code on your page. The FB Likebox at the above link doesn't load for me from any of the mobile devices nor through a desktop. You can get the code here.
    https://developers.facebook.com/docs/reference/plugins/like-box/
    I was referring to the following Facebook Page URL that you are currently pulling the Streams and Likes for - http://www.facebook.com/phillyweddingdj which appears to be invalid. If you generate the code for it at the above mentioned plugin page, the preview doesn't generate. Visiting this link takes you to FB homepage instead.
    This is how the Likebox code should look like with minimum customization that you need to insert through Object -> Insert HTML option, notice the highlighted part that needs to be modified with a valid FB Page URL:
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like-box" data-href="http://www.facebook.com/myfbpage" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>
    </div>
    Thanks,
    Vinayak

  • Router Crashs when using EEM(TCL script)

    I wrote a TCL script to deal with my  dual-link router, but the script running for some time will case the router crash.Could you help me for this?
    Is there some problem with my script ?Thank you!
    Routers :CISCO2821
    IOS vesion:12.4(15)T8

    This looks like CSCsv52332.  This bug is fixed in 12.4(15)T10.

  • Run a script shell from plsql

    Hi everybody
    I must run a script shell after some plsql code
    It's possible to execute the script just after in plsql (without java,...)??
    thank you for your help

    Try using DBMS_SCHEDULER. Your shell script can be a scheduled job that runs right away.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
         job_name     => 'MY SHELL SCRIPT',
         job_type     => 'EXECUTABLE',
         job_action     => '/bin/sh',
         number_of_arguments => 2 );
    DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
    job_name => 'MY SHELL SCRIPT',
    argument_position => 1,
    argument_value => '-c' );
    DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
    job_name => 'MY SHELL SCRIPT',
    argument_position => 2,
    argument_value => '/home/myname/shell.sh' );
    DBMS_SCHEDULER.ENABLE('MY SHELL SCRIPT');
    END;
    Hope this helps.
    Anbu Kuppusamy

  • Preload and run js script

    Hi
    Hope someone have A clue how to get there: We work on Edge and sometimes deals with Arabic and Hebrew projects. What we want is to run A script (javascript?) with the RTL direction tag. We thought to load the script thru the "script panel". Thanks for help

    Well could you add this to your composition?
    add a class to all your text fields and it should work.
    sym.$('textname').addClass('newDirection');
    sym.$('.newdirection').css({'direction':'rtl'});
    note that the class name has a dot before it.
    You can also add the class in the UI to your text fields.

  • Unix master shell script to run jobs in parallel with dependency

    I need a master shell script which would call the following shell scripts as per below order. Kindly note that if any shell script fails then the master shell script should abort.
    Level 1     PRODUCTS
         SP_ROST_DLY_STG_lD
         SP_ROST_DLY_ITG_lD
    After Level 1 completes run below two shell scripts in parallel:
    Level 2     SP_IDL_EDGE_CON_POSTN_STG_Ld ,     SP_IDL_EDGE_ACCT_POSTN_STG_LD
    After Level 2 completes run below shell scripts as per the seqeunce and in parallel:
    Level 3     SP_IDL_EDGE_ACCT_STG_LD ,     SP_IDL_EDGE_CONT_STG_LD
         SP_IDL_EDGE_ACCT_STG_VAL ,     SP_IDL_EDGE_CONT_STG_VAL
         SP_IDL_EDGE_ACCT_ITG_Ld ,     SP_IDL_EDGE_CON_ITG_Ld
    After Level 3 completes run below shell scripts as per the seqeunce and in parallel:
    Level 4     SP_IDL_EDGE_CONT_POSTN_ITG_LD ,     SP_IDL_EDGE_VISITS_LD
         SP_IDL_EDGE_ACCT_POSTN_ITG_LD ,     SP_IDL_EDGE_VISITS_DTL_LD

    can i avoid using set -e and use some other method so that if there is an error in previous job then the next job is not triggered.Sure, but it is ugly.
    The below is not the only way to do this...
    Wrap every place you start another script with:
    $ if ! MYSCRIPT; then
        echo Script MYSCRIPT failed. >&2
        exit 1
    fibut the wrapper for parallel scripts is even worse:
    $ MYSCRIPT &
    $ MYSCRIPT_JOBNO=$!
    $ MYSCRIPT2 &
    $ MYSCRIPT2_JOBNO=$!
    $ MYSCRIPT_STATUS=`wait ${MYSCRIPT_JOBNO}`
    $ if [ ${MYSCRIPT_STATUS} -ne 0 ]; then
        echo Script MYSCRIPT failed. >&2
        exit 1
    fi
    $ MYSCRIPT2_STATUS=`wait ${MYSCRIPT2_JOBNO}`
    $ if [ ${MYSCRIPT2_STATUS} -ne 0 ]; then
        echo Script MYSCRIPT2 failed. >&2
        exit 1
    fi
    ...Now, doesn't a simple 'set -e' look much better?

  • Error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2

    Hello
    I have set up the Demo appliance landscape for the openSAP course "Introduction to SAP Fiori UX", on AWS.
    The frontend machine is OK, but the configuration and startup of the server machine has failed for some reason. When logging in with ssh to the server, this message is presented:
    The Appliance Agent detected an error and terminated.
    When asked, please provide the file /tmp/applianceagent_20141002-145658.tar.bz2.
    Note that a restrictive iptables based firewall is still active.
    I have attached the file (had to add .txt to the name to circumvent file type restrictions).
    I noticed that the appliancedeploy.log ended with these lines:
    Start database  Execute /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StartWait 3600 20
    02.10.2014 13:56:58
    Start
    OK
    02.10.2014 14:56:58
    StartWait
    FAIL: Timeout
    error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2
    Notice the 1 hour jump in time, and then the timeout error message.
    Do any of you have any idea what could be causing this, and how to fix it?
    Please let me know if you need any further information.
    Best regards,
    Bo

    Hi Hannes.
    Trying to create and activate a new instance (version 5 of the Fiori appliance), I first got this message in the CAL instance overview list:
    Instance Operation Failed
    Operation Start failed on step Start start VAs with message: Start failed for VM SAP Server due to Amazon Web Services issue : AMAZON : The snapshot 'snap-c779ff64' does not exist.
    Then I terminated the instance and tried over again. And this time the deployment worked - I have a running server, which responds to the SAP GUI, and shows the Fiori web page.
    Thanks a lot for your quick help.
    Best regards,
    Bo

Maybe you are looking for

  • When trying to open pages 08 file with pages 09

    I am trying to open an old pages08 document using pages 09 however is not letting me do so.  A message saying " to open it save it as pages09 first" is coming up however I cannot even open the file, how can I save it as pages 09 then? Very frustratin

  • How do I recover an old Apple ID password if I had deleted that email account (Apple ID Username)?

    Somehow my wife's MacBook had a guest account with my old Apple ID.  I no longer know the password for it (since I had gotten my iPhone, I had created a new Apple ID). I can't recover the password because I erased that email account and created a new

  • Photo effects missing in iMovie project

    I have modified photos adding effect and optimizations with iOS standard pictures editing. I can see picture effects also if I open images with iPhoto. when I add pictures to iMovie project all effect are missing, pictures are used in original format

  • Creating Inbound IDoc - IDOC_INBOUND_SINGLE Help needed

    Hi all, I am using IDOC_INBOUND_SINGLE to create inbound IDoc. Its creating the IDoc and processing successfully. But this FM only returns IDoc number and not the processing errors if there are any. Any way to get processing errors also? Your help wo

  • New ABAP Developer Want Some Guidance.....

    hello to everyone i am a new abap programmer. I came from a strong programming background. I just has prepared the certification C_TAW12_70 but give the exam but i failed from 2% only (passing score was 52%). Well i am preparing again and take that e