NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify Station Globals in the deployed system?

HI,

This is more of a general type question.

I'm keeping in the Station/File Globals different parameters, some of which I may need to modify in the future.
After the deployment, I didn't see a way to access these variables.

Am I right or, is there a way to access the globals?

I thought about several way to come around this issue:
1) To modify the variable and issue a new deployment (too long and too much for a such small issue)
2) For the Station Globals, to enter the .ini file and modify there (don't like that too much, and not good for the File Globals)
3) To use a text file and store the specific variables data in there.
4) To write a utility program that will modify the variables (seems the most elegant way, but haven't done it yet).

What do you think of these options and which way do you find best to deal with this issue?

Thanks
Rafi
0 Kudos
Message 1 of 2
(2,969 Views)
Hi,

The FileGlobals, you would have to get a handle to the SequenceFile with the FileGlobals you wish to change. Using that handle, obtain a handle to the FileGlobals and then you could change the variable.
Once changed you would have to save out the SequenceFile before releasing it.
It would be simplier, to modify the original SequenceFile and then reload it on to the Target system.

Modifying the StationGlobals would be a bit simplier. Have a Sequence that obtains the Lookup string and new value of the StationGlobal to change. Then use the PropertyObject.SetVal method depend on the data type ie Boolean, Numeric, String etc.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,963 Views)