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


SendScilabJobs

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

int SendScilabJobs(char **jobs, int numberjobs);

Description

This fonction is provided in call_scilab. This function send many tasks which will be processed by the Scilab engine.

Note that the ending ";" is not mandatory at the end of a command.

Arguments

jobs

an array of standard C char* containing the Scilab instructions

numberjobs

The number of the Scilab instructions

returns

0 is all the operations are successful.

-10 if .

<0 and > -10 when an error occurred in the execution.

Examples

// A simple SendScilabJobs example

char* jobs[3];
jobs[0]="a = 1";
jobs[1]="b = 3";
jobs[2]="c = a + b;";
SendScilabJobs(jobs,3);
SendScilabJob("disp(c);"); // Will display   4.

See also

Report an issue
<< SendScilabJob call_scilab API (Scilab engine) StartScilab >>

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