NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Selected Steps Using Single Pass - LabVIEW Simple UI

Run Selected Steps.png

 

This is what is available in the Full Featured interface (as well as the development environment).  I'd like to just have a single button that my operator can click that says "Run Selected Steps" after he has selected one or more steps from the Sequence View.  I've added the Sequence View Manager to the simple UI and I have played with countless combinations of using a TSUI.IButton and Connecting Commands as well as a add an event and using LabVIEW native control and invoking GetCommand on both the Application and SequenceView Manager and then Execute in that event and nothing happens so I can't tell why it isn't working.  Do I need to copy all of the User Menu bits out of the Full Featured for this to work?

0 Kudos
Message 1 of 2
(137 Views)

I managed to figure this out after longer than it should have taken.  There is a CommandKind_RunEntryPointOnSelectedSteps that certainly seems like what I needed.  But only after digging through the abomination that is the online manual does one finally find this:

 

  • CommandKind_RunEntryPointOnSelectedSteps –(Value: 42) Runs the selected steps using a specific Process Model entry point sequence. Do not directly create commands of this type. Instead, use one of the following constants to create commands of this type, as needed: CommandKind_RunSelectedStepsUsingEntryPoints_Set CommandKind_RunSelectedStepsUsingEntryPointSubmenu These commands apply only to the SequenceFileView Manager control.

Wait...does it or does it not run selected steps, what even is this?  When I switched it to the _Set one it worked as expected.  Would be cool if the APIs would be cleaned up or the development environments give these type of tips in app instead of having to dig through only to find bizarre stuff like this. 

0 Kudos
Message 2 of 2
(117 Views)