25
25
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xcos_menu_entries">
27
<refname>Menu_Entries</refname>
28
<refpurpose>Xcos editor menu entries</refpurpose>
30
<refsection id="Contents_xcos_menu_entries">
31
<title>Contents</title>
33
This section presents briefly all the menu entries of the <emphasis>Xcos</emphasis> editor. Many items are also
34
available in pull-down menus shown by a right click when the mouse cursor is on a block, a link or in the main
35
<emphasis>Xcos</emphasis> window.
40
<link linkend="xcos_menu_entries">Xcos editor menu entries</link>
47
<xref linkend="Filemenu_Menu_entries">File menu</xref>
52
<xref linkend="Editmenu_Menu_entries">Edit menu</xref>
57
<xref linkend="Viewmenu_Menu_entries">View menu</xref>
62
<xref linkend="Simulatemenu_Menu_entries">Simulate menu</xref>
67
<xref linkend="Formatmenu_Menu_entries">Format menu</xref>
72
<xref linkend="Toolsmenu_Menu_entries">Tools menu</xref>
77
<xref linkend="Helpmenu_Menu_entries">? menu</xref>
82
<xref linkend="Seealso_Menu_entries">See Also</xref>
89
<refsection id="Filemenu_Menu_entries">
90
<title>File menu</title>
93
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_file.png"/>
100
<emphasis role="bold"> File:New (Ctrl+N)</emphasis>
103
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-new.png"/>
108
Clicking on the <emphasis>New</emphasis> menu item open a new empty <emphasis>Xcos</emphasis> diagram in a new
109
window. With this menu, you can open a new diagram or a new palette.
115
<emphasis role="bold">File:Open (Ctrl+O)</emphasis>
118
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-open.png"/>
123
Select the <emphasis>Open</emphasis> menu item to load an XML (<emphasis>.xcos</emphasis>) or a binary file
124
(<emphasis>.cos</emphasis>) which contain saved block diagram or a palette. The command open a dialog box allows
125
you to choose the folder and the file.
131
<emphasis role="bold">File:Save (Ctrl+S)</emphasis>
134
<imagedata fileref="../../../gui/images/icons/16x16/devices/media-floppy.png"/>
139
Select the <emphasis>Save</emphasis> menu item to save the diagram in a
140
<emphasis>XML</emphasis> file.
143
If you select this menu item and you have never clicked on the <emphasis>Save</emphasis> or
144
<emphasis>Save As</emphasis> menu item, a dialog allows you to choose a directory and
145
specify a file name without extension. The default extension is <emphasis>.xcos</emphasis>.
147
<para>The diagram takes the name of the file (without the extension).</para>
152
<emphasis role="bold">File:Save As (Ctrl+Shift+S)</emphasis>
155
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-save-as.png"/>
160
Select the <emphasis>Save As</emphasis> menu item to save the block diagram or palette in a file with a new name.
163
A dialog box allows specifying a file name without the extension and a saving folder.
164
The default extension is <emphasis>.xcos</emphasis>.
166
<para>The diagram takes the name of the file (without the extension).</para>
171
<emphasis role="bold">File:Export (Ctrl+E)</emphasis>
174
This item is used to export a figure of the current <emphasis>Xcos</emphasis> diagram. The export can be done
175
in the WBMP, GIF, HTML, JPEG, JPG, PNG, SVG or VML formats.
181
<emphasis role="bold">File:Recent Files</emphasis>
183
<para>Via this menu, you have a quick access to the recent opened files.</para>
188
<emphasis role="bold">File:Print (Ctrl+P)</emphasis>
191
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-print.png"/>
195
<para>Print the current diagram onto a printer.</para>
200
<emphasis role="bold">File:Close (Ctrl+W)</emphasis>
203
If several diagrams are opened, the <emphasis>Close</emphasis> action the current diagram. If only one diagram is
204
opened, the <emphasis>Close</emphasis> action will close <emphasis>Xcos</emphasis>. The auxiliary windows as
205
viewport, palettes, etc are also closed if
212
<emphasis role="bold">File:Quit (Ctrl+Q)</emphasis>
215
The <emphasis>Quit</emphasis> action will close <emphasis>Xcos</emphasis>.
216
The auxiliary windows as viewport, palettes, etc are also closed if necessary.
221
<refsection id="Editmenu_Menu_entries">
222
<title>Edit menu</title>
225
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_edit.png"/>
232
<emphasis role="bold">Edit:Undo (Ctrl+Z)</emphasis>
235
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-undo.png"/>
240
Select the <emphasis>Undo</emphasis> menu item to undo the last edit operation.
245
<emphasis role="bold">Edit:Redo (Ctrl+Y)</emphasis>
248
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-redo.png"/>
253
Select the <emphasis>Redo</emphasis> menu item to redo the last undo edit operation.
259
<emphasis role="bold">Edit:Cut (Ctrl+X)</emphasis>
262
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-cut.png"/>
267
<emphasis>Cut</emphasis> is used to remove the selected objects from the diagram and to copy them in the clipboard.
268
When you cut a block all links connected to it are deleted as well.
274
<emphasis role="bold">Edit:Copy (Ctrl+C)</emphasis>
277
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-copy.png"/>
282
<emphasis>Copy</emphasis> is used to place a copy of the selected in the clipboard.
288
<emphasis role="bold">Edit:Paste (Ctrl+V)</emphasis>
291
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-paste.png"/>
296
<emphasis>Paste</emphasis> places the content of the clipboard in the current diagram.
302
<emphasis role="bold">Edit:Delete (Delete)</emphasis>
305
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-delete.png"/>
310
To delete blocks or links, select objects to be deleted and then the <emphasis>Delete</emphasis> menu item.
311
When you delete a block all links connected to it are deleted as well.
317
<emphasis role="bold">Edit:Select all (Ctrl+A)</emphasis>
320
<emphasis>Select all</emphasis> the blocks in the current diagram.
326
<emphasis role="bold">Edit:Invert selection</emphasis>
328
<para>Invert the current selection.</para>
333
<emphasis role="bold">Edit:Block Parameters (Ctrl+B)</emphasis>
336
<imagedata fileref="../../../gui/images/icons/16x16/categories/applications-system.png"/>
341
Open the block configuration dialog for the current selected block. The configuration depends of the used block
342
(see the block help to obtain more information on its configuration).
348
<emphasis role="bold">Edit:Region to superblock</emphasis>
351
<imagedata fileref="../../../xcos/images/icons/16x16/actions/object-group.png"/>
355
<para>Convert a selection of blocks into a superblock.</para>
359
<refsection id="Viewmenu_Menu_entries">
360
<title>View menu</title>
363
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_view.png"/>
370
<emphasis role="bold">View:Zoom in (Ctrl+Plus)</emphasis>
373
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-in.png"/>
377
<para>When you select this menu item the diagram is zoomed in by a factor of 10%.</para>
382
<emphasis role="bold">View:Zoom out (Ctrl+Minus)</emphasis>
385
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-out.png"/>
389
<para>When you select this menu item the diagram is zoomed out by a factor of 10%.</para>
394
<emphasis role="bold">View:Fit diagram to view</emphasis>
397
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-fit-drawing.png"/>
401
<para>When you select this menu item the diagram is fit to the size of the current window.</para>
406
<emphasis role="bold">View:Normal 100%</emphasis>
409
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-original.png"/>
413
<para>Resize the diagram components at their normal displaying dimensions.</para>
418
<emphasis role="bold">View:Palette browser</emphasis>
420
<para>Open the palette browser.</para>
425
<emphasis role="bold">View:Diagram browser</emphasis>
428
Displays a window which lists the global properties of a diagram and all its objects (blocks and links). It presents in
429
a tree form the <emphasis>scs_m</emphasis> structure content of the diagram.
435
<emphasis role="bold">View:Viewport</emphasis>
438
Display the <emphasis>Viewport</emphasis> window. This window is a complete image of the current diagram. With
439
the <emphasis>Viewport</emphasis>, you can move the displaying working area onto a part of the diagram.
440
You can zoom and unzoom part of a diagram.
445
<imagedata fileref="../gui/xcos_menu_entries/en_US/xcos_menu_viewport.png"/>
450
Above, you have an example of the viewport docked in the <emphasis>Xcos</emphasis> which is used to zoom on a
451
part of a diagram. On the left the editor window presents the zoomed part of the diagram.
457
<emphasis role="bold">View:Details</emphasis>
460
Displays a window by selected block which list properties of block. It presents in a tree form
461
the <emphasis>scicos_block</emphasis> structure content of the blocks.
466
<refsection id="Simulatemenu_Menu_entries">
467
<title>Simulation menu</title>
470
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_simulation.png"/>
477
<emphasis role="bold">Simulation:Setup</emphasis>
480
<imagedata fileref="../../../xcos/images/icons/16x16/categories/preferences-desktop.png"/>
486
In the main <emphasis>Xcos</emphasis> window, clicking on the <emphasis>Setup</emphasis> menu item invokes
487
the dialog box below that allows you to change integration (simulation) parameters:
492
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_set_simulation_parameters_gui.png"/>
499
<emphasis role="bold">Final integration time</emphasis>: integration (simulation)
500
ends at this time, it always starts from 0
506
<emphasis role="bold">Real time scaling</emphasis>: forces real time simulation
507
by setting <emphasis>Xcos</emphasis> simulation in unit of time to 1 second.
513
<emphasis role="bold">Absolute and relative error tolerances</emphasis>: solver
520
<emphasis role="bold">Time tolerance</emphasis>: the smallest time interval for which
521
the ode solver is used to update continuous states.
527
<emphasis role="bold">Max integration time interval</emphasis>: the maximum time
528
interval for each call to solver.it must be reduced if the error message "Too many calls" is encountered
533
<emphasis role="bold">Solver</emphasis>: select the numerical solver to be used. You have the
534
choice between an ordinary differential equations (ODE) solver and an algebraic differential
535
equations solver (IDA). If <emphasis>Xcos</emphasis> detects that your model requires an IDA
536
solver, <emphasis> Xcos</emphasis> displays an information box on the automatic switching to
543
<emphasis role="bold">Max step size</emphasis>: maximum time step taken by the solver. This parameter is useful
544
to search localized singularities in a monotonic system response. For this type of response, the numerical solver
545
increase automatically the step size for decrease the calculation time. If you think that your system is in this
546
case, decrease the value of this parameter.
552
<emphasis role="bold">Set context</emphasis>: see explanation below
558
<emphasis role="bold">Default</emphasis>: this button reset the simulation parameters
559
to their factory values.
565
For more information on the solver look at the <xref linkend="Seealso_Menu_entries">
574
<emphasis role="bold">Execution Trace and Debug</emphasis>
577
Set <emphasis>Xcos</emphasis> in debug mode. This item opens the following dialog box in which you can choose
578
the debugging mode. For more information, see the command <link linkend="scicos_debug">scicos_debug</link>
584
<emphasis role="bold">Simulation:Set Context</emphasis>
587
When you select this menu item you obtain this dialog:
592
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_set_context_gui.png"/>
597
You can enter here <emphasis>Scilab</emphasis> instructions for defining the symbolic <emphasis>Xcos</emphasis>
598
parameters used in block definitions or to do whatever you want.
601
These instructions will be evaluated each time the diagram is loaded. If you change the value of a symbolic
602
<emphasis>Xcos</emphasis> parameters in the context, all the blocks that contains this symbolic parameter are
603
updated when you click on <emphasis>OK</emphasis>. By example if you want to set the value
604
of gain of several blocks to a value which depends on a single value, you can proceed like this :
609
We have three GAINBLK_f blocks, open the <emphasis>Set context</emphasis> dialog and
610
writes the symbolic variables:
613
<programlisting><![CDATA[
27
<refname>Menu_Entries</refname>
28
<refpurpose>Xcos editor menu entries</refpurpose>
30
<refsection id="Contents_xcos_menu_entries">
31
<title>Contents</title>
33
This section presents briefly all the menu entries of the <emphasis>Xcos</emphasis> editor. Many items are also
34
available in pull-down menus shown by a right click when the mouse cursor is on a block, a link or in the main
35
<emphasis>Xcos</emphasis> window.
40
<link linkend="xcos_menu_entries">Xcos editor menu entries</link>
47
<xref linkend="Filemenu_Menu_entries">File menu</xref>
52
<xref linkend="Editmenu_Menu_entries">Edit menu</xref>
57
<xref linkend="Viewmenu_Menu_entries">View menu</xref>
62
<xref linkend="Simulatemenu_Menu_entries">Simulate menu</xref>
67
<xref linkend="Formatmenu_Menu_entries">Format menu</xref>
72
<xref linkend="Toolsmenu_Menu_entries">Tools menu</xref>
77
<xref linkend="Helpmenu_Menu_entries">? menu</xref>
82
<xref linkend="Seealso_Menu_entries">See Also</xref>
89
<refsection id="Filemenu_Menu_entries">
90
<title>File menu</title>
93
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_file.png"/>
100
<emphasis role="bold"> File:New (Ctrl+N)</emphasis>
103
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-new.png"/>
108
Clicking on the <emphasis>New</emphasis> menu item open a new empty <emphasis>Xcos</emphasis> diagram in a new
109
window. With this menu, you can open a new diagram or a new palette.
115
<emphasis role="bold">File:Open (Ctrl+O)</emphasis>
118
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-open.png"/>
123
Select the <emphasis>Open</emphasis> menu item to load an XML (<emphasis>.xcos</emphasis>) or a binary file
124
(<emphasis>.cos</emphasis>) which contain saved block diagram or a palette. The command open a dialog box allows
125
you to choose the folder and the file.
131
<emphasis role="bold">File:Save (Ctrl+S)</emphasis>
134
<imagedata fileref="../../../gui/images/icons/16x16/devices/media-floppy.png"/>
139
Select the <emphasis>Save</emphasis> menu item to save the diagram in a
140
<emphasis>XML</emphasis> file.
143
If you select this menu item and you have never clicked on the <emphasis>Save</emphasis> or
144
<emphasis>Save As</emphasis> menu item, a dialog allows you to choose a directory and
145
specify a file name without extension. The default extension is <emphasis>.xcos</emphasis>.
147
<para>The diagram takes the name of the file (without the extension).</para>
152
<emphasis role="bold">File:Save As (Ctrl+Shift+S)</emphasis>
155
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-save-as.png"/>
160
Select the <emphasis>Save As</emphasis> menu item to save the block diagram or palette in a file with a new name.
163
A dialog box allows specifying a file name without the extension and a saving folder.
164
The default extension is <emphasis>.xcos</emphasis>.
166
<para>The diagram takes the name of the file (without the extension).</para>
171
<emphasis role="bold">File:Export (Ctrl+E)</emphasis>
174
This item is used to export a figure of the current <emphasis>Xcos</emphasis> diagram. The export can be done
175
in the WBMP, GIF, HTML, JPEG, JPG, PNG, SVG or VML formats.
181
<emphasis role="bold">File:Recent Files</emphasis>
183
<para>Via this menu, you have a quick access to the recent opened files.</para>
188
<emphasis role="bold">File:Print (Ctrl+P)</emphasis>
191
<imagedata fileref="../../../gui/images/icons/16x16/actions/document-print.png"/>
195
<para>Print the current diagram onto a printer.</para>
200
<emphasis role="bold">File:Close (Ctrl+W)</emphasis>
203
If several diagrams are opened, the <emphasis>Close</emphasis> action the current diagram. If only one diagram is
204
opened, the <emphasis>Close</emphasis> action will close <emphasis>Xcos</emphasis>. The auxiliary windows as
205
viewport, palettes, etc are also closed if
212
<emphasis role="bold">File:Quit (Ctrl+Q)</emphasis>
215
The <emphasis>Quit</emphasis> action will close <emphasis>Xcos</emphasis>.
216
The auxiliary windows as viewport, palettes, etc are also closed if necessary.
221
<refsection id="Editmenu_Menu_entries">
222
<title>Edit menu</title>
225
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_edit.png"/>
232
<emphasis role="bold">Edit:Undo (Ctrl+Z)</emphasis>
235
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-undo.png"/>
240
Select the <emphasis>Undo</emphasis> menu item to undo the last edit operation.
245
<emphasis role="bold">Edit:Redo (Ctrl+Y)</emphasis>
248
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-redo.png"/>
253
Select the <emphasis>Redo</emphasis> menu item to redo the last undo edit operation.
259
<emphasis role="bold">Edit:Cut (Ctrl+X)</emphasis>
262
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-cut.png"/>
267
<emphasis>Cut</emphasis> is used to remove the selected objects from the diagram and to copy them in the clipboard.
268
When you cut a block all links connected to it are deleted as well.
274
<emphasis role="bold">Edit:Copy (Ctrl+C)</emphasis>
277
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-copy.png"/>
282
<emphasis>Copy</emphasis> is used to place a copy of the selected in the clipboard.
288
<emphasis role="bold">Edit:Paste (Ctrl+V)</emphasis>
291
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-paste.png"/>
296
<emphasis>Paste</emphasis> places the content of the clipboard in the current diagram.
302
<emphasis role="bold">Edit:Delete (Delete)</emphasis>
305
<imagedata fileref="../../../gui/images/icons/16x16/actions/edit-delete.png"/>
310
To delete blocks or links, select objects to be deleted and then the <emphasis>Delete</emphasis> menu item.
311
When you delete a block all links connected to it are deleted as well.
317
<emphasis role="bold">Edit:Select all (Ctrl+A)</emphasis>
320
<emphasis>Select all</emphasis> the blocks in the current diagram.
326
<emphasis role="bold">Edit:Invert selection</emphasis>
328
<para>Invert the current selection.</para>
333
<emphasis role="bold">Edit:Block Parameters (Ctrl+B)</emphasis>
336
<imagedata fileref="../../../gui/images/icons/16x16/categories/applications-system.png"/>
341
Open the block configuration dialog for the current selected block. The configuration depends of the used block
342
(see the block help to obtain more information on its configuration).
348
<emphasis role="bold">Edit:Region to superblock</emphasis>
351
<imagedata fileref="../../../xcos/images/icons/16x16/actions/object-group.png"/>
355
<para>Convert a selection of blocks into a superblock.</para>
359
<refsection id="Viewmenu_Menu_entries">
360
<title>View menu</title>
363
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_view.png"/>
370
<emphasis role="bold">View:Zoom in (Ctrl+Plus)</emphasis>
373
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-in.png"/>
377
<para>When you select this menu item the diagram is zoomed in by a factor of 10%.</para>
382
<emphasis role="bold">View:Zoom out (Ctrl+Minus)</emphasis>
385
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-out.png"/>
389
<para>When you select this menu item the diagram is zoomed out by a factor of 10%.</para>
394
<emphasis role="bold">View:Fit diagram to view</emphasis>
397
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-fit-drawing.png"/>
401
<para>When you select this menu item the diagram is fit to the size of the current window.</para>
406
<emphasis role="bold">View:Normal 100%</emphasis>
409
<imagedata fileref="../../../gui/images/icons/16x16/actions/zoom-original.png"/>
413
<para>Resize the diagram components at their normal displaying dimensions.</para>
418
<emphasis role="bold">View:Palette browser</emphasis>
420
<para>Open the palette browser.</para>
425
<emphasis role="bold">View:Diagram browser</emphasis>
428
Displays a window which lists the global properties of a diagram and all its objects (blocks and links). It presents in
429
a tree form the <emphasis>scs_m</emphasis> structure content of the diagram.
435
<emphasis role="bold">View:Viewport</emphasis>
438
Display the <emphasis>Viewport</emphasis> window. This window is a complete image of the current diagram. With
439
the <emphasis>Viewport</emphasis>, you can move the displaying working area onto a part of the diagram.
440
You can zoom and unzoom part of a diagram.
445
<imagedata fileref="../gui/xcos_menu_entries/en_US/xcos_menu_viewport.png"/>
450
Above, you have an example of the viewport docked in the <emphasis>Xcos</emphasis> which is used to zoom on a
451
part of a diagram. On the left the editor window presents the zoomed part of the diagram.
457
<emphasis role="bold">View:Details</emphasis>
460
Displays a window by selected block which list properties of block. It presents in a tree form
461
the <emphasis>scicos_block</emphasis> structure content of the blocks.
466
<refsection id="Simulatemenu_Menu_entries">
467
<title>Simulation menu</title>
470
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_simulation.png"/>
477
<emphasis role="bold">Simulation:Setup</emphasis>
480
<imagedata fileref="../../../xcos/images/icons/16x16/categories/preferences-desktop.png"/>
486
In the main <emphasis>Xcos</emphasis> window, clicking on the <emphasis>Setup</emphasis> menu item invokes
487
the dialog box below that allows you to change integration (simulation) parameters:
492
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_set_simulation_parameters_gui.png"/>
499
<emphasis role="bold">Final integration time</emphasis>: integration (simulation)
500
ends at this time, it always starts from 0
506
<emphasis role="bold">Real time scaling</emphasis>: forces real time simulation
507
by setting <emphasis>Xcos</emphasis> simulation in unit of time to 1 second.
513
<emphasis role="bold">Absolute and relative error tolerances</emphasis>: solver
520
<emphasis role="bold">Time tolerance</emphasis>: the smallest time interval for which
521
the ode solver is used to update continuous states.
527
<emphasis role="bold">Max integration time interval</emphasis>: the maximum time
528
interval for each call to solver.it must be reduced if the error message "Too many calls" is encountered
533
<emphasis role="bold">Solver</emphasis>: select the numerical solver to be used. You have the
534
choice between an ordinary differential equations (ODE) solver and an algebraic differential
535
equations solver (IDA). If <emphasis>Xcos</emphasis> detects that your model requires an IDA
536
solver, <emphasis> Xcos</emphasis> displays an information box on the automatic switching to
543
<emphasis role="bold">Max step size</emphasis>: maximum time step taken by the solver. This parameter is useful
544
to search localized singularities in a monotonic system response. For this type of response, the numerical solver
545
increase automatically the step size for decrease the calculation time. If you think that your system is in this
546
case, decrease the value of this parameter.
552
<emphasis role="bold">Set context</emphasis>: see explanation below
558
<emphasis role="bold">Default</emphasis>: this button reset the simulation parameters
559
to their factory values.
565
For more information on the solver look at the <xref linkend="Seealso_Menu_entries">
574
<emphasis role="bold">Execution Trace and Debug</emphasis>
577
Set <emphasis>Xcos</emphasis> in debug mode. This item opens the following dialog box in which you can choose
578
the debugging mode. For more information, see the command <link linkend="scicos_debug">scicos_debug</link>
584
<emphasis role="bold">Simulation:Set Context</emphasis>
587
When you select this menu item you obtain this dialog:
592
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_set_context_gui.png"/>
597
You can enter here <emphasis>Scilab</emphasis> instructions for defining the symbolic <emphasis>Xcos</emphasis>
598
parameters used in block definitions or to do whatever you want.
601
These instructions will be evaluated each time the diagram is loaded. If you change the value of a symbolic
602
<emphasis>Xcos</emphasis> parameters in the context, all the blocks that contains this symbolic parameter are
603
updated when you click on <emphasis>OK</emphasis>. By example if you want to set the value
604
of gain of several blocks to a value which depends on a single value, you can proceed like this :
609
We have three GAINBLK_f blocks, open the <emphasis>Set context</emphasis> dialog and
610
writes the symbolic variables:
613
<programlisting><![CDATA[
617
617
]]></programlisting>
622
Then, open successively each block parameters dialog and set for the gain value the name of
623
required symbolic value, here <emphasis>A</emphasis>,<emphasis> B</emphasis> and
624
<emphasis>C</emphasis>.
632
<emphasis role="bold">Simulate:Compile</emphasis>
635
Select the <emphasis>Compile</emphasis> menu item to compile the block diagram. This
636
menu item need never be used since compilation is performed automatically, if necessary,
637
before the beginning of every simulation (<emphasis>Run</emphasis> menu item). Normally,
638
a new compilation is not needed if only system parameters and internal states are modified.
639
In some cases however these modifications are not correctly updated and a manual compilation may be
640
needed before a <emphasis>Restart</emphasis> or a <emphasis>Continue</emphasis>.
643
<emphasis role="bold">Please report to us if you encounter such a case.</emphasis>
644
<ulink url="http://bugzilla.scilab.org/">
645
Report bugs and wishes about <emphasis>Scilab</emphasis>
652
<emphasis role="bold">Simulate:Modelica initialize</emphasis>
655
This menu item opens a specific dialog to the <emphasis>Modelica</emphasis> compiler where you can see the
656
components of your model and also select the solver between the <emphasis>Kinsol</emphasis>,
657
<emphasis>Ida</emphasis>, <emphasis>Fsolve</emphasis>, <emphasis>Optim</emphasis>,
658
<emphasis>Nelder Mead</emphasis> and <emphasis>Hompack</emphasis> solvers.
664
<emphasis role="bold">Simulate:Start</emphasis>
667
<imagedata fileref="../../../gui/images/icons/16x16/actions/media-playback-start.png"/>
672
Select the <emphasis>Start</emphasis> menu item to start the simulation. If the system
673
has already been simulated, a dialog box appears where you can choose to
674
<emphasis>Continue</emphasis>, <emphasis>Restart</emphasis> or <emphasis>End</emphasis>
681
<emphasis role="bold">Simulation:Stop</emphasis>
684
<imagedata fileref="../../../xcos/images/icons/16x16/actions/process-stop.png"/>
689
You may interrupt the simulation by clicking on the <emphasis>Stop</emphasis> menu item
690
or on the toolbar button. You can change any of the block parameters and continue the
691
simulation with the new values.
696
<refsection id="Formatmenu_Menu_entries">
697
<title>Format menu</title>
700
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format.png"/>
706
<emphasis role="bold">Format:Rotate (Ctrl+R)</emphasis>
709
<imagedata fileref="../../../gui/images/icons/16x16/actions/transform-rotate.png"/>
714
Rotate allows to turn a block on the left with an of 90°. Rotation affects all the selected blocks.
720
<emphasis role="bold">Format:Flip (Ctrl+F)</emphasis>
723
<imagedata fileref="../../../xcos/images/icons/16x16/actions/transform-flip.png"/>
728
To reverse the positions of the activation inputs and outputs set at the top and the bottom of a block, select a block
729
and select the <emphasis>Flip</emphasis> menu item. This does not affect the order, nor the position of the input and
730
output event ports which are numbered from left to right. Flipping affects all the selected blocks.
736
<emphasis role="bold">Format:Mirror (Ctrl+M)</emphasis>
739
<imagedata fileref="../../../xcos/images/icons/16x16/actions/transform-mirror.png"/>
744
To reverse the positions of the (regular) inputs and outputs set on the left and the right of a block, select a
745
block and select the <emphasis>Mirror</emphasis> menu item. This does not affect the order, nor the position of
746
the input and output ports which are numbered from top to bottom. Mirroring affects all the selected blocks.
752
<emphasis role="bold">Format:Show/Hide shadow</emphasis>
754
<para>This menu allows to select 3D shape for selected blocks and associated parameters.</para>
759
<emphasis role="bold">Format:Align Blocks</emphasis>
764
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format_align.png"/>
769
When you select several blocks, it is possible to align them on horizontal axis (<emphasis>Top</emphasis>,
770
<emphasis>Bottom</emphasis> and <emphasis>Middle</emphasis>) or on vertical axis (<emphasis>Left</emphasis>,
771
<emphasis>Right</emphasis>, <emphasis>Center</emphasis>).
777
<emphasis role="bold">Format: Border Color</emphasis>
780
<imagedata fileref="../../../xcos/images/icons/16x16/actions/draw-brush.png"/>
785
This menu allows to change the border color of the selected blocks.
791
<emphasis role="bold">Format:Fill Color</emphasis>
794
<imagedata fileref="../../../xcos/images/icons/16x16/actions/color-fill.png"/>
798
<para>This menu allows to change the fill color of the selected blocks.</para>
803
<emphasis role="bold">Format:Link Style</emphasis>
808
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format_link_style.png"/>
813
This menu allows to change the style of the link.
816
First select the link and select the appropriate menu item or use the shortcuts
817
(<emphasis>H</emphasis>), <emphasis>S</emphasis>, <emphasis>V</emphasis>).
818
The following list shows the results obtained.
823
Horizontal (<emphasis>H</emphasis>)
827
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_horizontal_en_US.png"/>
833
Straight (<emphasis>S</emphasis>)
837
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_straight_en_US.png"/>
843
Vertical (<emphasis>V</emphasis>)
847
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_vertical_en_US.png"/>
855
<emphasis role="bold">Format: Diagram background</emphasis>
857
<para>This menu allows to change the background color.</para>
862
<emphasis role="bold">Format:Grid</emphasis>
865
This menu allows to activate / deactivate the grid. With the grid, the block and link placement on the working area
866
is more easy and you obtain a more readable diagram.
871
<refsection id="Toolsmenu_Menu_entries">
872
<title>Tools menu</title>
875
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_tools.png"/>
881
<emphasis role="bold">Tools:Code generation</emphasis>
884
This menu allows to generate the simulation code associated with a discrete time Super Block. The code generation
885
is obtained simply by selecting the Super Block and then this menu.
888
If the Super Block satisfies the required conditions, a dialog box pops up to ask for a block name, a directory where
889
to put the generated files and for optional libraries requested by the linker.
890
Given this information the code is generated, compiled and linked with Scilab.
893
The Super Block is automatically replaced by a new block which implements the generated code. It is then possible to
894
run the modified diagram. The code for standalone use is also generated.
899
<refsection id="Helpmenu_Menu_entries">
900
<title>Help menu</title>
903
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_help.png"/>
910
<emphasis role="bold">Help:Xcos Help (F1)</emphasis>
913
<imagedata fileref="../../../gui/images/icons/16x16/apps/help-browser.png"/>
918
This menu opens the main help browser (if it is not open) on the <emphasis>Xcos</emphasis>
925
<emphasis role="bold">Help:Block Help</emphasis>
928
<imagedata fileref="../../../gui/images/icons/16x16/apps/help-browser.png"/>
933
To get help on a <emphasis>Xcos</emphasis> block, select the block and then click on this menu item.
939
<emphasis role="bold">Help:Xcos Demos</emphasis>
942
<imagedata fileref="../../../gui/images/icons/16x16/categories/applications-system.png"/>
947
The item allows to open some examples of <emphasis>Xcos</emphasis> diagram.
952
<emphasis role="bold">Help:About Xcos</emphasis>
955
<emphasis>About Xcos</emphasis> item display the current version of <emphasis>Xcos</emphasis> in a dialog.
960
<refsection role="see also" id="Seealso_Menu_entries">
961
<title>See Also</title>
964
<link linkend="scicos_debug">scicos_debug</link>
967
<link linkend="ode">ode</link>
970
<link linkend="dassl">dassl</link>
622
Then, open successively each block parameters dialog and set for the gain value the name of
623
required symbolic value, here <emphasis>A</emphasis>,<emphasis> B</emphasis> and
624
<emphasis>C</emphasis>.
632
<emphasis role="bold">Simulate:Compile</emphasis>
635
Select the <emphasis>Compile</emphasis> menu item to compile the block diagram. This
636
menu item need never be used since compilation is performed automatically, if necessary,
637
before the beginning of every simulation (<emphasis>Run</emphasis> menu item). Normally,
638
a new compilation is not needed if only system parameters and internal states are modified.
639
In some cases however these modifications are not correctly updated and a manual compilation may be
640
needed before a <emphasis>Restart</emphasis> or a <emphasis>Continue</emphasis>.
643
<emphasis role="bold">Please report to us if you encounter such a case.</emphasis>
644
<ulink url="http://bugzilla.scilab.org/">
645
Report bugs and wishes about <emphasis>Scilab</emphasis>
652
<emphasis role="bold">Simulate:Modelica initialize</emphasis>
655
This menu item opens a specific dialog to the <emphasis>Modelica</emphasis> compiler where you can see the
656
components of your model and also select the solver between the <emphasis>Kinsol</emphasis>,
657
<emphasis>Ida</emphasis>, <emphasis>Fsolve</emphasis>, <emphasis>Optim</emphasis>,
658
<emphasis>Nelder Mead</emphasis> and <emphasis>Hompack</emphasis> solvers.
664
<emphasis role="bold">Simulate:Start</emphasis>
667
<imagedata fileref="../../../gui/images/icons/16x16/actions/media-playback-start.png"/>
672
Select the <emphasis>Start</emphasis> menu item to start the simulation. If the system
673
has already been simulated, a dialog box appears where you can choose to
674
<emphasis>Continue</emphasis>, <emphasis>Restart</emphasis> or <emphasis>End</emphasis>
681
<emphasis role="bold">Simulation:Stop</emphasis>
684
<imagedata fileref="../../../xcos/images/icons/16x16/actions/process-stop.png"/>
689
You may interrupt the simulation by clicking on the <emphasis>Stop</emphasis> menu item
690
or on the toolbar button. You can change any of the block parameters and continue the
691
simulation with the new values.
696
<refsection id="Formatmenu_Menu_entries">
697
<title>Format menu</title>
700
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format.png"/>
706
<emphasis role="bold">Format:Rotate (Ctrl+R)</emphasis>
709
<imagedata fileref="../../../gui/images/icons/16x16/actions/transform-rotate.png"/>
714
Rotate allows to turn a block on the left with an of 90°. Rotation affects all the selected blocks.
720
<emphasis role="bold">Format:Flip (Ctrl+F)</emphasis>
723
<imagedata fileref="../../../xcos/images/icons/16x16/actions/transform-flip.png"/>
728
To reverse the positions of the activation inputs and outputs set at the top and the bottom of a block, select a block
729
and select the <emphasis>Flip</emphasis> menu item. This does not affect the order, nor the position of the input and
730
output event ports which are numbered from left to right. Flipping affects all the selected blocks.
736
<emphasis role="bold">Format:Mirror (Ctrl+M)</emphasis>
739
<imagedata fileref="../../../xcos/images/icons/16x16/actions/transform-mirror.png"/>
744
To reverse the positions of the (regular) inputs and outputs set on the left and the right of a block, select a
745
block and select the <emphasis>Mirror</emphasis> menu item. This does not affect the order, nor the position of
746
the input and output ports which are numbered from top to bottom. Mirroring affects all the selected blocks.
752
<emphasis role="bold">Format:Show/Hide shadow</emphasis>
754
<para>This menu allows to select 3D shape for selected blocks and associated parameters.</para>
759
<emphasis role="bold">Format:Align Blocks</emphasis>
764
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format_align.png"/>
769
When you select several blocks, it is possible to align them on horizontal axis (<emphasis>Top</emphasis>,
770
<emphasis>Bottom</emphasis> and <emphasis>Middle</emphasis>) or on vertical axis (<emphasis>Left</emphasis>,
771
<emphasis>Right</emphasis>, <emphasis>Center</emphasis>).
777
<emphasis role="bold">Format: Border Color</emphasis>
780
<imagedata fileref="../../../xcos/images/icons/16x16/actions/draw-brush.png"/>
785
This menu allows to change the border color of the selected blocks.
791
<emphasis role="bold">Format:Fill Color</emphasis>
794
<imagedata fileref="../../../xcos/images/icons/16x16/actions/color-fill.png"/>
798
<para>This menu allows to change the fill color of the selected blocks.</para>
803
<emphasis role="bold">Format:Link Style</emphasis>
808
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_format_link_style.png"/>
813
This menu allows to change the style of the link.
816
First select the link and select the appropriate menu item or use the shortcuts
817
(<emphasis>H</emphasis>), <emphasis>S</emphasis>, <emphasis>V</emphasis>).
818
The following list shows the results obtained.
823
Horizontal (<emphasis>H</emphasis>)
827
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_horizontal_en_US.png"/>
833
Straight (<emphasis>S</emphasis>)
837
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_straight_en_US.png"/>
843
Vertical (<emphasis>V</emphasis>)
847
<imagedata fileref="../images/xcos_menu_entries/en_US/xcos_link_vertical_en_US.png"/>
855
<emphasis role="bold">Format: Diagram background</emphasis>
857
<para>This menu allows to change the background color.</para>
862
<emphasis role="bold">Format:Grid</emphasis>
865
This menu allows to activate / deactivate the grid. With the grid, the block and link placement on the working area
866
is more easy and you obtain a more readable diagram.
871
<refsection id="Toolsmenu_Menu_entries">
872
<title>Tools menu</title>
875
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_tools.png"/>
881
<emphasis role="bold">Tools:Code generation</emphasis>
884
This menu allows to generate the simulation code associated with a discrete time Super Block. The code generation
885
is obtained simply by selecting the Super Block and then this menu.
888
If the Super Block satisfies the required conditions, a dialog box pops up to ask for a block name, a directory where
889
to put the generated files and for optional libraries requested by the linker.
890
Given this information the code is generated, compiled and linked with Scilab.
893
The Super Block is automatically replaced by a new block which implements the generated code. It is then possible to
894
run the modified diagram. The code for standalone use is also generated.
899
<refsection id="Helpmenu_Menu_entries">
900
<title>Help menu</title>
903
<imagedata align="center" fileref="../gui/xcos_menu_entries/en_US/xcos_menu_help.png"/>
910
<emphasis role="bold">Help:Xcos Help (F1)</emphasis>
913
<imagedata fileref="../../../gui/images/icons/16x16/apps/help-browser.png"/>
918
This menu opens the main help browser (if it is not open) on the <emphasis>Xcos</emphasis>
925
<emphasis role="bold">Help:Block Help</emphasis>
928
<imagedata fileref="../../../gui/images/icons/16x16/apps/help-browser.png"/>
933
To get help on a <emphasis>Xcos</emphasis> block, select the block and then click on this menu item.
939
<emphasis role="bold">Help:Xcos Demos</emphasis>
942
<imagedata fileref="../../../gui/images/icons/16x16/categories/applications-system.png"/>
947
The item allows to open some examples of <emphasis>Xcos</emphasis> diagram.
952
<emphasis role="bold">Help:About Xcos</emphasis>
955
<emphasis>About Xcos</emphasis> item display the current version of <emphasis>Xcos</emphasis> in a dialog.
960
<refsection role="see also" id="Seealso_Menu_entries">
961
<title>See Also</title>
964
<link linkend="scicos_debug">scicos_debug</link>
967
<link linkend="ode">ode</link>
970
<link linkend="dassl">dassl</link>