NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Station Options with a Sequence File

Hi,
 
Is there a way to modify the "Debug options" located under "Preferences" tab in Station Options in TestStand by running a sequence file? I would like to disable the default "Report Object Leaks" option located under "Debug options"
 
Also, can I disable Report Generation located under "Report Options" by running a sequence file?
 
Response is appreciated. Thanks.
0 Kudos
Message 1 of 3
(2,868 Views)

Hey Troy12,

Yes, there does appear to be a way to set these programatically - you can do it using Active-X steps. You'll need to get a reference to the Station Options in the TestStand API 3.5, then as an action, Set Property, and then select Debug Options. From there you can set the input value to 0 to disable all debug options. The TestStand help file has more details if you search on "DebugOptions Constants".

Also, you can disable Report generatation using the Report Options Callback and setting the "Parameters.ReportOptions.DisableReportGeneration" to True.

Hope this helps.

-Jack

0 Kudos
Message 2 of 3
(2,857 Views)
Hi,
 
Dont forget that the Report Options are set before the main process model loops.
 
If you wanted to disable the report once you are into the Client sequence file, you might beable to affect the Local copy of the ReportOptions by using RunState.Caller.RunState.Locals.ReportOptions
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 3
(2,853 Views)