NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Renaming a Sequence in a Sequence File

Solved!
Go to solution

Hi, I was wondering if there's a way to programmatically change the name (rename) of a Sequence in a Sequence File. Thanks in advance !!

0 Kudos
Message 1 of 3
(3,736 Views)
Solution
Accepted by topic author arefinm

You should be able to with this method: (assuming the sequence you want to change in in the same file)

 

ThisContext.SequenceFile.GetSequenceByName(Parameters.OldName).Name=Parameters.NewName

 

 

This does not validate it works properly though. You really should verify the new name does not already exist and that the name is valid (contain only letters, numbers, and underscores. Name cannot contain spaces, start with a number, or be empty. Additionally, t name cannot be "Value")

 

 

Certified-LabVIEW-Architect_rgb.jpgCertified_TestStand_Architect_rgb.jpg


"I won't be wronged. I won't be insulted. I won't be laid a-hand on. I don't do these things to other people, and I require the same from them." John Bernard Books

Message 2 of 3
(3,723 Views)

Thanks a lot !! worked like a charm.

0 Kudos
Message 3 of 3
(3,718 Views)