04-10-2023 06:46 PM - edited 04-10-2023 06:48 PM
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?
Thanks,
Jared
Solved! Go to Solution.
04-11-2023 12:29 PM
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.
Thank you,
Jared