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.

How to run this model in Normal Mode

  1. Double-click the orange button to switch to Normal Mode if needed.

  2. Start the real-time execution using Simulation->Run.

  3. 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

  1. Double-click the orange button to switch to External Mode if needed.

  2. Start the real-time execution using Simulation->Run. The model will automatically build, connect to Simulink in External Mode and start.

  3. 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

See Also