Hi Mark,
You will not be able to get the SequenceContext since you are creating an Engine object from within your development evironment (LabVIEW, CVI, etc.) If you want to write data back to TestStand, then you must obtain a reference to your sequence (Engine.GetSequenceFile -> SequenceFile.GetSequence)that conatins the local variable you wish to set. You will then use the AsPropertyObject method. Once you have done this, you can then use the Get/SetValXXX methods to set the value of the Local Variable, referencing it with a lookup string (i.e. Locals.NameOfVariable). Hope this helps.