Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.

See the recommended documentation of this function

# 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"

## Comments

Add a comment:Please login to comment this page.