NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i automatic create testplan label steps from textfile?

Solved!
Go to solution

Hello,

i have textfile with multiple lines.

Each line should become the name of a label in a testplan.

 

How could i do this automatically?

 

Thank you

0 Kudos
Message 1 of 5
(1,034 Views)

I might be confused by what you are asking.

 

Are you looking to turn each line in your ascii file into a step in TestStand?

 

Are they all going to the same file and sequence?  Which step group would you want them to show up in?

 

I don't think this is completely achievable in TestStand only.  You would need to use a code module like LabVIEW or C#.  But basically you could create a Tool in TestStand that would call some code to read the ascii file and iterate through each line.  Then using the TestStand API inject steps into a sequence and sequence file.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 5
(984 Views)

Hello, 

Ok, what if i have the ASCII file then in a Stationglobal stringarray. 

How can i create for each Index of the array a new labelstep in mainsequence?

Thanks

0 Kudos
Message 3 of 5
(980 Views)
Solution
Accepted by topic author OnlyOne

I threw this together real quick.  Just run the Insert Label Steps sequence and the MainSequence will have the label steps.

 

Hope this helps.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 5
(977 Views)

IMHO, that's a great example. Quick, simple and efficient.

Mateusz Owczarek

Certified LabVIEW Architect
Certified TestStand Architect
Message 5 of 5
(968 Views)