08-24-2020 04:45 AM
Hi,
We have several custom steps in different folders under Templates (TestStand 2019). When a user drops a step from the template onto the sequence, I want to be able to run code that verifies that the name of the step dropped into the sequence is not used anywhere else in the sequence. Is there a call back sequence I can use to do the same and then have code in the callback to do this? Or some other method?
For example: I have StepType1 in the Templates folder, when I drag and drop this into the sequence, the name of the step will be StepType1.
If I put another instance of this step in the sequence, it should be renamed to StepType1_Something.
Thanks
Solved! Go to Solution.
08-24-2020 12:50 PM
Hello,
You can create your own function and write place it on each custom step's substep named OnNewStep.
This is a custom substep, which will run the code, when the step is inserted from the Insertion Palette.
Built-in OnNewStep function is the one which puts the End step after you inserted For/While....
08-24-2020 01:03 PM
Thanks, just learnt that from an NI support engineer as well. Added a OnNewStep custom step to my custom step type and works as expected. Will mark your solution as accepted as well.
Thanks a lot.