Programatically change "Record Results" of a step

Hello,
Just wondering whether it is possible to set the "Record Results" properties programatically.
Thanks,
Yannick Willener

Hi Ray - I have been able to get more familliar with TS, doing simple sequence to test and calibrate some analog equipements. I also get familliar with the callback principle by changing on the fly the name of some steps in such a way that they make sense when i read the report.
Here is a quick reminder of what i'm trying to do.
Execute a Test
If test Fail -> It will show in the report
Else -> Not in the report
I'm still trying to accomplish what i described earlier but running into issues. I tried the different approach:
1-The only way i managed to do it so far is the next one
setting up the test and manually unchecking the Record Result checkbox
And uf a if() in Test on the PreviousStep object, if the previous step has failed, i redo the test (fortunatly they are very short ) but setup with the RecordResult check box. This approach is working but is not very classy.
2-Then i tried to test Step.result.status in the post-Expression field. But according to the reference manual, this expression is evaluated before the Status expression. Dead end
3-The i figured i could try to play with the Post Action field by putting Step.RecordResult = (Step.Result.Status == "Failed") as a custom condition.
Once more i get some random result, The prpoerty is set, but since the step has already been executed, it looks like it has already been taken in consideration by the report generator.
4-I tried to use a call to the TS engine to change the property of the previous step but i get the same result as 3
5-I tried to use SequenceFilePostResultListEntry and then set the property of the step but once more without sucess.
What i'm looking for is either a callback that i can overload that is supose to happen after the result of the test has been evaluated but before we notify the engine to log the result. Do you have any other idea ?

Similar Messages

  • Calling SequenceFilePostResultListEntry doesn't change recorded result output

    Hi Everyone,
    I'm trying to use SequenceFilePostResultListEntry to discard some step results.
    But when I launch the test (UUT or SinglePass entry point), I can still see the results on the report,
    despite the parameter DiscardResult on True for all steps.
    I noticed too (by setting, Parameters.Step.Result.Status = "Failed" in SequenceFilePostResultListEntry sequence),
    that the execution pane shows the steps at failed but "Passed" on the report pane.
    Does anyone knows about those behavior ? Is there an option I may have forgotten ?
    Please see the attached sequence file.
    Thanks for your participation...
    Solved!
    Go to Solution.
    Attachments:
    DiscardResult.seq ‏6 KB
    Results.PNG ‏50 KB

    Running your sequence on my machine works as expected.
    No results are available, so the report consists of the header and then states:
    No Sequence Results Found
    Do you use a default process model?
    Which version of TestStand?
    Do you use On-The-Fly reporting?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Teststand record results flag changing on its own

    Teststand 4.2.
    Unticking record results for all steps in my sequence file. Save the file. Run the sequence and the record results tick appears back in some of my sequences.
    Am i doing something wrong???
    Thanks
    Mark

    Adding a callback should not effect any existing steps that aren't part of that callback. What steps exactly are you talking about that are getting their settings changed? Are you saying the steps in your main sequence get this setting changed when you add the callback? I'm not seeing that at all and there really is no mechanism which would cause that to happen. Inserting a callback just creates a copy of the callback sequence in your sequence file. It doesn't edit or effect other sequences.
    Since your callback is modifying this setting, perhaps it is the code in your callback that is changing the setting and leaving it set?
    What exactly are you trying to do. Please be as specific as possible and perhaps I can suggest a simpler alternative. There are many features and settings to effect how results are collected in TestStand. There is likely a much simpler approach that will work.
    -Doug

  • 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

  • Check/uncheck record results on more than one step at a time

    I have one hundred plus sequence files and several thousand steps total. Checking and un-checking record results one step at a time takes a long time. I'd like to be able to select several steps at a time then check or un check the "Record Results" option for all those steps at once. How do I do this? I'm using TestStand 2.0

    Hi Kevin,
    Thanks for contacting National Instruments.
    Do you want to disable result recording for ALL sequences on this station? If so, you can turn on this option in the TestStand sequence editor (Configure >> Station Options, turn ON checkbox "Disable result recording for all sequences").
    However, if you only want to do this for selected sequence files, then Ray is correct - you would need to write an external routine that will automate this for you. Attached is a zipfile containing a VBScript that will iterate through one sequence file ("c:\test.seq") and change all steps (all sequences, including Main/Setup/Cleanup) to turn off "Record Results". It first saves a backup copy of the sequence file, makes the changes, then save
    s the modified sequence file. You can enhance this script to work for more than one sequence file by using Microsoft's FileSystemObject.
    The VBScript uses a DLL I created, which exposes the TestStand 2.0 Engine object as an ActiveX DLL. Before you can run the VBScript, you will need to register this DLL:
    regsvr32 TSEngine.dll
    Then, the VBScript can be executed just by double-clicking it. Hopefully this helps get you started toward creating an automated way of solving this problem!
    David Mc.
    National Instruments
    Attachments:
    ts2seqfiles.zip ‏4 KB

  • 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

  • Want to change the Result Recording Result

    Hi All,
    I have a problem Please help me out or suggest me is it possible to do-
    Result Recording is done and saved for a particular lot and result is accepted and i did UD for that and accepted as well as i posted to un-restricted stock with Acceptance and saved.
    Now my client want to chance the result and reject it and post it to blocked stock again do UD.
    This is our normal requirement here.
    Regards,
    siddharth shanker

    Hi,
    You have to explain your  client the process and its pros and cons, once you give UD and post the stock then how will that be canceled. Keeping apart SAP, in actual domain practice also  when you accept the lot you can't reject it on same challan, you have to so separate process.
    Here best way is to assign 08 Insp type to that material and create the lot using 322 movement type (MB1B) and again reinspect and post it to block and send back to vendor. This is only if you need to record results again, otherwise you can directly post from unrestricted to Block stock using movement type 344 i.e. from unrestricted to block then purchase person will send it back to Vendor. You can raise notification to keep record of this movement.
    Best Regards,
    Shekhar

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

  • Can I create a VI that will allow me to choose whether I should record results or not in Teststand?

    I've created a front panel that consists of booleans. When one is chosen it will open a different subsequence in Teststand, and then walk the user through the appropriate test.
    The problem is, what if the user hits the wrong button and decides he doesn't want to run the test which opened. He can cancel out, but the results for the test are recorded (usually failing, because the default values are present). This, then, causes the entire test to fail.
    Is there any way I can place a button in a VI like 'exit, do not record results' along with the current 'exit and record results' button I have now?
    Thanks in advance for your help!
    Dave Neumann

    Hi,
    Find attached a VI (LV6.1) that will disable the results.
    You will need to call the DisableResults again passing False to enable the results during your execution.
    But I believe once your Step has executed you cannot then disable the Results for that step. The only way is to remove the result from the ResultList.
    (see example sequence2.seq).
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    TS_-_DisableResults.vi ‏28 KB
    Sequence_File1.seq ‏18 KB
    Sequence_File2.seq ‏22 KB

  • How we can load change record in cube.

    Hi,
         How we can load change record in cube, (delta)
         i need step by step in sap BI 7.0.

    Hi Nitin
    I hope you are asking about delta loads, if your datasource supports deltas then you can do only changed records from source to cube. To see the details goto ROOSOURCE table in ECC and find.
    For further help search in SDN and help.sap.com, you can find n number of postiings about the same.
    Thanks
    Reddy

  • Programatically changing the color of buttons on LV OI

    Hi,
    I've modified the sample Operator Interface shipped with TestStand.
    Buttons are linked to subsequences, so when a button is pushed a subsequence is running (boolean buttons).
    What I would like to achieve is that, once a subsequence was called and the result was OK (pass) then the color of the button should change to green.
    If the subsequence is failed then the button should change to red.
    Thanks for any suggestions in advance.
    Solved!
    Go to Solution.

    Hi,
    You can find an example in Example Finder: "Property Nodes.vi" . It shows how you can change any properties for an object from your program.
    You can find more examples on zone.ni.com, like these:
    - Using Property Nodes to Change the Color of a Slide Bar https://decibel.ni.com/content/docs/DOC-2133
    - Programatically Change the Color and Visibility of a Boolean using Property Nodes https://decibel.ni.com/content/docs/DOC-16569
    Regards,
    Peter Vago
    AE Hungary

  • What is the possibility of changing the result of asoftware wth human mind?

    I'm wonder that is there any research done over the connection between Subnatural gifted people and the computers?!
    For example can someone who has such gifts change the result of the software direction just with his gifts?
    Some of them who such gifts have, they may get their wishes in real world physically just with desiring those things.
    just wondering... maybe someone heard such researches...
    greetings,

    Hi,
    I just add another method to diagnose your problem. You can try to use xbootmgr to collect a boot trace of your system.
    Refer to the link below for more details about the trace steps:
    http://blogs.technet.com/b/jeff_stokes/archive/2012/09/17/how-to-collect-a-good-boot-trace-on-windows-7.aspx
    Roger Lu
    TechNet Community Support

  • Programatically changing the id of a component

    Hi!
    I'm trying to solve the problem of duplicate id, without havind to manually give an id to all components.
    To accomplish this, i was trying to programatically change the id of all components that have the id null or that the id begun with _id with an PhaseListener.
    But i don't achive any results.
    Does anyone know how to do this?
    Thanks.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

  • How can I change the name of the step name on the fly w/o using activeX API

    I would like to change the name of a step just for the report generation. The sequence file should not be changed. I was able to change the step name with the activeX API, just looking for any other solutions that wouldn't involve adding another step.

    Hi,
    since the report generation is done from the ResultList, you coudl simply alter the data stored in the Locals.ResultList (which ever is the appropriate result element in here) to reflect what you want the step name to appear as.
    This could be done through an expression, or a statement step.
    e.g. Locals.ResultList[0].TS.StepName = "New name"
    Just an alternative.
    S.
    // it takes almost no time to rate an answer

  • Record results per Product, not per inspection characteristic

    Dear,
    Is is possible, in transaction QE51N to record results per product (or serial number) rather than per characteristic?
    Today, I can only see a result recording per characteristic. For example: for inspection characteristic 1, I enter all the results for each product, then I go to inspection characteristic 2, etc. I would like to enter my results per products, i.e. for product 1: enter results for inspection characteristic 1, 2, ..., and then do the same for product 2, etc.
    Is that possible?
    Regards,

    NehSAP wrote:
    What are the parameters you entering to execute QE51N? I believe you are ececuting this transaction for chara not inspection lot or material. Make sure you are not entering MIC in intial screen throgh variant.
    >
    > If you execute QE51N for particular one lot then you can see all assigned MIC to that lot in transaction output & you can record them one by one.
    >
    That is what I do. I execute the transaction for one particular inspection lot. However, when I enter into the record results screen for this particular inspection lot, I first have to "enter" into one of the master inspection characteristic, and then start recording per product (or serial number). What I would like to have is to "enter" into one product (or serial number), and for this particular product, enter all the master inspection characteristics I have previously defined.
    If you still don't see what I mean, can you give me your e-mail so that I can attach an image
    Oh yes, and by the way, is it possible to execute the transaction qe51n based on the criteria "production order" instead of on the criteria "inspection lot" or "plant" or whatever. I know that you change it in the layout, but I really can't find the production order on the "hidden fields"
    Regards,
    Edited by: MrFitch on Nov 8, 2011 9:11 AM

Maybe you are looking for

  • How do I remove my iPhone 3G from list of stolen phones?  It was stolen and then returned.

    How do I remove my iPhone 3G from list of stolen phones? I reported it to Apple as stolen and it was blacklisted so that whoever stole it would not be able to register it with apple.  The phone was returned to us 3 weeks later.

  • PSE 11 Date, time & star option under photo in organizer missing

    I was watching a tutorial about PSE 11 and then noticed that under my photo in the organizer I do not see the date, time, & star option.  Do I have to turn something on to see them.  Also I do not see a place under the photos to put a caption.  I'm u

  • Two routers on same phone line

    From my main router I have no wireless signal in one part of the largish house. To resolve this I added a second router in that area (on same phone line).  My Ipad could be attached (separately) to both.  However, my actual phone seemed to stop worki

  • Moving Pages Between Applications

    When I first began using AE, I created many different applications as request came in. Now, this is getting cumbersome as each application requires the user to login and logout. I want, instead, to create a single application and to move the pages fr

  • Email set up problems

    I'm using a bb 9300 and can't seem to set up my existing email account and can't create a blackberry address also..so when I go to set up icon on my phone email accounts it doesn't give me the different service providers it just say for existing user