- Aide Scilab
- API call_scilab (moteur Scilab)
- Boolean management
- Complex management
- Double management
- String management
- Compile and run with Call Scilab
- creadbmat (obsolete)
- creadchain (obsolete)
- creadcmat (obsolete)
- creadmat (obsolete)
- cwritebmat (obsolete)
- cwritechain (obsolete)
- cwritecmat (obsolete)
- cwritemat (obsolete)
Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
Write a single string into Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: String writing for remplacement.
int C2F(cwritechain)(char *name, int *myStringSize, char *myString, unsigned long name_len, unsigned long myString_len);
The name of the future Scilab variable
The length of the string which is going to be write into Scilab memory
The actual String (char *)
The length of the variable name (fortran compatibility)
The length of the string (fortran compatibility)
C2F is just a macro which provides to this function the ability to be called from fortran
This help describes how to use the function cwritechain.
Using this function will basically do the same as A = "my own String"; but straight into Scilab memory with call_scilab.
// This example shows how to write a Scilab string in Scilab engine // It is the equivalent to A="my Message"; in Scilab interpretor // See: modules/call_scilab/examples/basicExamples/readwritestring.c // StartScilab char *myString = "my Message"; /* Declare the string */ char variableName = "A"; / * The name of the future variable in Scilab */ int sizeOfMyString=strlen(myString); C2F(cwritechain)(variableName, &sizeOfMyString , myString, strlen(variableName), sizeOfMyString); /* Write it into Scilab's memory */ printf("Display from Scilab of A:\n"); SendScilabJob("disp(A);"); /* Display A */
- Call_Scilab — call_scilab is an interface which provides the ability to call Scilab engine from C/C++ code
- api Scilab — api_scilab is the Scilab interface to read/write data from/to Scilab memory
- API_Scilab: String reading — How to read matrices of strings in a gateway.
- API_Scilab: String writing — How to write matrices of string in a gateway.
- SendScilabJob — Send a Scilab task from a C/C++ code (call_scilab)
- StartScilab — Initializes and starts Scilab engine in Call Scilab
- creadchains — Read a single string from Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: String reading for remplacement.
- String Management — How to manage Scilab's String read and write process using call_scilab and api_scilab