Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

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

Scilab manual >> call_scilab API > SendScilabJob

SendScilabJob

Send a Scilab task from a C/C++ code (call_scilab)

int SendScilabJob(char *job);

Description

This fonction is provided in call_scilab. This function send a task which will be proccessed by the Scilab engine.

Arguments

job

a standard C char* containing the Scilab instructions

returns

0 is the operation is successfull.

-1 if Call Scilab has not been able to write the job into Scilab.

-2 or -3 if Call Scilab has not been able to read the error code from Scilab.

-4 if Call Scilab has not been able to allocate the job.

Examples

// A simple SendScilabJob example

if (SendScilabJob("disp('unfinished quote)")!=0){ // This will fail
 printf("An error occured\n");
}
SendScilabJob("myMatrix=['sample','for the help']");

Authors

Sylvestre Ledru

<< ScilabHaveAGraph call_scilab API SendScilabJobs >>

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:
Wed Jan 26 16:23:48 CET 2011