Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Xcos > Scilab/Xcos Data Structures > scicos_link

scicos_link

Define a link structure

Module

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"
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:52 CEST 2016