How to abort an executing step?

Using TS 3.0, I call CVI DLL steps. I want to be able to terminate(exit) an executing step either from TS or within an error handler within the DLL. I want the sequence to give the operator a choice to resume at the next step or Terminate with cleanup. The DLL steps are not structured to branch to the normal DLL function return(perhaps there's such a way?).

Hello Bob Balch,
The question that you have posted is not trivial to implement. However, there are ways to accomplish that task. I believe that it will be better to discuss the different programming ideas I have for you off-line, so I will be sending you a direct email in the very near future with the ideas that I have for you.
Regards,
Kevin Leonard
Applications Engineer
National Instruments

Similar Messages

  • How to use LOOP(Until) step in a Workflow

    Hi,
    How to use LOOP(Until) step in a Workflow?
    What are the steps involved in using the step LOOP(Until).

    Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
    You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
    What exactly is it you are having trouble understanding about the use of it?

  • Why do I get error -17500 when calling a batch file using the call executable step type?

    I am calling a batch file using the call executable step type. If the path to the batch file contains a space I get error -17500 and a message stating there was an error in "Post". For example the path to the batch file is "c:\TestWin\Test Files\...\Program.bat" When I run this I get the above mentioned error, however if I change my directory structure so the path is now "c:\TestWin\TestFiles\...\Program.bat" it runs fine. I use the browse feature to find my batch file so it is not me typing in a path incorrectly. I have removed the batch file and I get a different error stating that it couldn't find the file so it appears that for my error it can find the file but can't run it. I am
    sure that this has something to do with the fact that batch files are written in DOS but really don't want to resort to changing my directory structure on all my test stations. Is there any way to fix this problem so I can leave a space in my path?

    It appears I have figured it out. This was on another computer so I was unaware of how they used their computer. I like you got it to work in the temp directory and in fact got the program.bat file to work as long as I put it under the temp directory, but when I switched out to my TestWin directory it wouldn't work, so I removed everything from the directory except the batch file it self and it work. What I found out after adding files in one at a time is that the person had a file called "Test" with no file extension in there "c:\TestWin\" directory. Removing this file made it work. Putting the file back broke it. So it appeares that when teststand was running it followed the path saw a space and attempted to grab the "Test" file instead of bro
    wsing into the "Test Files" directory. If you create a file in your temp directory called "temp" with no file extension you will see the same problem. Thank you for your help.

  • How to compile and execute a Pro*C program on Unix?

    Hello Gurus,
    I am new to Pro*C. I just wrote a sample Pro*C program 'first.pc' to read some information from some tables and print it on screen.
    I am not sure how to compile it and execute it to see the output of my very first program.
    After searching a lot I tried following ..
    -- Step 1 compile the program into .c program
    $->ls -lrt first.pc
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    $->proc first.pc
    Pro*C/C++: Release 8.1.7.0.0 - Production on Sat Oct 31 05:43:35 2009
    (c) Copyright 2000 Oracle Corporation.  All rights reserved.
    System default option values taken from: /oracle/app/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    $->
    -- Step 2 Generate the .o file
    $->cc -I${ORACLE_HOME}/precomp/public -c first.c
    first.c: In function 'main':
    first.c:154: warning: return type of 'main' is not 'int'
    $->
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    -rw-r--r--    1 sqloper4 staff          3709 Oct 31 05:45 first.o
    $->
    -- Step 3 After that link the .o to libraries and produce the exe
    $->cc -o exe_name -L $ORACLE_HOME/lib -lclntsh
    ld: 0711-317 ERROR: Undefined symbol: .main
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    $->
    $->ls -lrt first*
    -rwxrwxrwx    1 sqloper4 staff          1069 Oct 31 03:39 first.pc
    -rw-r--r--    1 sqloper4 staff             0 Oct 31 05:43 first.lis
    -rw-r--r--    1 sqloper4 staff          6648 Oct 31 05:43 first.c
    -rw-r--r--    1 sqloper4 staff          3709 Oct 31 05:45 first.o
    $->After all above still I am not sure how to proceed and 'execute' the program.
    Could you please help me with the steps to 'Compile and execute' a Pro*C program ?
    Oracle DB Version : Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    OS : Unix
    Thanks in advance!

    Hi All,
    After reading Pro*C Question thread I have tried below steps to compile my .C program, but failed with the given errors
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o sample
    ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit statusAfter receiving above error I tried below command as an alternative
    $->cc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib first.c -o first -lclntsh -lsql10
    collect2: library libsql10 not foundCould you please help in resolving above error? Whats missing exactly?

  • Why i cann't get the executed step index of main segment of a sequence?

    Hi, Everyone!
    Could someone help me ,Pls?
    Query:
            How can i get the executed step index of main segment of a executed sequence?
    Aim:
           I want to let Teststand reveal the executed step index no matter when it running in main segment, setup segment or cleanup segment when i terminate executing sequence.
    My action:
          I add a Statement step in SequenceFilePostStep , the content is FileGlobals.GetArrayOffset1= RunState.Sequence.Main.GetArrayOffset("Pass/Fail Test1",0,"0").
          but it cann't work, and it is error.

    The backslashs are escape characters which tell the expression to interpret the " " as actual quotes. Since the expression Doug posted had other quote marks in it here: ("", 0, "[\"Pass/Fail Test1\"]")  we have to escape the inner quotation marks so that the expression will be interpreted correctly. The backslash does this.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How to add a delay step

    Hi,
    we have come across a issue in work flow. And we have very little idea on work flow.
    Can any one please let me know how to add a delay step behind existing step X.
    Also let me know how to do below options to perform this operation like 
    1. Like in ABAP delay for few seconds
    2. Or simply making use of desired start time logic.
    Thanks in advance.
    PRaneeth

    Delay?
    You mean that you want to stop the execution of the workflow for a specific period, right?
    Like in ABAP delay for few seconds
    This can be handled by using a WAIT STEP  of the workflow, I meanthe use of this wait step is , in brief, if at all you want to stop the execution of the workflow  until a specific Event is raisedthe workflow execution stops and as soon as the specified event is raised then the remaining part of the workflow is executed.

  • Max Executed Steps Exceeded

    Hello All. I ran into a situation where a caller got aborted due to:
    com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException: No. of executed steps: 1000
    I have read other posts related to this and understand that this is due to the number of steps in a script going over the default 1000 steps. However looking at the call start and end time I am confused to why this happened. I have a queue loop setup in my script that delays every 30 seconds and the total duration of the call was around 19 minutes. So one of the calls that got aborted went through the loop around 38 times. Do annotations in a script count as a step? If so then this may be part of the reason we reached the greater than 1000 steps. Also, what issues can occur if I set the system parameter to greater than 1000 steps? I have attached my script and thanks for any input.

    Hello Gajanan,
    Thanks for the reply. The problen with leaving this at 1000 is that I am only getting a maximium of around 25 minutes in queue. I did find out that annotations where included in the step count so I removed these and that helps some. I had 7 annotations in the queue loop that are now removed. I have also increased the max executed steps to 2000 on advise from TAC. The only thing I was warned about is this is what keeps the "infinite loops" from running away with the processor and I am fully aware of this. This increased the time a caller has to remain in the queue to over an hour. My theory is that if a customer wants to hang on for an extended amount of time then the system should support it. We are small and only have a T1 coming in so the load is next to nothing on the server. I will keep a close watch on the server though and make sure that performance does not degrade by doing this. Again thanks for the reply.

  • Marco cannot execute step by step.

    Dear Expert,
    i have created a macro including a lot of steps.
    in my sceranio, i have created a macro like this:
    step 1:
      Row 1 = row 2 + row 3
    Step 2:
      row4  = row 1.
    Step 3:
    IF
      row4 > row5
    write an alert.
    When i run this macro, it can only execute step 3. i don't know why?
    please explain for me and correct it.
    And tell me how can i execute marco at aggregated level and location level or product level.
    thanks so much.

    Hi,
    I did not understand first why you copied row 1 to row 4. However, this should still not cause an issue.
    This kind of macro is a very basic macro, and you must be missing some very basic thing somewhere.
    In all the steps, I hope you have repeated the iterations sufficient number of times (means covering the complete time horizon that you need).
    Hope you did not change the attribute of data source from "values" to "attributes". Double click on your rows in the macro, and check this in the section 'Data Source: Value or Row/Column Attributes'. You should have "values" there.
    Regarding running at aggreagated or detailed level: If you are in interactive planning and you have allowed "direct execution" for your macro, then do the data load at an appropriate level, and run the macro. Same also applies if your macro is default or start macro (or another type), when you would load data at appropriate level through selection, the macro would execute at the correct level.
    If you run the macro in background job, then you can specify the aggregation level in the background job variant.
    If you want to change the aggregation level for some reason during the execution of macro, it's possible to use functions DRILL_DOWN and DRILL_UP.
    What exactly is your requirement?
    Hope this helps.
    Thanks - Pawan

  • Debug error: Errors while executing step

    Hi gurus:
    While debugging a complex mapping, I received the following error.
    DEPENDENCY: EXPR executing...
    Errors while executing step
    DEBUG INPUT ROW: 1
    TABLE: DBG$ID2_MTL_SYSTEM_ITEM_B_GR
    STATEMENT: TRACE177:TRACE180:
    "GE_8_SY"
    ("DBG$ID2_MTL_SYSTEM_ITEM_B_GR_I$1"):=
    ""DW_PG".GET_COURSE("MT_1_IN$2"
    ("DBG$ID2_MTL_SYSTEM_ITEM_B_GR_I$1"), "MT_2_OR$2"
    ("DBG$ID2_MTL_SYSTEM_ITEM_B_GR_I$1"), 'CATEGORIES', 5)/*ATTRIBUTE EXPR.OUTGRP1.ID2:EXPRESSION*/;
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.UTL_FILE", line 41
    ORA-06512: at "SYS.UTL_FILE", line 478
    ORA-06512: at "DW_PKG", line 377
    ORA-06512: at "DW_PKG", line 3424
    ORA-01403: no data found
    As a background, the error occurred at EXPR step which is calling a function. Function calls additional tables in the source schema (tables not brought into Staging) I have imported the Package from the DB (Target) Do I need to do something special for the function to be able to access the tables in the source schema?
    Thanks in advance for your help.

    I ran into a similar problem about a year ago.  Very random, but kept happening at least once a week.  Finally figured out that the static IP address for our server was left in the dynamic IP address pool.  So every so often, the address was dynamically assigned to a second machine.  Which caused a similar type of problem that you are seeing.  I don't know if this is your problem.  But it sounds familiar.
    Hope it helps.
    Mike

  • How to create and execute a function whose return value is  a table

    hi folks ,
    i would like know how to create and execute a function whose return value is a table ,
    am new to pl/sql ,
    my statement for the function is
    SELECT ct.credential_code, c.expiration_date
    FROM certifications c, credential_types ct
    WHERE ct.crdnt_id = c.crdnt_id
    AND c.person_id = person_id;
    i would like to have the result of the above query as return value for the function.
    Thanks in advance ,
    Ashok.c

    hi Ps ,
    Can you please do small sample ,
    that would help me in clear understanding
    thanks in advance
    ashok.c

  • How to compile and execute lex,yac,c and java programs

    its the 3rd day on my New MacBook pro..
    as i just migrated from windows to mac i love to work on this..
    The main problem  is i DON't know .......
    how to compile and execute
    1) lex and yac programs
    2) c program
    3) java program
    so please help me
    THIS is the error i got   a1.l is a program
    i got the same error when i used  gcc
    $ lex a1.l
    $ cc lex.yy.c                                 
    Undefined symbols:
      "_yywrap", referenced from:
          _yylex in cc8QDQjW.o
          _input in cc8QDQjW.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    Is the problem that you don't know how to compile and execute these programs on a Mac, or just that you don't know how to compile and execute them?
    Mac OS X is really just a version of BSD Unix, as far as programs like like bison, flex and gcc are concerned...and even when Apple specific versions are provided in the Developer Tools, there are symlinks in the usual places in the Unix file hierarchy.
    For problems with lex and yacc, I suggest you start with their own references, for example, here.
    Or you could just use %option noyywrap, if you only have one file to scan.
    Or you could link to libfl.a using -lfl and use the default version from that library.
    But you really should (as Keith Barkley was subtly hinting at) learn how these tools work and why they work that way.

  • How to compile and execute programing languages

    its the 3rd day on my New MacBook pro..
    as i just migrated from windows to mac i love to work on this..
    but i my main problems is i DON't know .......
    how to compile and execute
    1) lex and yac programs
    2) c program
    3) java program
    so please help me
    THIS is the error i got   a1.l is a program
    i got the same error when i used  gcc
    $ lex a1.l
    $ cc lex.yy.c                                  
    Undefined symbols:
      "_yywrap", referenced from:
          _yylex in cc8QDQjW.o
          _input in cc8QDQjW.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    You're trying to build something that depends on a library you don't have, or haven't referenced. This sort of question belongs in the Developer forums.
    Developer Forums: Apple Support Communities

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • How to create an executable

    Hello, I am trying to figure out how to make an executable file from LabVIEW. This is my first time ever creating an executable so I need instructions in basic terms. I tried to do it using the project manager. The file that was created needs LabVIEW Run-Time in order to work.
    Is it even possible to have a LabVIEW program and create an executable that would let any computer without NI products run the appllication?
    Also, I searched for some instructions of how to do this but could not find any useful ones. If anyone can direct me to a post or set of instructions that explain how to create an executable that would be perfect. Thank you!
    Solved!
    Go to Solution.

    Is there any way i can make the RunTime install silently with no user interaction? If I can, how? I have looked at other posts and how NI tell me to do it (http://digital.ni.com/public.nsf/allkb/188FE05BA8933F4486256BC300708527) , but it is way over my head. Is this the right way? or is there a simpler way?
     I do not understand how to compile the installer and executable file together. I can create the executable from the LabVIEW file that I need to run, but I want the RunTime to install automatically before that executable is executed. (If this statement doesnt make sense, tell me. )
    Any feedback would be appreciated.

  • How TO CALL c++ EXECUTABLE FROM XI(VERY iMPORTANT)

    hI ALL
    pLEASE DO GIVE SUGGESTIONS AND DOCCUMENTATION LINKS  THAT <b>HOW TO CALL c++ EXECUTABLE FROM XI</b> .THIS IS VERY IMPORTANT AND YOUR HELP WILL BE REWARDED.
    WITH REGARDS
    SUBRATO KUNDU

    Hi Subrato,
    AFAIK you can call C / C++ methods in Java using Java Native  Interface (JNI).
    Please refer the following links for how to do the same.
    <a href="http://www.nag.com/IndustryArticles/CallingCLibraryRoutinesfromJava.pdf">For C:</a>
    <a href="http://www.javaworld.com/javaworld/javatips/jw-javatip17.html">For C++:</a>
    Regards,
    Ananth

Maybe you are looking for

  • Image processing doesn't show

    Hi! I am trying to do image processing, where it will detect the object and box it up when detected.  However, I did not manage to detect the object, which in this case, a masking tape. Can anyone tell me what is wrong and how to solve it? Below is t

  • I hear my 2010 17" Macbook Pro starting but no picture on screen. HELP!

    I have a 2010 17" macbook pro with no upgrades besides software updates, instillation and small normal things like those. I left it on one night when i fell asleep listening to pandora (internet radio). The next morning i connected the charger to it

  • Problems with mapping the BOM and ROUTING

    Hi. in my business process for manufacturing one finished product.it needs 2 operations. in the first operation  there are 4 raw materials. the first operation produces a material x. and this material x goes in to the 2nd operation and  and there the

  • How to upgrade from OS X 10.4.11 to mountain lion?

    i recently got a macbook and it is quite an old one because its second hand, and it has software version 10.4.11 on it. i've had troubles downloading things because no programs are built for such old software. i think the only way to get past this is

  • Site doesn't get updated

    I've created a site with iWeb, embedded a song and clicked on the Publish button. The site was published, but I forgot to make the song loop. So I went to iWeb and checked the loop box in the Inspector (quicktime tab). I saved the change and hit Publ