How to learn (or what training is available) timing functions in Simulink Sinscape Electrical?
Show older comments
What Onramp or reading can I do to understand how to make time dependant functions using Simulink? Now I'm making pieces of an electrical system that will be assembled together. How do I ensure the pieces use the desired sampletime and steps (assuming a fixed step system)? Are there functions that can be used to have a function operate in soft realtime? As an example sample this data for 2 second at a rate of 5 samples per second than stop.
Answers (1)
Sumukh
on 4 Dec 2024
0 votes
Kindly refer to the following resources:
- To understand the Simulink simulation workflow for each time step: https://www.mathworks.com/help/simulink/slref/simulink-concepts-simulation.html
- To sample a block’s output at 5 samples per second, the block’s “Sample Time” parameter can be specified as 0.2 seconds; to specify sample time for a block: https://www.mathworks.com/help/simulink/ug/how-to-specify-the-sample-time.html
- To understand how fixed-step solver utilizes the sample time in a system: https://www.mathworks.com/help/simulink/gui/fixedstepsizefundamentalsampletime.html https://www.mathworks.com/help/simulink/ug/managing-sample-times-in-systems.html
- To use "Simulink Pacing Options" to pace the simulation to a slower rate that matches with the wall clock rate for real-time simulations: https://www.mathworks.com/help/simulink/slref/simulationpacingoptions.html
More information about your electrical system would be helpful to recommend an Onramp that helps your workflow.
I hope this answers your query.
Categories
Find more on Switches and Breakers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!