NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically loading step types from C#

Hi,

 

I wonder if it is possible to dynamically load step types from C#

 

Suppose the following, I have 100 different custom step types defined and I have 5 different test systems. If I select one of the test systems I should see a subset of the available step types, Ex only 20 of the available step types. This behavior should be dynamic, if I select another test system (initiated by executing some C# code from a Teststand menu item), the previous selected step types should be unloaded and other step types from my 100 predefined step types loaded.

 

Does anyone know if this is possible?

 

Best regards

 

Pccds

0 Kudos
Message 1 of 3
(3,222 Views)

Hi

 

I'd suggest to do it with GetTypePaletteFileList and SetTypePaletteFileList. With that methods you can load different typepalettes with 

different step types on it. But unfortunately there is a bug that the insertion palette is not updated automatically when you change 

the type palettes with TestStand API.

Regards
DianaS
0 Kudos
Message 2 of 3
(3,215 Views)

Thanks a lot DianaS

 

I will try your suggested solution!

0 Kudos
Message 3 of 3
(3,195 Views)