After you create a TestStand lock using the Lock step type, you can then acquire the lock using the Lock operation of the Lock step type. When using the Lock operation of the step type, you have the option to specify the Lock Operation Lifetime. Options for this are:
-Same as Sequence
-Same as Thread
-Use ActiveX reference
The first two options are fairly explanatory; acquire lock until either the sequence or thead completes.
The last option allows you to store an ActiveX reference to the lock operation in a TestStand variable. You can release the lock operation by setting this variable to value of Nothing (e.g. Locals.MyLock = Nothing). Or, you can release the lock by letting the variable go out of scope.
Finally, you can release a lock using a Loc
k step configured for the Early Unlock operation. This allows you to release a lock before than the lifetime you configured when creating the lock.
Hope this helps.