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 by using the dashboard knobs and observe the response on the gauges.

Run Model in Normal Mode

  1. To switch to normal mode if needed, double-click the orange button in the model.

  2. To start the real-time execution, on the Simulation tab, click Run.

  3. Change the input flow and output valve values by using the dashboard controls and observe the results on the dashboard gauges.

Run Model in External Mode

  1. To switch to external mode if needed, double-click the orange button in the model.

  2. To start the real-time execution, on the Desktop Real-Time tab, click Start. The model builds, connects to Simulink in external mode, and starts.

  3. Change the input flow and output valve values by using 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 the Model

clear
close all
bdclose all

See Also