Get setting of Input Processing signal property
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.
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);
blkPath— Block path for block that produces signal
Block path for the block that produces the signal, specified as a string or character array.
port— Number of block output port connected to signal
Block output port number for the port that produces the signal.
h— Signal line handle
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
MuLineHandles = get_param('vdp/Mu','LineHandles'); MuOutputLineHandle = MuLineHandles.Outport;
inputMode— Input processing setting of the signal
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.