NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to specify sequence file templates like in MS Word?

Is there a way to specify a "template" sequence file, so that when users
select File -> New Sequence File, the new sequence is based on some template
(ala MS Word)?

Our custom process model requires that certain file globals and sequence
file callbacks be defined in each sequence file that uses the model. Right
now we provide a "blank" sequence file that the user has to copy when they
want to create a new sequence file (or build it from scratch). I would be
nice if this happend automatically from the File -> New... menu.

If this is not possible, this might be a good feature to add for future
versions...

Bob.
0 Kudos
Message 1 of 2
(2,928 Views)
At this time there is nothing built into the default operation of TestStand that will behave in this template-style manner, however depending on what in particular you want this template to be I think building a custom tool will have much the same effect. The code for the Sequence Editor is not editable so adding new elements to the File Menu is non-trivial however the Tools Menu is completely user customizable. You could build a tool that could create new/ access currently open sequence file and programmatically add the new file globals, callbacks, and even steps using API functions such as SequenceFile.CreateCallbackOverrideSequence.

To reference the currently loaded sequence file you will need to use the path “Runstate.InitialSelection.SelectedFile”. Ho
wever, one word of warning, once this tool is created and loaded into the Tools menu, it will be available from OI as well as the Sequence Editor. National Instruments requires additional development licenses when customers programmatically create/modify sequence files on a machine that is not the development machine. You can find detailed information about tool building in the User Manual (chapters 3 and 4) and also in the shipping example located in the directory /Examples/SequenceBuilderTool/
on your harddrive.

Regards,
Elaine R.
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,928 Views)