DSP Blockset | ![]() ![]() |
Using Sample Time Color Coding to Inspect Sample Rates
Turn on the sample time color coding option in Simulink by selecting Sample time colors from the Format menu. For sample-based signals, this assigns each sample rate a different color. For frame-based signals, this assigns each frame rate a different color.
Sample Time Color Coding Example: Sample-Based. Here is the sample-based model from Probe Block Example: Sample-Based with the Probe blocks removed and sample time color coding turned on.
Since every sample-based signal in this model has a different sample rate, each signal is assigned a different color.
Sample Time Color Coding Example: Frame-Based. Here's the frame-based model from Probe Block Example: Frame-Based with the Probe blocks removed and sample time color coding turned on.
Because the Frame-based mode parameter in the Upsample blocks is set to Maintain input frame size rather than Maintain input frame rate, each Upsample block changes the frame rate. Therefore, each frame-based signal in the model is assigned a different color.
If the Upsample blocks are instead set to Maintain input frame rate, then every signal in the model shares the same frame rate, and as a result, every signal is coded with the same color.
For more information about sample time color coding, see "Sample Time Colors" in the Simulink documentation.
![]() | Using the Probe Block to Inspect Rates | Converting Sample Rates and Frame Rates | ![]() |