Record Results from sequence call inside of SequenceFilePostStepFailure Callback

Test Stand 3.1
When a step fails I use SequenceFilePostStepFailure Callback.
In there I have prompt:
1. Continue
2. Terminate
3. Terminate (thus calling a power down sequence file)
Problem is that when Option 3 is used. There are no results recorded from that sequence call because it was invoked from the Callback.
How do I force record results when that sequence file is called?
Attachments:
RecordResultsProblem1.zip ‏10 KB

Hello Jaws8you,
After looking into this issue further, it appears as if the link I posted has some great information but is not an exact fit for your particular situation.
Because results from sequence callbacks will not populate in the report, we need to make sure and have any results we would like included in the main sequence.
In your case we are just going to put the sequence call in the "Clean Up" tab, which will report the data, and is good programming practice.
So to fix this problem, let's go ahead and try this:
1.) Change the variable "Locals.ButtonPressed" to FileGlobals.ButtonPressed in the locations that you have it so far
2.) "Cut" the "Call Main Power Down" sequence call from the "SequenceFilePostStepFailure" step, and copy it to the "CleanUp Tab" of "Main Sequence"
Basically, that should be it. What this will do now is run the "Call Main Power Down" sequence when button 3 is pressed and skip this step whenever button 1 or 2 is pressed. The result is then published in the report.
This should work out the best for you, thanks for posting and have an awesome day!
With warm regards,
David D.

Similar Messages

  • How to add results to report from sequence call disabled in report options ?

    Hello,
    I need to add text to report from a sequence called by a sequence call. The record results option for the sequence call is disabled because the sequence call is normally done thousands of times. Therefore, I don't want to fill in useless text in the report. But, if a certain condition in called sequence fulfills, I would put a text into the report. (Yes, this is related to a sporadic communication problem with the instrument which I want to record into the report.) Which options I have ?
    I have attached an example which doesn't add the text from the sequence to the report.
    Regards,
    Petri
    Attachments:
    report test.seq ‏45 KB

    Hello Ray,
    I encounter same behaviour with NONE adapter action step with post-expression as with a statement step as in my first example. With other words, if record results in sequence call in mainsequence is disabled, I cannot get any records into the report.
    Attached a modified sequence using NONE adapter action.
    Regards,
    Petri
    Attachments:
    report test.seq ‏53 KB

  • Howto get result of the calling-step in SequenceFilePostStepFailure

    Hello,
    i have a sequence with a SequenceFileCallback "SequenceFilePostStepFailure".
    How can i create a popup that displays the following values:
    - Name of calling-step
    - sequence-name of calling step
    - result of calling step
    - limit (low, high, string) of calling step
    I found:
    RunState.Caller.Step.Name,
    RunState.Caller.Sequence.Name
    but nothing for result and limits.
    Thanks for any help

    This should handle what you're looking for and then some. I use this with the retry expression that allows for the whole sequence to be repeated. Probably shouldn't allow for the "Force Pass". I think it origianally came from TestStand examples and I modified it, but I couldn't tell you which example.
    Why do geeks think Halloween and Christmas occur on the same day?
    Because 31oct = 25dec!
    Attachments:
    PostStepFailure2.seq ‏13 KB

  • Result from reentrantly called subvi

    I have a subvi that I am calling reentrantly, I need to pass a cluster result back.  Doesn't look like I am doing it right because I am not getting any results.  
    Image resultfromsubvi.png I am calling the subvi.
    Other image is from the subvi in which I bundle the double's up.  I know that I have the same value going into 3.
    Just testing.
    Thanks in advance.  
    Attachments:
    resultfromsubvi.png ‏13 KB
    resultfromsubvi-2.jpg ‏11 KB

    tartar813 wrote:
    I am reviewing how to pass the indicator reference to the subvi to update it from the subvi. 
    Do you think that would work?
    Well sorta.  Again I don't know the full story and how this is intended to be used.  But yes that is one option is to pass the reference to the UI control to each reentrant sub VI.  The issue you will run into is these reentrant subvis will be updating the UI control asyncronously so indicator will be constantly overwritten with new data.  If you plan on logging the data as it comes in you will run into issues keeping track of what data came from where and when.  If you don't care about this type of thing then a control reference maybe the easiest.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Inconsistent results from database calls

    Hi all I was wondering if anyone would be able to come up with some possible ideas as to why my application is inconsistently retrieving data from a database. I have an application that is pulling information from a database. These calls can be made repetitively pulling the same information over and over again. The quandry that I am faced with is why the application would pull the right data most of the time, but occasionally not pull the correct values.
    I have consided the following:
    blocking - all of the calls are read only and scroll insensitive so I doubt this is the case
    Limited number of connections
    Seems like apossibility but then I would expect an error to be thrown.
    Actions happening to fast
    I was thinking perhaps the cycle is completing before everything has had a chance to finish the last set - is that a possibility ?
    I can't post the code, so I am just looking for any general thoughts or ideas on the topic, if nothing thanks anyways.

    Thank you both for your thoughts. The transactions is definately not a possibility (at least as I understand) as this is on read information only, there is no commits nor any updates being completed by this method.
    I will continue to hunt down this little bugger. The biggest issue is that it is one behemoth of a method that should not exist, but unfortunately does.

  • XML as result from webService call from JSP

    I have a jsp page, where I will invoke a WebService call, which will return
              a big XML object back to me, of which I need to select few key-value pair as
              display item in a table only as result.
              Any idea how to achieve this,
              Thanks & have a nice day!
              Vikky

    I have a jsp page, where I will invoke a WebService call, which will return
              a big XML object back to me, of which I need to select few key-value pair as
              display item in a table only as result.
              Any idea how to achieve this,
              Thanks & have a nice day!
              Vikky

  • How can I record video from video calls?

    I would like to find info on using video camera for moving pictures when on Skype call. I would like to record my grandkids in action, not just stills.
     

    Try this program:www.webcam-recorder.com 

  • Views - SELECT from VIEW and SELECT from the query inside view definition returning different results

    Hi,
    I am facing this weird issue. Any help would be appriciated.
    I have view with the following definition:
    CREATE VIEW [marketing].[OpenedMails]
    AS
    SELECT
    ID_EmailAddress, 
    ID_Date_Opened, 
    ID_Contact, 
    ID_MailSendJobs,
    COUNT(ID_OpenedMails) AS OpenCount,
    CASE
    WHEN ROW_NUMBER() OVER (PARTITION BY CAST(ID_EmailAddress AS VARCHAR(10)) + ' ' + CAST(ID_MailSendJobs AS VARCHAR(10)) ORDER BY ID_Date_Opened) = 1 THEN 1 
    ELSE 0 
    END
    AS UniqueOpenCount
    FROM            
    dbo.Fact_OpenedMails
    where ID_Contact = 382340
    GROUP BY ID_EmailAddress, ID_Date_Opened, ID_Contact, ID_MailSendJobs;
    order by ID_MailSendJobs 
    When I run the the select statement in the view definition I get combination of both 1 and 0 for the 'UniqueOpenCount' column.
    But when I run the select from the view itself using the following query:
    SELECT [ID_EmailAddress]
          ,[ID_Date_Opened]
          ,[ID_Contact]
          ,[ID_MailSendJobs]
          ,[OpenCount]
          ,[UniqueOpenCount]
      FROM [marketing].[OpenedMails]
    I get equal amount of rows but only 0 values for the 'UniqueOpenCount' column which seems to be very weird to me. Why is this happening ? Can anyone help regarding how to solve this ??
    Result from the select inside view definition:
    Result from the select query directly from the view:
    Thanks in advance.
    Vivek Kamath

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You failed. Temporal
    data should use ISO-8601 formats – you failed again. Code should be in Standard SQL AS much AS possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Things like “ID_Date_Opened” are wrong. The affixes “id” and “date” are called attribute properties in ISO-11179 and data modeling. Since a date is a unit of measurement on a temporal scale, it cannot be an identifier by definition. My guess is this would be
    “open_date” if it were done right. And the only display format in ANSI/ISO Standard SQL is ISO-8601 (yyyy-mm-dd)
    An email address of -1?? Email addresses are VARCHAR(256), not numeric. There is no reason to cast them AS string!
    Your vague “mail_send_jobs” is plural, but columns hold scalars and cannot be plural by definition. The partition cause can hold a list of columns: 
    WHEN ROW_NUMBER() 
         OVER (PARTITION BY email_address, mail_send_job 
                   ORDER BY open_date)
         = 1 
    THEN 1 ELSE 0 END 
    This still makes no sense, but the syntax is better. You do not understand how ROW_NUMBER() works. 
    Would you like to try again with proper Netiquette? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Inconsistent results from CallableStatement

    We are getting inconsistent results from a call to an Oracle database. We have a CallableStatement that returns 4 INTEGERs.
    It runs perfectly if I run the Oracle procedure directly from the sql command line and then call it from the java code.
    However if I recompile the Oracle stored procedures and execute the Callable Statement (without first running it from sql) then I am getting incorrect results...1,2,1,1 is being returned instead of 1,2,0,3. Are these results being cached somewhere???
    We are using Oracle 8.1.7, JDK 1.3.1, and Oracle thin driver 8.1.7.
    The code is as follows:
    <pre>
    private CallableStatement autoLBNumbersNeeded;
    private void prepareStatements(){
         autoLBNumbersNeeded=dbConnection.prepareCall("{CALL
         pkg_scheduler.pr_auto_lb_nos(?,?,?,?)}");
         autoLBNumbersNeeded.clearParameters();
         autoLBNumbersNeeded.registerOutParameter(1, java.sql.Types.INTEGER);
         autoLBNumbersNeeded.registerOutParameter(2, java.sql.Types.INTEGER);
         autoLBNumbersNeeded.registerOutParameter(3, java.sql.Types.INTEGER);
         autoLBNumbersNeeded.registerOutParameter(4, java.sql.Types.INTEGER);
    public UserNumber[] doAutoLoadBalancing () throws SQLException {
    autoLBNumbersNeeded.clearParameters();
    autoLBNumbersNeeded.execute();
    mwFF = autoLBNumbersNeeded.getLong(1);
    mwHF = autoLBNumbersNeeded.getLong(2);
    wmFF = autoLBNumbersNeeded.getLong(3);
    wmHF = autoLBNumbersNeeded.getLong(4);
    autoLBNumbersNeeded.clearParameters();
    </pre>
    The Oracle procedure is
    <pre>
    PROCEDURE proc1( p_parm_1 OUT NUMBER, p_parm_2 OUT NUMBER, p_parm_3
    OUT NUMBER, p_parm_4 OUT NUMBER)
    AS
    BEGIN
    -- Get Counts
    SELECT COUNT(*)
    INTO p_parm_1
    FROM blah ......
    SELECT COUNT(*)
    INTO p_parm_2
    FROM blah ......
    SELECT COUNT(*)
    INTO p_parm_3
    FROM blah ......
    SELECT COUNT(*)
    INTO p_parm_4
    FROM blah ......
    EXCEPTION
    blah .......
    END proc1;
    </pre>
    Can anyone help?
    Many thanks
    Fionnuala

    Hi
    Yes I have a debug line that prints them out in the doAutoLoadBalancing method - this is the point where I am diagnosing the problem. It only prints the correct results after I have already run the procedure from the SQL command line.
    public UserNumber[] doAutoLoadBalancing () throws SQLException {
    autoLBNumbersNeeded.clearParameters();
    autoLBNumbersNeeded.execute();
    mwFF = autoLBNumbersNeeded.getLong(1);
    mwHF = autoLBNumbersNeeded.getLong(2);
    wmFF = autoLBNumbersNeeded.getLong(3);
    wmHF = autoLBNumbersNeeded.getLong(4);
    autoLBNumbersNeeded.clearParameters();
    if (m_cat.isDebugEnabled()) {m_cat.debug("mwFF: "+mwFF+"; mwHF: " +mwHF+"; wmFF: "+wmFF+"; wmHF: "+wmHF);}
    </pre>

  • Result from measurement

    Where does Teststand put the result from the calling module ? I've written a number of steps in TS 3.1 using the LV7.1 prototype adapter. All my step valuations are 0 ! I assume when I create the "Specify a module step" I have to "wire" the resulting measurement to something in the TS window. Some variable like "step.results...."

    TestStand puts the result where you tell it to put it. When you select "Specify Module", The VI's outputs are displayed. In the value column, you need to specify which TesStand variable to assign to each output of the VI. If you have a single numeric output, you can assign it to step.result.numeric (click on the f(x) button), but you can assign it to any variable you have defined. As part of the TestStand Bookshelf (help menu), is the pdf file called Using LabVIEW with TestStand. You should read this for additonal details.

  • How to eliminate an instance of "entering a sequence call" from the teststand report

    I am using TestStand 4.2 and I am using a long sequence with several sub-sequences.  In these subsequences I am getting test results that I would like to place in the TestStand report.  Currently, in order to do this I have to check the "Record Result" option in the "Run Options" of the sequence call properties which displays an "Entering sequence call" mark on the report.  Is there any way that I can get rid of this marker and still record information from the sub sequence?
    Solved!
    Go to Solution.

    Hello,
    You should have a look a these documents:
    http://digital.ni.com/manuals.nsf/websearch/2B14FB​1CD4FF25CA862577AE00554FC7
    http://zone.ni.com/devzone/cda/tut/p/id/7958
    Regards,
    Rodéric L
    Certified LabVIEW Architect

  • How to get Error Msg from A step in TestStand into a variable (with Record Result disable)

    I have disable "Record Result" in a step (action) that call a Labview VI (Minimise memory usage during long run).
    But I want to capture the error msg and put it in a local variable (locals.log).
    So in the "Post Expression" of that step, I add:
    locals.log = step.result.error.msg
    But it always an empty string, Is the post expression executed when the there is an error in the step ?
    So How can I capture it ?

    Hi,
    The trouble is that when a step errors, the Post Expression doesn't get executed.
    Try using one of the Override callbacks - SequenceFilePostStepRuntimeError, ProcessModelPostStepRuntimeError or StationPostStepRuntimeError.
    There is an example in the Examples\Callbacks.
    The Step properties are passed as a parameter to the callback so you can get the error message and do your logging.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • QM-Result Recording transfer from one material to another material

    Dear QM masters,
    I have following scenario:
    Material A has Material B as a component and Material B has Material C as component. Material A is batch managed. Material C has in-process inspection with partial lot using inspection point functionality. Last result recorded for this in-process inspection should be used for quality certificate of Material A.
    Thanks a lot in advance for any help extended and will be rewarded with maximum points.
    Thanks and regards,
    Devang

    Since you are in ECC 6.0 you can also use batch derivation to have the components values copied to the next material being made.  In this way, batch values for Material C get copied to material B batch and material B batch values get copied to Material A batch. 
    Then on the cert, you only need to report the value from the material A batch.  No need to set up the result from production chain in the COA profile.
    Craig

  • How to run SequenceFilePostStepFailure model callback after step failing with nested sequence calls

    Hi,
    I would like to pop up a message box immediately on any test failures.  I had thought I could use the SequenceFilePostStepFailure model callback to achieve this,but when I modify the process model callback to achieve this, I've found that the callback code is executed only for step failures of the top level sequence file.
    My test code has mutiple sequence files being called before getting down to the granularity of the basic numeric limit test that will pass or fail, so I'd like to execute the SequenceFilePostStepFailure callback immediately at that level.  I can achieve this by adding a SequenceFilePostStepFailure callback override in the sequence file in question, but I'd prefer to use the default model callback implementation so I don't have to find all the places where numeric limit tests are executed and cause the DUT to pass/fail.
    I've attached some example sequences that I hope illustrate the problem.
    Thanks for the help,
    Daniel
    Solved!
    Go to Solution.
    Attachments:
    TestCode.zip ‏55 KB

    My fault, I see now that the model callback I should have modified is the ProcessModelPostStepFailure.  Problem solved.

  • Activate or skip "Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type

    Hello all,
    I am using teststand 3.1
    Is it possible to skip or activate ´"Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type.
    It is very much work to do this for all steps, because I have hundred of steps
    regards
    samuel

    hi,
    here is an example that will change the TS.NoResult. You just have to change this area of the sequence to suit your needs
    I haven't added any fancy stuff, such as adding a filedialog to get the seq file to change, you will find the various variables in the Locals.
    Hope it helps
    There is a version for 3.1 and 3.5.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    ChangeStepTypeRunMode.zip ‏30 KB

Maybe you are looking for