NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set TS variables from OpInterface

Solved!
Go to solution

Hi I am customizing my Operator Interface. In runTime (during the test) I have the necessity to read & write some variables (station global).

I developed a VI in order to get and set all the variables using the "TS-Get/Set property value". The problem now is that I cannot get the correct "sequence context" to pass to my VI. I tried to get the "sequence context" into the sequence inserting an action into the sequence that save the "sequence context" into a LV global, but it doesn't work.

Is this the correct approach? Are there different APIs that allow me to access to the TS variables in run time?

 

Thanks a lot for your support.

0 Kudos
Message 1 of 3
(2,972 Views)

Hi,

 

If you are reading and writing to the StationGlobals, use the Engine.Globals to get a reference to the StationGlobals and then use the PropertyObject to set / get the value. For the Lookup string you only need the variable name, you dont need to start it with "StationGlobals."

 

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,971 Views)
Solution
Accepted by topic author logatto

Thanks, you are right. I forgot to mention in my post that I tried also this solution. But I faced the same problem. How do I get the TS.Engine? From the "ApplicationManager.GetEngine", this is what I was looking for.

 

Thanks a lot for your support.

0 Kudos
Message 3 of 3
(2,958 Views)