NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying execution's StationGlobals through .NET API

Hello All,

 

We are developing a custom UI for test operators. 

 

Pretty much we have everything running well, but we can not figure out how to modify StationGlobals during Runtime.

 

Our current flow:

  1. Initialize NI Engine object
  2. Load environment
  3. Get StationGlobals and modify the initial values
  4. Save StationGlobals to disk
  5. Start new execution

If we try to modify Engine.Globals value, it does not transfer to the current running execution. 

 

Are there other ways how we can achieve this? We're on TestStand 2021 SP1, Application is written in .NET framework 4.8

0 Kudos
Message 1 of 2
(102 Views)

Which Method did you use for saving the StationGlobals modifications?

Have you incremented the change count before saving?

 

.AsPropertyObjectFile.IncChangeCount()
0 Kudos
Message 2 of 2
(68 Views)