03-05-2009 05:43 AM
Hi,
I try to use the CloseAllSequenceFiles method but I have a problem.
When I close the Operator Interface of TestStand, it keep in memory the sequence loaded and re open it at next execution of the Operator Interface. (I'd like the interface to be empty at opening!)
So I try to use the CloseAllSequenceFiles, CloseAllExecutions and Shutdown methods when I close the Interface. But the sequence is re opened anyway...
Somebody can help me?
my source code :
///////////////////////////////////////////////////////////////////////////
// The ApplicationMgr sends this event when it is ok to exit the application
HRESULT CVICALLBACK ApplicationMgr_OnExitApplication(CAObjHandle caServerObjHandle, void *caCallbackData)
{
VBOOL bShutdownReturn;
int error = 0;
TSUI_ApplicationMgrCloseAllExecutions(gMainWindow.applicationMgr, &errorInfo);
TSUI_ApplicationMgrCloseAllSequenceFiles(gMainWindow.applicationMgr, &errorInfo);
TSUI_ApplicationMgrShutdown(gMainWindow.applicationMgr, &errorInfo, &bShutdownReturn );
return S_OK;
}
Solved! Go to Solution.
03-05-2009 06:13 AM
You don't need to unload it this way.
You can use the ReloadSequenceFilesOnStart-property of the ApplicationMgr to suppress reloading of files.
hope this helps,
Norbert
03-05-2009 06:16 AM
Hi,
The OperatorInterface doesn't open a sequence file upon launching unless
1) You have Customised the Operator Interface
2) You are passing a command Line argument to testexec.exe or seqeditor.exe (see table 8-6 of the Reference Manual)
What Teststand are you using.
Regards
Ray Farmer
03-05-2009 06:40 AM
Thanks for your help. Now it works!