Troubleshoot Signal Data Logging from Nonvirtual Bus, Fixed-Point, and Multidimensional Signals
Some models use signals in nonvirtual buses, signals with fixed-point data types, and multidimensional signals that have a number of dimensions greater than two. It would be helpful to view signal data from these signals in the Simulation Data Inspector. The data for these signals is not visible when they are selected in Simulink Real-Time Explorer for streaming to the Simulation Data Inspector.
What This Issue Means
There are some guidelines to data logging signals in nonvirtual buses, signals with fixed-point data types, and multidimensional signals that have a number of dimensions greater than two:
When these signals are marked for logging with the Simulation Data Inspector, the signal data displays in the Simulation Data Inspector.
When these signals are connected to File Log blocks, the signal data displays in the Simulation Data Inspector.
When these signals are selected for dynamic streaming with an instrument object—either by selecting the signals in Simulink Real-Time Explorer or adding the signals by using the
Application
object API, the signal data does not display in the Simulation Data Inspector or in App Designer instrument panel applications.
Try This Workaround
There are workarounds to get signals in nonvirtual buses, signals with fixed-point data types, and mutidimensional signals (that have a number of dimensions greater than two) to display in the Simulation Data Inspector.
Signals in Nonvirtual Buses
To get signals in nonvirtual buses to display in the Simulation Data Inspector, mark the signals for data logging in the model or connect the signals to File Log blocks.
To instrument signals in nonvirtual buses to stream to an Instrument
object, use the BusElement
argument in
the addSignal
, connectLine
, or connectScalar
methods.
Signals with Fixed-Point Data Types
To get signals with fixed-point data types to display in the Simulation Data Inspector, mark the signals for data logging in the model or connect the signals to File Log blocks.
Multidimensional Signal
To get signals in multidimensional signals (that have a number of dimensions greater than two) to display in the Simulation Data Inspector, mark the signals for data logging in the model or connect the signals to File Log blocks.
See Also
Bus Creator | fixdt
| addSignal
| connectLine
| connectScalar