signalbuilder
(Not recommended) Create and access Signal Builder blocks
The signalbuilder
function is not recommended. Use Signal Editor
instead. For more information on why you should migrate your models, see Migrate from Signal Builder Block to Signal Editor Block.
Syntax
Description
[
returns the signal names,
time
,data
,signames
,groupnames
] =
signalbuilder(block
)signames
, and group names, groupnames
, and
time and data.
creates a new Signal Builder block and sets the block position to
block
= signalbuilder(path
,'create'
,time
,data
,signames
,groupnames
,vis
,pos
)pos
.
If you create signals that are smaller than the display range or do not start from 0, the Signal Builder block extrapolates the undefined signal data. It does so by holding the final value.
blk = signalbuilder(
appends new groups (blk
,'appendgroup'
,time
,data
,signames
,groupnames
)groupnames
) containing
signames
to the Signal Builder block,
block
. The time
and data
arguments must have the same number of signals as the existing block.
signalbuilder(
appends one dataset.block
,'appendgroup'
,ds
)
signalbuilder(
appends N datasets.block
,'appendgroup'
,[ds1 ...dsN
])
signalbuilder(
appends new signals to all signal groups in the Signal Builder block,
block
,'appendsignal'
,time
,data
,signames
)block
. You can append either the same signals to all groups, or
append different signals to different groups. Regardless of which signals you append,
append the same number of signals to all the groups. Append signals to all the groups in
the block; you cannot append signals to a subset of the groups. Correspondingly, provide
time
and data
arguments for either one group
(append the same information to all groups) or different time
and
data
arguments for different groups.
signalbuilder(
makes block
,'showsignal'
,signal
,group
)signals
that are hidden from the Signal Builder
block visible. By default, signals in the current active group are visible when created.
signalbuilder(
makes signals, block
,'hidesignal'
,signal
, group
)signal
, hidden from the Signal Builder
block. By default, all signals are visible when created.
signalbuilder(
sets N datasets for N requested groups.block
,'set'
,group
,[ds1 ...dsN
])
gets the index of the active group.index
= signalbuilder(block
,'activegroup'
)
[
gets the label value of the active group.index
, activeGroupLabel
] = signalbuilder(block
,'activegroup'
)
signalbuilder(
sets the active group to indexed active group.block
,'activegroup'
,index
)
signalbuilder(
controls the display of the current group name on the mask of the Signal
Builder block. block
,'annotategroup'
)'annotategroup'
takes one of these
values:
'on' — Shows the current group name
'off' — Hides the current group name