Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


StartScilab

Initializes and starts Scilab engine in Call Scilab

BOOL StartScilab(char *SCIpath, char *ScilabStartup, int Stacksize);

Description

This fonction starts the Scilab engine. This is mandatory to use SendScilabJob functions and to manage Scilab's data.

BOOL is just a simple typedef on int (typedef int BOOL ). TRUE is defined on 1 (#define TRUE 1) and FALSE is defined on 0 (#define FALSE 0).

Arguments

SCIpath

a standard C char* containing the path to Scilab data

This argument is mandatory under Linux, Unix or Mac OS X.

Under Windows, if SCIpath is NULL, Scilab will find the path.

ScilabStartup

a standard C char* containing the path to Scilab startup script (scilab.start)

If ScilabStartup is NULL, Scilab will use the default path (detected from SCIpath).

Stacksize

a standard int defining the size of the Scilab stack

If Stacksize is zero, Scilab will use the default stacksize of Scilab.

returns

1 (TRUE) if the operation is successful.

0 (FALSE) if an error during initialization occurred.

Examples

// A simple StartScilab example
if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE )
{
fprintf(stderr,"Error while calling StartScilab\n");
return -1;
}

See also

Report an issue
<< SendScilabJobs call_scilab API (Scilab engine) TerminateScilab >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:55:12 CEST 2024