NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing TestStand Sequence that is loaded when pressing "File>>New Sequence File"

Hello,
I want to modify the "blank" sequence file that is loaded when the user press "File>> new sequence file", so that the "new sequence" is a predefined sequence
(...in order to add some default locals, for instance).
Is it possible?

thks in advance, Zib
0 Kudos
Message 1 of 6
(3,210 Views)
Zib -
You cannot specify what sequence file is used when you select File>>New. This is a suggestion that we have heard before.

A workaround would be to add a configuration callback sequence to your model. The name of the entry point might be "Open Template" and you could specify that it is visible in the File menu. You cannot prevent the one that we display from being available though. The callback sequence could call Engine.GetSequenceFile to open a template sequence file, call PropertyObject.Clone on the sequence file ref to get a ref to an unnamed sequence file copy, and call Engine.PostUIMessage and pass "MainSequence" for the string data and the copy ref for the reference data, which will open the file in the sequence editor.

Scott Richardson
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 6
(3,210 Views)

Hello

 

I know this is an very old thread, but has this changed the past ~20 years? Is it possible today (TS2023) to specify what sequence file is used when you select File>>New

Thanks in advance

Bjarne

0 Kudos
Message 3 of 6
(249 Views)

Still the same to my knowledge

 

You might want to go with the answer Scott gave back then 

0 Kudos
Message 4 of 6
(241 Views)

😭

0 Kudos
Message 5 of 6
(217 Views)

But still... you should also be able to implement this and call the code from the Tools Menu....

0 Kudos
Message 6 of 6
(207 Views)