Plug your Scilab model

Suggest edits
Documentation > Plug

Contents

ScilabTask 🔗

Scilab is an open source software initially designed for numerical computation (see the official website). It provides its own high-level scripting language and can be used as a computing kernel only. Note that it includes most of proprietary Matlab's functionalities and that a set of conversion tools exists (doc).

Preliminary remark 🔗

The ScilabTask uses the Singularity container system. You should install Singularity on your system otherwise you won't be able to use it.

Simple ScilabTask 🔗

Here is a dummy workflow multiplying a vector dArray by i using a ScilabTask:

// Declare variables
val i = Val[Int]
val dArray = Val[Array[Double]]

// Task
val m = ScilabTask("dArray = dArray * i") set (
    inputs += i mapped "i",
    inputs += dArray mapped "dArray",
    outputs += i,
    outputs += dArray mapped "dArray",

    // Default values
    i := 9,
    dArray := Array(9.0, 8.0)
)

// Workflow
m hook DisplayHook()