Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Xcos > Scilab Utilities Functions > scicosDiagramToScilab

scicosDiagramToScilab

Load or Save an Xcos diagram

Syntax

scs_m = scicosDiagramToScilab(filename)
[scs_m1, scs_m2, ...] = scicosDiagramToScilab([filename1, filename2, ...])
scicosDiagramToScilab(filename, scs_m)
scicosDiagramToScilab([filename1, filename2, ...], scs_m1, scs_m2)

Module

Arguments

  • scs_m: The scicos_diagram data structure.

  • filename: The Xcos file to load.

Description

Used to load and save a diagram in scripts in NWNI / CLI mode.

To load some files into Scilab as an scicos_diagram data structure, use one or multiple output variables. The variable can then be manipulated in Scilab to launch a simulation, update context, settings or blocks.

To save a file from Scilab, pass some scicos_diagram data structures as input parameters. The output file format is selected accordingly to the files extension.

Examples

filename=SCI+"/modules/xcos/demos/demo_Datatype.xmi";
scs_m=scicosDiagramToScilab(filename),
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:13:36 CET 2017