From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand API C# adding an OnNewStep substep

We managed to create a step type in the Insertion Palette using C#. However, we want to add the custom OnNewStep substep to that new Step Type, to populate some of the values. Using the TestStand UI, we opened the Step Type's Properties and selecting the Substeps tab, specified a C# assembly/class/method, and got a message box to pop up. But how do you define an OnNewStep substep using the API? We think we have a reference to the parent Step instance. However, when you create the substep Step instance, how do you set the "Type" to "Custom". The UI tab lets you specify "Pre-Step", "Post-Step", "Edit", or "Custom", when you click the "Add..." button. I do not see such a property in the Step class. The AddSubstep() method, only takes a Step instance, it does not let you specify a Type, nor have I found an enumeration. Please point me at the appropriate method or property. Thank you.

0 Kudos
Message 1 of 2
(1,951 Views)

fbrier,

 

After talking to another one of our Applications Engineers it appears you opened up a service request to look into this matter. If that's true we will continue to work with you via the service request rather than through this forum post.

Patrick O.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(1,915 Views)