Prediction (discrete->continuous)
R2026bPrevent accuracy loss when connecting fixed-step network to variable-step network
Since R2022a
Libraries:
Simscape /
Network Couplers /
Fundamental Components
Description
Note
Prediction and smoothing algorithms are built into the Network Coupler blocks, and you can enable them by using the check boxes in the block dialogs. The prediction and smoothing blocks in the Fundamental Components sublibrary are provided for your reference only.
Connecting a variable-step network (Network 1) to a fixed-step network (Network 2) may result in accuracy loss in the Network 1 simulation when its sample times are between the sample times of Network 2. The Prediction (discrete->continuous) block helps prevent the accuracy loss. It predicts the output of Network 2 between its sample times by using the last computed derivative of the output of Network 2 and provides the inter-sample prediction to Network 1. The block implementation is a masked subsystem.

Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"SimscapeNetworkCouplersLib/Fundamental Components/Prediction (discrete->continuous)"
Example: add_block("SimscapeNetworkCouplersLib/Fundamental Components/Prediction (discrete->continuous)","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced in R2022a
