NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically disabling test report result

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

0 Kudos
Message 1 of 3
(3,305 Views)

Hi Bruce,

 

Maybe this thread will help you.

 http://forums.ni.com/ni/board/message?board.id=330&thread.id=24220

 

Greetings

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 3
(3,276 Views)

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

0 Kudos
Message 3 of 3
(3,256 Views)