From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand API to execute sequence file as Single Pass

Solved!
Go to solution

Hi all,

 

How to execute the sequence file in a Single Pass from teststand APi in C# ?

I have modified the example "Teststand UI with Native Conrols" to run a sequence file.

 

For now I'm calling the below function:

 

private void executeButton_Click(object sender, EventArgs e)
{
if (axSequenceFileViewMgr.SequenceFile != null)
{
axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 0).Execute(true);
}
else
{
MessageBox.Show("You must open a sequence file before you can execute.");
}
}

 

0 Kudos
Message 1 of 2
(1,133 Views)
Solution
Accepted by ngupta4

 

Hi Ngupta4, 

 

in your statement axSequenceFileViewMgr.GetCommand(CommandKinds.CommandKind_ExecutionEntryPoints_Set, 0).Execute(true); call, is that last integer parameter a index? if so then try changing it to 1. 

 

I see that my user interface has a index =0 for Test UUTS, Single Pass has a index=1, i'm using LabVIEW so can't directly compare to your code. 

 

regards

Sr Test Engineer at American Innovations - LabVIEW CLA - Kudo's are appreciated!!
Message 2 of 2
(1,116 Views)