Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - 日本語

Please note that the recommended version of Scilab is 6.0.2. This page might be outdated.
See the recommended documentation of this function

Manual Scilab >> call_scilab API > StartScilab


Initializes and starts Scilab engine in Call Scilab

BOOL StartScilab(char *SCIpath, char *ScilabStartup, int


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).



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.


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).


a standard int* defining the size of the Scilab stack

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


1 (TRUE) if the operation is successfull.

0 (FALSE) if an error during initialization occured.


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


Sylvestre Ledru

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:24:43 CET 2011