NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Button to run entire process model or batch

Solved!
Go to solution

Dear all,

 

I'm creating a custom user interface using Teststand 2026 Q1, based on the simple user interface example in C#. My goal is to have a button to start the test, without the user having to select which test steps are being used. Since I'm basing myself on the 'Sequential Model', the behavior would be the same as the 'Test UUTs' button in the Sequence Editor.

 

However, in C#, I can't seem to get a button to do that. I can create a button to run the main sequence, by coupling the button with the following code:

axSequenceFileViewMgr.ConnectCommand(axRunSelectedButton.GetOcx(), CommandKinds.CommandKind_RunCurrentSequence, 0, CommandConnectionOptions.CommandConnection_NoOptions);
The only other 'CommandKind' options I can find which could be related to running the test would be the 'runEntryPoint', but those buttons get disabled before any steps are selected.

Is there any way to create a 'Test UUTs' button in C#?

Thank you in advance!
0 Kudos
Message 1 of 3
(495 Views)
Solution
Accepted by topic author DrDonut21
0 Kudos
Message 2 of 3
(479 Views)

Dear Oli,

 

Thank you so much! I didn't know about this mechanism, but it actually works! With the added bonus that this is not an ax-connected button, so I can control the caption and the icon as well.

0 Kudos
Message 3 of 3
(461 Views)