Virtual Hardware and Labs for Controls

バージョン (31.6 MB) 作成者: Chad Allie
Virtual labs and mechanisms for studying controls.

ダウンロード: 2.2K

更新 2023/2/8

GitHub から

GitHub でライセンスを表示

Virtual Controls Laboratory

View Virtual Controls Laboratory on File Exchange or Open in MATLAB Online

Curriculum Module
Created with R2021a. Compatible with R2021a and later releases.


The Virtual Controls Laboratory contains virtual models of several mechanisms commonly used in controls courses. These virtual mechanisms offer opportunities to visually analyze dynamic systems, identify system parameters, design and test controllers, among others. Instructions for four introductory labs are included. These labs are designed to give an intuitive introduction to basic controls concepts, such as feedback control. Students also have the opportunity to implement and test simple controllers in Simulink®.

Get started with the Virtual Controls Laboratory by downloading and unzipping the repository. Then, double-click the project .prj file inside MATLAB®. From there, you can follow the landing page instructions to get started with the labs and virtual mechanisms.


Virtual Mechanisms

Cruise control
CruiseControl.slx Vehicle animation
DC motor
DCMotorControl.slx DC motor animation
Inverted pendulum
InvertedPendulum.slx Inverted pendulum animation
Rotary pendulum
RotaryPendulum.slx Rotary pendulum animation
Ball and beam
BallAndBeam.slx Ball and beam animation
Ball and plate
BallAndPlate.slx Ball and plate animation


Lab 1: Cruise control (Lab1_CruiseControl.mlx)
A virtual lab that explores the basics of open-loop and feedback control.

Learning Goals:

  • Compare and contrast open-loop and feedback control.
  • Implement a simple open-loop controller in Simulink.
  • Analyze the performance of an open-loop controller.
  • Implement a proportional controller in Simulink.
  • Analyze the performance of a proportional controller.

Lab 2: Vehicle Transfer Function Model (Lab2_VehicleModel.mlx)
In this lab, students derive a transfer function model of a virtual vehicle.

Learning Goals:

  • Derive the transfer function of a first order system.
  • Compare the transfer function and virtual vehicle responses.
  • Identify the model parameters for the virtual vehicle.

Lab 3: Position Control (Lab3_PositionControl.mlx)
In this lab, students implement a PID controller to control the position of a virtual DC motor.

Learning Goals:

  • Implement a PID controller.
  • Identify rise time, settling time, overshoot, and peak time.
  • Explain how changes to PID parameters affect the time-domain response.

Lab 4: Position Control Analysis (Lab4_PositionAnalysis.mlx)
In this lab, students construct and analyze the closed-loop transfer function of a feedback controller.

Learning Goals:

  • Construct a closed-loop transfer function.
  • Plot the step response of a closed-loop transfer function.
  • Identify the poles of a closed-loop transfer function.
  • Assess the stability of a closed-loop transfer function.

Suggested Prework

MATLAB Onramp – a free two-hour introductory tutorial that teaches the essentials of MATLAB.
Simulink Onramp – a free three-hour introductory tutorial that teaches the essentials of Simulink.


MATLAB, Simulink, Control System Toolbox™, Simscape™, Simscape Multibody™, Simscape Driveline™


The license for this module is available in the file in this GitHub repository.

Educator Resources

The lab solutions are available upon instructor request. If you would like to request solutions or have a question, contact the MathWorks online teaching team. If you are having technical issues using MATLAB, please contact our Technical Support Team.

Copyright 2023-2024 The MathWorks, Inc.


Chad Allie (2023). Virtual Hardware and Labs for Controls (, GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2021a
R2021a 以降のリリースと互換性あり
Windows macOS Linux
 Distance Learning コミュニティのその他のファイル

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート

See release notes for this release on GitHub:

See release notes for this release on GitHub:


See release notes for this release on GitHub:


この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。