Display, create, edit, and switch interchangeable scenarios
Simulink / Sources
The Signal Editor block displays, creates, and edits interchangeable scenarios. You can also use the block to switch scenarios in and out of models.
The Signal Editor block supports MAT-files that contain one or more
scalar Simulink.SimulationData.Dataset
objects.
You can port Signal Builder block configurations to the Signal
Editor block using the signalBuilderToSignalEditor
function. For more information, see Replace Signal Builder Block with Signal Editor Block.
To programmatically get the total number of scenarios and signals in the Signal
Editor block, use the get_param
NumberOfScenarios
and NumberOfSignals
properties.
These properties contain the values as character vectors. To convert these values to
doubles, use the str2double
function.
To programmatically enable the Signal Editor block to label output
signal lines, set the set_param
PreserveSignalName
to 'on'
(default). For
example:
set_param(gcb,'PreserveSignalName','on')
The Signal Editor block does not support:
Function-calls
Array of buses
Buses while using rapid accelerator mode
Ground signals
The Signal Editor block supports dynamic strings. It does not support strings with maximum length. In addition, strings in the Signal Editor block cannot output:
Non-scalar MATLAB strings.
String data that contains missing values.
String data that contains non-ASCII characters.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Signal Builder | signalBuilderToSignalEditor
| signalEditor
| str2double