Giter VIP home page Giter VIP logo

virtual-controls-laboratory's Introduction

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.

Description

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

These modules connect the theory and application of the specific subject, which will support various student learning objectives. These lessons can be used as part of a lecture to supplement learning, as activities in an instructional setting, or as interactive assignments to be completed outside class.

Get started with the Virtual Controls Laboratory interactive examples

Option 1: Download to Desktop Download and unzip the repository. Then, double-click the VirtualControlsLabortory.prj file inside MATLAB®. If you open a script or model and MATLAB notifies you that a certain toolbox is not installed, click the arrow on the Add-Ons button in the ENVIRONMENT section on the HOME tab in the MATLAB Toolstrip. Then, navigate to Manage Add-ons to install the necessary toolboxes.

Option 2: Open in MATLAB Online Log in to your MathWorks account to access your license. If you are associated with a university, use your university email to access a license.

  • From there, you can follow the landing page instructions to get started with the examples.
  • The instructions inside the live scripts will guide you through the exercises and activities.
  • Get started with each live script by running it one section at a time.
  • To stop running the script or a section midway (for example, if a loop is running longer than intended), click the Stop button in the RUN section of the Live Editor tab in the MATLAB Toolstrip.

Prerequisite Domain Knowledge

These scripts assume some familiarity with open/closed loop feedback control, deriving transfer functions, PID controllers, and stability control (poles and zeros). It is possible to work through this module without extensive experience in MATLAB and Simulink. However, some background in these products will be helpful. Please see the suggested pre-work section below for self-paced tutorials that can support quicker onboarding.

Details

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

Labs

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

The suggested prework detailed below are complementary interactive online courses available for all to use with a valid MathWorks account.

  • MATLAB Onramp – a free two-hour introductory tutorial that teaches the basics of programming in MATLAB.
  • Simulink Onramp – a free two-hour introductory tutorial that teaches the basics of simulating mathematical models in Simulink.
  • Control Design Onramp with Simulink - a free one-hour introductory tutorial that teaches the basics of control design in Simulink.

Products

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

License

The license for this module is available in the LICENSE.md 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.

virtual-controls-laboratory's People

Contributors

bhong-mw avatar callieedu avatar wgreenmw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.