NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the name of Sequence from SequenceFile? NI TestStand

Hello everyone!

 

I'm a new NI TestStand user. In a project that I'm working on, I need to get the names of sequence in my sequence file. If you refer to the variables, RunState.SequenceFile.Data.Seq we can see the available sequence. Question is, how do extract the names of the sequence and store it in a variable. I would greatly appreciate your help.

 

Thanks alot

 

Regards

Syafi

0 Kudos
Message 1 of 4
(378 Views)

Try RunState.SequenceFile.Data.Seq.AsPropertyObject.GetSubProperties()

to retrieve the sequences and retrieve the name using AsPropertyObject.Name

0 Kudos
Message 2 of 4
(341 Views)

Hello,

 

I tried using RunState.SequenceFile.Data.Seq.AsPropertyObject.Name, but what I got is the name of the array that the Sequence are stored in which is 'seq'. Not exactly what I'm trying to achieve but it gives me a good starting point. I've attached the file for you to have a look at. I wanted to extract the name of the sequence such as 'Main_sequence', 'Seq_1','Seq_2' etc.

0 Kudos
Message 3 of 4
(329 Views)

I won't have access to my TestStand installation until Monday, will check then

0 Kudos
Message 4 of 4
(318 Views)