Hi,
Could you refresh your example, so I can get a clear picture of where you upto.
In response to an early message
[What is the diffrent between FileGlobals, StationGlobals and ThisContext.FileGlobals ,StationGlobals and the FileGlobals and StationGlobals in RunState.ThisContext. Where can i get some documentaion about the Expression and his functions or the diffrents between RunState, ThisContext, Step, Locals and so on.]
FileGlobals, this is where you place variables that are in scope of the whole of the SequenceFile. By default, each SequenceFile has its own FileGlobals, but you can make multiple SequenceFile share a common FileGlobals. This setting is found in the SequenceFile Properties. If you change a FileGlobals during executions, it stay that value until you change it again during the execution, once the execution is completed the change is lost an the FileGlobals will revert back to its static condition.
StationGlobals, these are variables that are in scope to every SequenceFile. If you change the value of StationGlobals, this new value is retained when the execution completes and also when the SeqEditor/Operator Interface closes. StationGlobals are not held as part of the SequenceFile, but in there own file in the TestStand\Cfg folder.
You can find a breakdown of the Sequence Context in the TestStand API help file. Also the TestStand Reference Manual should give you a bit more information on FileGlobals, StationGlobals.
[And in my vi i enter Locals.Error as an expression?]
No in your VI you would use the API call via an ActiveX Invoke Node to call PropertyObject.SetValString("Locals.Error", 0x1, ). First you would get a PropertyObject reference from the SequenceContext and use an ActiveX Invoke Node and use AsPropertyObject method. If you use one of the TestStand VI's then must of the work has been done for you.
Regards
Ray Farmer
Regards
Ray Farmer
