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


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 processed by the Scilab engine.

Arguments

job

a standard C char* containing the Scilab instructions

returns

0 if the execution is successful.

-1 if the execution fails.

Examples

// A simple SendScilabJob example

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

See also

  • Call_Scilab — call_scilab is an interface which provides the ability to call Scilab engine from C/C++ code
  • Compile and run with call_scilab — How to compile a native application based on or using Scilab
  • ExecScilabCommand — Execute a Scilab from a C/C++ code (call_scilab) and can get message and callstack on error.
  • API Scilab — api_scilab is the Scilab 6 interface to access Scilab variables.
Report an issue
<< ScilabHaveAGraph call_scilab API (Scilab engine) 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:
Thu Oct 24 11:18:38 CEST 2024