Hello and welcome to the community
There is a plan for a better way, but this is not yet ready. See prior discussions
- How to compose discrete-time static and dynamic models for systems simulation similar to Simulink? - #5 by baggepinnen
- Slack
And the relevant issue label discrete-time