Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Português


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 0 or 1 if the link is implicit.

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 or 1 if the link is implicit.

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:
Thu Oct 24 11:16:57 CEST 2024