NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically setting report options.

Is there a way, either through the TestStand engine interfaces or through writing property variables, to set the TestStand Report options? Specifically I'd like to affect the 'Disable Report Generation' option, and the 'Report Format' option.

Thanks,

Aaron Stibich
0 Kudos
Message 1 of 2
(3,146 Views)
Aaron,

From your sequence file, you can add a callback sequence called ReportOptions. To add it, go to Edit->"Sequence File Callbacks..." and select ReportOptions (with type Callback Type "Model Callback") and click Add. Now you will have a ReportOptions sequence in your sequence file that the process model calls after reading the default report options. If you want to modify, say, the "Report Format" option, then add a statement step to this sequence with a version of the following statement:

Parameters.ReportOptions.Format = "txt"

From within this special sequence you can modify the report options as you like. If you want to change them for all of your sequence files, then you can modify the appropriate process model sequences.

--Peter
0 Kudos
Message 2 of 2
(3,142 Views)