Professional Documents
Culture Documents
and Simulink
By Coorous Mohtadi
Academic Technical Evangelist
2
MATLAB Capabilities for Technical Computing
Explore
Communicate Share
3 3
Instrument Control Toolbox
Control and communicate with scientific instruments
4 4
Instrument Control Toolbox:
Supported Instrument Manufacturers, Standards, and Protocols
Agilent
Anritsu
LeCroy
Rohde & Schwarz
Tektronix
Others
Standards such as IVI, VXIplug&play, LXI
Protocols such as GPIB, VISA, TCP/IP, UDP
6 6
Instrument Control Toolbox:
Communication Protocols
GPIB Boards
Agilent Technologies Capital Equipment Corporation (CEC)
CONTEC IOTech
Keithley Measurement Computing
National Instruments ICS Electronics
Network Protocols
TCP/IP and UDP
7 7
Instrument Control Toolbox:
Instrument Drivers
8 8
Instrument Control Toolbox:
Instrument Drivers
MATLAB Instrument
Vendor Instrument
Driver
Driver
(IVI or VXIplug&play)
10 10
Using Instrument Control Toolbox
with Simulink
11 11
Data Acquisition Toolbox
Acquire and output data from data acquisition boards
12 12
Live Demonstration
13 13
Data Acquisition Toolbox:
Supported Hardware
14 14
Benefits of using MATLAB with
Data Acquisition Toolbox
15 15
Using Data Acquisition Toolbox
with Simulink
16 16
MATLAB and Simulink Acquisition Toolboxes
MATLAB
Interfaces for communicating
with everything
17 17
Key Points
18
Simulink Support for Target Hardware
19
Supported Hardware
Arduino Uno and Mega 2560
Highly popular, very low-cost electronics
prototyping platform
Cost: £30 (Uno), £65 (Mega)
BeagleBoard
Low-cost single-board embedded computer
designed for audio, video, and digital signal
processing
Cost: £150
21
Project-Based Learning with Simulink
HW Description
Camera connected
Via USB to Simulink
DC Motor
Arduino Board
Controlling the
Motor Position Passive Carrier Board
to connect to the input / output
22
Project-Based Learning with Simulink
Video Image Tracking Application
Locate Object /
Acquire Image Position
Correction
Position
Simulink Model on Laptop Demand sent via
USB to Arduino
Receive New
Position
Demand
System Design
Image Processing
Algorithm
Physical Model
Control Design
State Diagram
24
Hardware for Project-Based Learning
Visit www.mathworks.com/academia/hardware-resources/ 25
Key Points
26
From Simulation to Real-Time Testing
Models designed in Simulink and Stateflow
You want to run, test, and prove your Simulink design with your hardware
under test at its normal operating frequency, speed, or timing.
27
Real-Time Testing using xPC Target
xPC Target™ enables you to execute Simulink® and
Stateflow® models on a target computer …
… for rapid control prototyping, hardware-in-the-loop (HIL)
simulation, and other real-time testing applications.
28
xPC Target
Easy real-time execution for Simulink and Stateflow
models makes it simple to test models with real
hardware in the real-world.
blocks are configurable within the Simulink model
early verification of your designs in the lab
30
xPC Target Turnkey
Portfolio of real-time target machines and IO modules
Assembled to meet your computational, IO connectivity and
environment requirements
Various form factors for desktop, lab, field or in-vehicle use
31
FPGA Programming for xPC Target
Programming FPGA boards for xPC Target Turnkey real-time target machines using Simulink HDL
Coder Workflow Advisor.
32
Key Points
33