NI TestStand

Showing results for 
Search instead for 
Did you mean: 

Pushing 'Browse for Python Module ..." button in 'Create/Update Custom Data Type from Enum' window makes TestStand crash

Go to solution

This issue occurs because I want to create step types which have a pre-step which call a python method with enum parameters


Here are the actions

- creation of a steptype with a pre-step which call the python method.

- In this method, there are some enum parameters : I set its type to Enum.

- I click on the 'Create/Update Custom Data Type...' button and the window 'Create/Update Custom Data Type from Enum' appears

- When I click the 'Browse for Python Module ..." button, then TestStand crashes. so I can't do the mapping between the Python enum and the TestStand enum


There is no issue If I do the same actions in a step module within a step. 


I use TestStand 2021 SP1 64 bits


Any solution or workaround ?






0 Kudos
Message 1 of 2
Accepted by topic author Laurent_B


I have created a bug for the scenario you described.


I do not have a solution but have workaround.


The dialog is used to create a TestStand enum which maps to a Python enum specified in the dialog.

So, use the dialog from the step module, where it works, and create TestStand enum. The newly created enum will have the mapping of TestStand enum to Python enum. You can verify by going to properties of the enum and looking at data under the 'Python' tab.


In the module settings of the pre-step substep, you need to use instance of the newly created enum as parameter value. Also, set the parameter type to be either 'Dynamic' or 'Enum'.



0 Kudos
Message 2 of 2