ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Always save as previous version by default

Solved!
Go to solution

Hello,

I am using the latest TestStand version, and I need to edit Sequence files from other computers that are still using TestStand 2019.

Is there a way to configure my TestStand so that it always saves in Version 2019 without me having to manually click 'Save as previous version' every time?

 

Thank you

0 Kudos
Message 1 of 6
(94 Views)

Not aware of a default 

 

yet you could create your own code to be called from the Tools Palette to save ta a default version using 

PropertyObjectFile.WriteFile( writeFormat = WriteFileFormat_Current)
Message 2 of 6
(64 Views)

How can this be done? I know how to call a sequence-file from the Tools menu.

But how to get a handle to the already opened file that needs to be saved in there?

Thx

0 Kudos
Message 3 of 6
(55 Views)

You can get the SequenceFile ref using

 

ThisContext.SelectedFile
Message 4 of 6
(49 Views)

The sequence file that i call in tools menu has now one statement with tis text:

 

Locals.myRef = ThisContext.SelectedFile,
Locals.myRef.AsPropertyObjectFile.WriteFile(WriteFileFormat_TestStand45),
Locals.myRef.AsSequenceFile.Save("C:\\temp\\test.seq")

 

When executing it saves the currently opened sequence file as test.seq.

 

What do i have to change that i dont have to pass the path + file name to the Save() function and just save the file wit currentfilename at current location?

 

0 Kudos
Message 5 of 6
(46 Views)
Solution
Accepted by topic author OnlyOne
Locals.myRef.AsSequenceFile.Save("")

should save the file at the current location under the same name according to the help

 

Message 6 of 6
(39 Views)