NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

appending the steps to the already existing sequence file dynamically using c#

I have designed an interface through which a user can dynamically generate steps in teststand. I have used C#.Net for dynamically generating the steps. With that he can generate whatever steps he wants. The issue is when the user wish to generate only 2 steps for the first time and saved the sequence file. After that he again wanted to append the remaining steps to the previously saved sequence file, IS IT Possible to append in that way dynamically using C#?
0 Kudos
Message 1 of 3
(3,206 Views)

What is the method that you are using to create these steps ? Are calling the TestStand API or populating the sequence in the xml format ?

I have tried to insert steps in sequence which already has steps. While using the InsertStep method from the TestStand API you will have to pass the step index to the method. So in this case your step index will be number of steps in the sequence. Since in TestStand the step index starts with zero.

 

Thanks 

0 Kudos
Message 2 of 3
(3,205 Views)

Hi

 

I have realized this with InsertStep which is a member of Sequence

 if (step != null)

{

sequence.InsertStep(step, i, StepGroups.StepGroup_Main);

i++;

}

 

i is the the index which lordsathish has me mentioned

 

Hope this Helps

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(3,195 Views)