NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

testand CloseAllSequenceFiles

Solved!
Go to solution

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;
 
}

0 Kudos
Message 1 of 4
(3,126 Views)
Solution
Accepted by topic author Xroulio

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,124 Views)

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

Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,123 Views)

Thanks for your help. Now it works!

0 Kudos
Message 4 of 4
(3,117 Views)