Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Connecting LabVIEW with Scilab

LabVIEW is an open platform that allows you to easily integrate 3rd-party (external) software such as Scilab from the Scilab Consortium (DIGITEO). This document discusses the LabVIEW - Scilab Gateway Software, a tool that allows you to easily invoke scripts from Scilab from your LabVIEW graphical programming.

What is Scilab from the Scilab Consortium (DIGITEO)?

Scilab from the Scilab Consortium (DIGITEO) is free software for numerical computation. Freely downloadable from http://www.scilab.org, Scilab offers a text-based language with built-in functions and syntax that simplify numerical computation involving vectors and matrices.

Connecting NI LabVIEW with Scilab

With the NI LabVIEW - Scilab Gateway Software you can easily invoke your Scilab Scripts from LabVIEW Virtual Instruments (VIs).


Figure 1, The Gateway software installs into LabVIEW as a script node, a text-editor region that you can drag-and-drop onto your LabVIEW block diagrams. The Scilab script node is available from the LabVIEW diagram through the Function palette in the Mathematics >> Scripts & Formulas >> Script Nodes >> Scilab subpalette.


Figure 2, You can wire into and out of a Gateway script node by defining input / output variables on the edge of a node. You can do so by right-clicking the edge of the Gateway script node and making a selection from the pop-up menu (1). Next, type the name of the variable that you wish to associate with the new input (or output) (2). You can then wire into (or out of) (3) the new input (or output).

Setup and Installation of the NI LabVIEW Scilab Gateway Software

System Requirements

The LabVIEW - Scilab Gateway Software requires the following:

  • Microsoft Windows 7/Vista/XP

  • The 32-bit Gateway Software requires LabVIEW (8.0 or later) – Full, Professional, Student, or Evaluation Editions

** Not supported under LabVIEW Base development systems **

  • The 64-bit Gateway requires LabVIEW 2009 (64-bit) or later.
  • Scilab 5.3.0 (or later) - Consortium Scilab (DIGITEO)

Version 1.2 of the LabVIEW to Scilab Gateway has been updated to work with the latest version of Scilab. This version adds support for 2D arrays of strings and 2D arrays of Boolean values.

Downloading and Installing the NI LabVIEW - Scilab Gateway Software

  1. Visit NI LabVIEW Scilab Gateway to download the gateway software. The  download is a compressed zip file -- unzip the file that you download to a new folder.

  2. If you have not already done so, install Scilab 5.3.0 (or later) - Consortium Scilab (DIGITEO), If you upgrade  Scilab, make sure to remove the old version before installing the latest version.

  3. If you have not already done so, install National Instruments LabVIEW.

  4. The Zip file that you downloaded in step 1 contains separate installers for 32-bit and 64-bit versions of the Gateway. Run the installer EXE that matches the revision of Scilab and LabVIEW noting the following:
    1. The 32-bit Gateway Software requires LabVIEW (8.0 or later) – Full, Professional, Student, or Evaluation Editions.
    2. The 64-bit Gateway requires LabVIEW 2009 (64-bit) or later.
    3. The LabVIEW to Scilab Gateway software will be installed for use with the most-recently installed version of LabVIEW.
    1. Restart LabVIEW to apply the changes and complete the installation.

    The installer will copy a readme.pdf file with additional instructions for working with the Gateway.

    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Member WSOCT

    I try to install Labview-Scilab-Gateway.exe and after I choose English as language. I get error saying it can't detect Labview on my computer. I have Labview 9 installed. What do I do?

    Member visagd

    I have encountered exactly the same problem with all the available languages of the scilab gateway installer.

    Member nlr6881a


    I have also the same problem with Labview 2009 and Windows XP. I have tried with Labview 2010(evaluation) and Windows Vista and the gate is working well...

    I have read on a forum that the problem may comes from XP (dixit an NI engineer).

    Member visagd

    I have to use XP. Is there any solution for XP?.

    For instance, does any body know wether it makes sense to downgrade the version of LabView to a previous one?.


    Member sshearman

    The issue with installation on Windows XP should be resolved with the installer as posted.

    Sam Shearman
    Member visagd

    Where is it posted?. Could you give a link?. Thanks.

    Member nlr6881a

    I have downloaded again the gateway and it work well with Windows XP, LV2009 and Scilab 5.3.2.

    Member sshearman
    Member visagd

    I have downloaded it and it works fine now. Thanks a lot.

    Member oggy_B

    Is it possible to start Scilab scripts (*.sce) from LabVIEW?

    Member Cloclo

    I have downloaded the gateway. It doesn't work on my personnal computer.

    When I launch LabView-Scilab-Gateway.exe, I have the message "LabView not detecte. Installation Aborted".

    The configuration of my PC is the following:

    Windows XP

    LabView 2010

    Scilab 5.3.3.

    Thanks for your help,

    Member khbhatt

    So my guess is that this does not work with Labview 8.2 Base system ...

    I can still run the examples, but do not see Mathematics > Scripts & Formula.

    Any chance I can get the Scilab/LabView 8.2 Base to work?

    Member EliWilson

    Was just on the phone with LabVIEW tech support.  This gateway DOES require the Full Development System.  The Base Package of LabVIEW won't work as you don't have access to the right subpalettes. 

    Member EliWilson

    Reviewing the "help" says that the "Scripts & Formulas VIs" subpalette requires the Full Development System.  That should be stated much more clearly on this page and on Scilab's webpage.