Main Content

Simulink.sdi.getSignalInputProcessingMode

Get setting of Input Processing signal property

Description

example

inputMode = Simulink.sdi.getSignalInputProcessingMode(blkPath,port) returns the setting for the Input Processing property for the signal at the specified block and port.

The Input Processing setting affects the format of the logged data and how the Simulation Data Inspector and dashboard blocks display the signal. You can configure a signal for frame-based or sample-based input processing.

example

inputMode = Simulink.sdi.getSignalInputProcessingMode(h) returns the setting for the Input Processing property for the signal corresponding to the specified line handle, h.

Examples

collapse all

Check the setting for the Input Processing property of a signal using the block path and output port number for the block that produces the signal.

open_system('vdp')
MuInputProc = Simulink.sdi.getSignalInputProcessingMode('vdp/Mu');

Check the setting for the Input Processing property of a signal using the line handle for the signal.

open_system('vdp')
MuLineHandles = get_param('vdp/Mu','LineHandles');
MuOutputHandle = MuLineHandles.Outport;
MuInputProc = Simulink.sdi.getSignalInputProcessingMode(MuOutputHandle);

Input Arguments

collapse all

Block path for the block that produces the signal, specified as a string or character array.

Example: "vdp/Mu"

Block output port number for the port that produces the signal.

Example: 1

Line handle for the signal, specified as a handle to the signal line. You can get the line handle for a signal using the get_param function with the 'LineHandles' option. For example, to access the line handle for the output of the Mu block in the model vdp, use:

MuLineHandles = get_param('vdp/Mu','LineHandles');
MuOutputLineHandle = MuLineHandles.Outport;

Example: MuOutputLineHandle

Output Arguments

collapse all

Signal Input Processing setting.

  • sample — Sample-based input processing, where each element in a sample is treated as a channel.

  • frame — Frame-based input processing, where each column in a sample is treated as a channel.

Introduced in R2020a