1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2016-2016 - Scilab Enterprises - Clement DAVID
6 * Copyright (C) 2016 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="xcosDiagramToScilab">
18 <refname>xcosDiagramToScilab</refname>
19 <refpurpose>Load or Save an Xcos diagram</refpurpose>
23 <synopsis>scs_m = xcosDiagramToScilab(filename)</synopsis>
24 <synopsis>[scs_m1, scs_m2, ...] = xcosDiagramToScilab([filename1, filename2, ...])</synopsis>
26 <synopsis>xcosDiagramToScilab(filename, scs_m)</synopsis>
27 <synopsis>xcosDiagramToScilab([filename1, filename2, ...], scs_m1, scs_m2)</synopsis>
29 <refsection id="Module_xcosDiagramToScilab">
34 <link linkend="xcos">xcos</link>
39 <refsection id="Parameters_xcosDiagramToScilab">
40 <title>Arguments</title>
44 <emphasis role="bold">scs_m</emphasis>: The <link linkend="scicos_diagram">scicos_diagram</link> data structure.
49 <emphasis role="bold">filename</emphasis>: The Xcos file to
55 <refsection id="Description_xcosDiagramToScilab">
56 <title>Description</title>
57 <para>Used to load and save a diagram in scripts.</para>
59 To load some files into Scilab as an <link linkend="scicos_diagram">scicos_diagram</link> 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.
62 To save a file from Scilab, pass some <link linkend="scicos_diagram">scicos_diagram</link> data structures as input parameters. The output file format is selected accordingly to the files extension.
66 <title>Examples</title>
67 <programlisting role="example">
68 filename=SCI+"/modules/xcos/demos/demo_Datatype.zcos";
69 scs_m=xcosDiagramToScilab(filename),
72 <refsection id="SeeAlso_xcosDiagramToScilab">
73 <title role="see also">See also</title>
76 <link linkend="scicos_diagram">scicos_diagram</link>
79 <link linkend="xcos">xcos</link>
82 <link linkend="importXcosDiagram">importXcosDiagram</link>