NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Call FrontEndCallback 'LoginLogout' from PreUTT callback

I want to insert a step into the PreUUT callback of my sequence file that will re-execute the LoginLogout step.  I am having a tough time figuring this out.  In this knowledge base it give some ideas but I can't get it to work in just teststand setps.
Here is an example of what I am attemting (TS 4.0.1).
 
Paul


Message Edited by paulmw on 12-01-2007 10:58 AM
0 Kudos
Message 1 of 5
(3,542 Views)

Hey Paul,

Do you need it to Login or Logout?  Here is your sequence Modified to call the FrontEndCallback.  It's the actual sequence that gets called when TS starts. 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(3,526 Views)
Thanks jigg,
I did think of calling the sequence as a normal sequence call but that will make my main sequence file dependant on that specific frontend existing.  I would prefer that my sequence not care about the path and use the station's configuration.
 
With that, I was able to get the TS ActiveX call working and call the frontend callback.  Attached is my modified version.
 
Now my next question is how can I make this call synchronous.  If I call it as it is my sequence continues and doesn't wait for the loginlogout steps to finish.  Does enyone know what I can do to not continue in my sequence untill the frontend callback is finished executing?
 
Paul
0 Kudos
Message 3 of 5
(3,520 Views)
Hi Paul,

You can use a wait on the execution reference returned from the ActiveX call (see attached).

Regards,
Message 4 of 5
(3,500 Views)
Perfect simple solution! Thanks!
0 Kudos
Message 5 of 5
(3,496 Views)