Skip navigation

Community

Currently Being Moderated

Connecting LabVIEW with Scilab

VERSION 8  Click to view document history
Created on: Sep 8, 2008 2:41 PM by Grant Heimbach - Last Modified:  Jul 26, 2013 2:47 PM by KBreezy

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).

http://zone.ni.com/cms/images/devzone/epd/Scilab%20Script%20Node.png

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.


http://zone.ni.com/cms/images/devzone/epd/Graphic1.png

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.

    Comments (14)