Overview
Custom substeps of custom step types which are renamed OnNewStep allow a test developer to execute a specified code module when an instance of that particular step type is created. The code module that is specified can be used as follows in this example to establish behind the scenes configuration for that instance of the custom step type.
Hardware and Software Requirements
LabVIEW 2016 or compatible
TestStand 2016 or compatible
Steps to Implement or Execute Code
-
Create custom step type.
-
Add field to custom step type to store result of configuration substep and pass forward to the code module eventually being executed in the course of the custom step.
-
Create a custom substep for the custom step type and rename it OnNewStep to execute configuration code upon drag-and-drop.
-
Specify configuration code module to execute in the previously created custom substep.
Additional Information or References
-
This example uses a dialog box to simulate the actual running of a particular type of test as indicated by the configuration code module.
-
Three instances of the custom step type already exist in the included sequence file. To observe the configuration functionality, place another instance of the custom step type into the sequence, select a type of test to execute in that step, and run the sequence file.