Water Tank Model with Dashboard
This example shows a real-time model of a water tank controlled by dashboard controls. You can change the inputs to the plant using the knobs and observe the response on the gauges.
Contents
How to run this model in Normal Mode
- Double-click the orange button to switch to Normal Mode if needed.
- Start the real-time execution using Simulation->Run.
- Change the input flow and output valve values by the dashboard controls and observe the results on the dashboard gauges.
How to run this model in External Mode
- Double-click the orange button to switch to External Mode if needed.
- Start the real-time execution using Simulation->Run. The model will automatically build, connect to Simulink in External Mode and start.
- Change the input flow and output valve values by the dashboard controls and observe the results on the dashboard gauges.
Open the model
open_system(fullfile(matlabroot,'toolbox','sldrt','sldrtexamples','sldrtex_dashboard'));

Clean up
clear close all bdclose all