NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand API to Programmatically Add Flow Control Steps

Solved!
Go to solution

Hi Everyone, 

 

I am looking for some advice on how to programmatically add steps to a sequence that fall into the 'Flow Control' category.  Strangely, I can add a loop-end step (as shown below) but cant seem to add any of the other flow control steps. I can also add steps such as actions with no issue. 

 

I've tried a couple variations of the stepTypeName parameter of the 'NewStep' method and all return an error similar to: "TSAPI: Step type 'NI_Flow_Select' not found in type list."

 

Anyone have any idea how to do this? 

 

Jguglielmo_0-1681170263159.png

 

Thanks,

Jared

0 Kudos
Message 1 of 2
(759 Views)
Solution
Accepted by topic author Jguglielmo

I figured it out. The type palette must first be loaded.  I attached a snippet of the LabVIEW code that loads the palette.

 

Can someone help me understand why this is needed for some steps but not others? For example, I can add LV actions, and loop-ends without first loading the palette, but things like sequence calls and flow steps must first have the palette loaded.  

 

Jguglielmo_0-1681234151881.png

Thank you,

Jared

0 Kudos
Message 2 of 2
(712 Views)