NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unlocking a sequence programatically

Hello,
 
I have a sequence that is locked. I am trying to unlock the sequence porgramatically, but it never seems to work. This my psuedo code:
 
1) Create Engine
2) SequenceFile sfile = Engine::GetSequenceFileEx(...)
3) PropertyObjectFile pobjFile = sfile.AsPropertyObjectFile();
4) pobj.Unlock(<password>) ;
 
I always get the exception: Incorrect password specified to unlock the object or file.
 
Thanks,
Harsha
0 Kudos
Message 1 of 2
(2,786 Views)
Harsha -
Unfortunately there is a bug in the PropertyObjectFile.Lock and Unlock API methods that we found recently that prevents it from working. The bug is in the engine so a new release of TestStand is required. Until then we recommend that you use only the DisplayLockUnlockDialog method.
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 2
(2,779 Views)