KeepMatlabRunning
Matlab
public
BOOL KeepMatlabRunning
EX1
#include <externApps.h> // this file is not included in origin.h void Matlab_KeepMatlabRunning_ex1() { Matlab matObj(TRUE); if(!matObj) { out_str("No Matlab found"); return; } // Matlab object successfully created, i.e. communication established BOOL bIsKeep = matObj.KeepMatlabRunning; matObj.KeepMatlabRunning = !bIsKeep; }
Controls if Origin should keep Matlab session alive after closing the connection. When Origin exits, Matlab session created by Origin, or Matlab session started prior to Origin one, with command line: Matlab /Automation, will close.
ExternApps.h