From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i save StationGlobals manually with a teststep?

Solved!
Go to solution

Hello,

is there a command that can be executed in the testplan to save the StationGlobals?

So that all changes are saved permantly and still exist after restarting Teststand.

Thx

0 Kudos
Message 1 of 2
(2,178 Views)
Solution
Accepted by topic author OnlyOne

CommitGlobalsToDisk Method

Syntax

Engine.CommitGlobalsToDisk ( promptOnSaveConflicts = True)

Purpose

Saves the current state of the station globals to disk.

Remarks

Calling this method with an argument of True is equivalent to calling the PropertyObjectFile.WriteFile method on the object the Engine.GlobalsFile property returns.

Parameters

promptOnSaveConflicts As Boolean

[In] TestStand writes the station globals to disk only if they change after TestStand has loaded or saved them. If another application changes the station globals on disk after TestStand has loaded or saved them, the action TestStand takes depends on the value you pass in this parameter. If you pass True, TestStand gives users the option to overwrite the changes the other application made. If you pass False, TestStand saves the station globals without prompting the user to resolve any conflicts between the changes in memory and the changes on disk.

This parameter has a default value of True.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 2
(2,161 Views)