12-02-2008 03:55 AM
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.
Solved! Go to Solution.
12-02-2008 04:26 AM
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
12-02-2008 08:55 AM
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.