2.2.2.1.6 Matlab::KeepMatlabRunning

ClassName

Matlab

AccessType

public

Name

KeepMatlabRunning

Declaration

BOOL KeepMatlabRunning

Remark

Examples

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

Description

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.

Header to Include

ExternApps.h

See Also

Reference