Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Xcos > Scilab Utilities Functions > xcosDiagramToScilab

xcosDiagramToScilab

Load or Save an Xcos diagram

Syntax

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

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

Arguments

  • scs_m: The scicos_diagram data structure.

  • filename: The Xcos file to load.

Description

Used to load and save a diagram in scripts.

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.zcos";
scs_m=xcosDiagramToScilab(filename),
Report an issue
<< xcosAddToolsMenu Scilab Utilities Functions xcosPal >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:49:22 CET 2020