Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> Xcos > Scilab/Xcos Data Structures > scicos_link

scicos_link

Define a link structure

link

Basic structure that define a xcos link.

Type : scilab tlist of type "Link" with fields : xx, yy, id, thick, ct, from and to.

xx

Vector of x coordinates of the link path. A link is defined as a polyline line.

Size : number of points of the link.

Type : column vector of real numbers.

yy

Vector of y coordinates of the link path. A link is defined as a polyline line.

Size : number of points of the link.

Type : column vector of real numbers.

id

Character string, the link identification.

Size : 1.

Type : string.

thick

Vector of size two defining line thickness.

Size : 2.

Type : row vector of integers.

ct

The first entry of this vector designates the color, and the second, the nature of the link. The second entry is 1 for a regular link, -1 for an activation link, and 2 for an implicit link.

Size : 2.

Type : row vector of integers.

from

Vector of size three including the block number, port number, and port type (0 for output, 1 for input) at the origin of the link. Note that the third entry may be 1 if the link is implicit; otherwise it is zero.

Size : 3.

Type : row vector of integers.

to

Vector of size three including the block number, port number, and port type (0 for output, 1 for input) at the destination of the link. Note that the third entry may be 0 if the link is implicit; otherwise it is one.

Size : 3.

Type : row vector of integers.

Examples

loadXcosLibs();              // load standard library

lnk = scicos_link();    // new specific block
tree_show(lnk);              // display it
lnk = scicos_link(),
lnk.id = "My_label"
Report an issue
<< scicos_graphics Scilab/Xcos Data Structures scicos_model >>

Copyright (c) 2022-2024 (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:55:06 CET 2020