signalBuilderToSignalEditor
Import signal data and properties from Signal Builder block to Signal Editor block
Syntax
Description
imports signal data and properties from Signal Builder block to the
Signal Editor block. This function adds a Signal
Editor block to the current model using the signal data and properties
from the Signal Builder block. To contain the signal data and
properties, the function creates a new MAT-file.signal_editor
= signalBuilderToSignalEditor(signal_builder
,Name,Value
)
During the port, the signalBuilderToSignalEditor
function:
Unicode® group names are prefixed with
Test_Case_
.Group names are converted to valid MATLAB® variable names with leading and trailing white spaces removed.
Group names are converted with trailing underscores removed.
Remaining numbers maintained in the scenario name.
Orders signal groups alphabetically.
Creates unique group names from existing names following MATLAB conventions.
The signalBuilderToSignalEditor
function does not
support
Models that contain test case parameters. You can successfully port data from the Signal Builder block, but you cannot initialize parameters with the Signal Editor block in test harnesses generated by Simulink® Design Verifier™.
Models that contain Signal Builder signal generators created from the Create and Connect Generator context menu.
[
outputs vectors containing the signal groups and group names.signal_editor
,sorted_group_index
,sorted_group_names
] = signalBuilderToSignalEditor(signal_builder
,Name,Value
)
Examples
Input Arguments
Output Arguments
Limitations
The Signal Editor block can output a bus for each signal, but cannot output all signals in a single bus. If the Signal Builder block from which you are importing signal data has a bus as output, consider:
Creating or using an existing
Simulink.Bus
bus object to contain the Signal Builder bus signals. TheSimulink.Bus
object contains theSimulink.BusElement
that define each element in theSimulink.Bus
object.In the Signal Editor user interface, creating a bus element and dragging and dropping the signals imported from the Signal Builder block into that bus element.
After running the
signalBuilderToSignalEditor
function, select the Output a bus signal check box in the Signal Editor block and enter the Signal Builder bus object name in Select bus object text box.
Version History
Introduced in R2018a