Overview
When creating a test sequence in TestStand, you may want to ensure that certain report options are set for the sequence, regardless of the current station settings. To accomplish this, you can use the ReportOptions callback in a sequence file to change specific options.
Description
To set the report options for a particular sequence, complete the following steps:
- Create the ReportOptions Callback
- Right-click the Sequences pane, and select Sequence File Callbacks...
- Double click the ReportOptions callback, then click OK
- Determine the property values to set. To find the correct property values for the report option properties:
- Configure the report using the report options dialog to match the desired configuration.
- Insert a breakpoint into the ReportOptions callback sequence
- Execute using Execute » Single Pass. Once the breakpoint is hit, use the variables pane to view the value. You can also copy the entire Parameters.ReportOptions to the clipboard
- Resume the sequence. If you copied the parameter, paste it in the callback sequence locals for reference.
- Set the desired properties using a statement step
- In the ReportOptions callback, insert a statement step
- Using the copied ReportOptions in Locals, create statements to set the desired settings, such as
Parameters.ReportOptions.Format = "txt",
Parameters.ReportOptions.IncludeLimits = True
- Delete the local you created for reference
- Run the sequence using Execute » Single pass, and verify that the report options are updated.
Hardware and Software Requirements
TestStand 2014 or compatible
Steps to Implement or Execute Code
- Open the attached sequence
- Run the sequence using Execute » Single Pass
- Observe that the generated report is a text report and includes test limits, regardless of the current settings.
Applications Engineer
National Instruments