05-15-2009 08:46 AM
Hi
My apologies if this has been asked before, but does anyone know if it is possible to prevent the results of a sequence from being entered into the test report, after a set number of times? I have a sequence which ends in a 'GOTO beginning' statement, the precondition to which is set by a prompt to the operator, for either 'single' or 'continuous' execution when the code if first run. Since this loop could run indefinitely, I like to be able to limit the number of times the step results are written to the report as this will not only create a huge file, but also, I believe, eventually slow down the speed of execution. Is it possibe to do this? I'm using TestStand 3.1 and have 'on the fly' reporting switched off.
Thanks
Bruce
05-18-2009 01:09 AM
Hi Bruce,
Maybe this thread will help you.
http://forums.ni.com/ni/board/message?board.id=330&thread.id=24220
Greetings
Juergen
05-18-2009 10:01 AM
Hi Juergen
Thanks for the link. I hadn’t realised until after reading the tutorial Norbert wrote, the results from a sequence could be omitted by setting the ‘Disable Result recording for all steps’ option in the Sequence Properties dialog box. I’ve now set up a variable to count the number of sequence iterations, and when this reaches a limit, an Active X/COM action (new territory for me) is called to set DisableResults to true and prevent any further results from being recorded. When specifying the Object Reference and Automation Server for this action, I’ve put ‘RunState.Sequence’ and ‘NI TestStand API 3.1’ respectively. I don’t know if this is the correct way to do it but it seems to work ok.
With regards
Bruce