AnimXY

This block is used to animate (X,Y) data, drawing the second input as a function of the first.

    AnimXY

Library

Activate/SignalViewers

Description

The AnimXY block realizes the visualization of the evolution of the two regular input signals by drawing the second input as a function of the first at instants of events on the event input port.

When a point is drawn on screen it stays until the buffer length is reached. This scope is useful to make simple animations.

Parameters

AnimXY_0

NameLabelDescriptionData TypeValid Values

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

winSize

Window size

X,Y dimension of the plot window. Integer values. Default size is given as [-1,-1] and corresponds to [400,400].

Vector of size 2

winPos

Window position

X,Y position of the plot window. Integer values. Default [-1,-1] indicates the window is positioned automatically.

Vector of size 2

winNam

Window name

Name of the plot window. String. Default is empty.

String

bufferSize

Buffer size

Size of the buffer. Integer value. Default 10.

Scalar

winHidden

Hidden

The window is hidden initially by default.

Number

0
1

showAtEnd

Plot after simulation ends

Display the plots (lines) at the end of simulation instead of progressively along with simulation time.

Number

0
1

option

Window options

Define the scope window setting for a simulation. Default is 'Reuse'.
- 'Reuse': An initial simulation plots results in a scope window. Subsequent simulations plot results in the same window, but any existing data is erased.
- 'Overlay': An initial simulation plots results in a scope window. Subsequent simulations plot results in the same window. Existing plots are retained.
- 'New': Each simulation creates a new scope window.
- 'Recreate': Each simulation produces a new scope window, and the existing scope window is deleted.

String

'Reuse'
'Overlay'
'New'
'Recreate'

AnimXY_1

NameLabelDescriptionData TypeValid Values

plotTitle

Plot title

String

plotColor

Reverse color

Number

0
1

plotGrid

Plot grid

String

'No
Grid'
'Coarse'
'Fine'

xScale

X scale

String

'linear'
'log'
'db20'
'db10'

xInterval

X interval

Vector of size 2

yScale

Y scale

String

'linear'
'log'
'db20'
'db10'

yInterval

Y interval

Vector of size 2

curvesStyle

Curves style

Vector

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

input

2

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also