graphic display interface for the ais based intelligent ......s imulink module ma tla b s c ript d a...
TRANSCRIPT
-
8/4/2010
1
NC STATE UNIVERSITY
Graphic Display Interface for the AIS based Intelligent Transportation System
Student: Xiaodong Su
Mentor: Wente Zeng
Adviser: Dr. Mo-Yuen Chow
NC STATE UNIVERSITY
Background of the Project1
Project Description2
Learning & Work3
Main Content
GUI Designing4
-
8/4/2010
2
NC STATE UNIVERSITY Background
AIS Gene Library Based Real-Time Resource Allocation on Time-Sensitive
Large-Scale Multi-Rate Systems
Graphic Display Interface
The simulink module that has been developed is a software simulation
platform for the project.
Develop a GUI for the simulink module to analyze and display the result of the
module graphically.
NC STATE UNIVERSITY Project Description
Control Panel
Status Window
Graphic Display
The Graphic Display
Interface
-
8/4/2010
3
NC STATE UNIVERSITY
Basic structure of the Graphic Display Interface for the AIS Based Intelligent Transportation System
Graphic Display
Region
Control
Panel
Status
Window
Simulink Module
Matlab ScriptData Processing Simulink Result
Control Command
Graphic Display Interface
Project Description
NC STATE UNIVERSITY
First week
Learning & Work
• Get familiar with the Matlab and Simulink
• Learn the method to build a simple GUI
• Finish the Control Panel of the Graphic Display Interface
• Save the initial parameters to workspace
-
8/4/2010
4
NC STATE UNIVERSITY
Why Matlab GUI?
• The simulink module
• The large amount of computation and visualization tools
• The open programming environment
Learning & Work
NC STATE UNIVERSITY
Second week
Learning & Work
• Extract the simulation result to the workspace for GUI to display
• Develop the Status Window of the Graphic Display Interface
• Begin to work on the Graphic Display Region
-
8/4/2010
5
NC STATE UNIVERSITY
Third week
Learning & Work
• Improve the outlook of the GUI
• Display the cars with moving pictures
• Display the velocity of the car with a speed bar
• Display the head angle of the car with a dial
• Add a pop up box for simulation
NC STATE UNIVERSITY GUI Designing
-
8/4/2010
6
NC STATE UNIVERSITY GUI Designing
Graphic Display Region :
Transportation system animation
Velocity & Head Angle
Status Window :
Message history
Position & Status
Control Panel :
Parameter setting
Simulink control
NC STATE UNIVERSITY
Control Panel
• Set initialization parameters
• Control the GUI
GUI Designing
-
8/4/2010
7
NC STATE UNIVERSITY
• Set initialization parameters
GUI Designing
Number
of cars
Drivers’
type
Simulation
length
Velocity
of cars
It is the
initial speed
of each car
1.Normal
2.drunk1
3.drunk2
1.Both blue
2.Both red
3.Blue & red
4.Red &blue
Color
of cars
NC STATE UNIVERSITY GUI Designing
Run the
simulink
module
Run the
display
region
Close
the
GUI
• Control the GUI
-
8/4/2010
8
NC STATE UNIVERSITY
• Pop up box
GUI Designing
NC STATE UNIVERSITY
• Command Status
• Cars Position(X,Y)
• Cars Status ( stop, drive, wait, follow)
Status Window
GUI Designing
-
8/4/2010
9
NC STATE UNIVERSITY GUI Designing
Graphic Display Region
• Virtual Scene
• Parameter Display Board
NC STATE UNIVERSITY GUI Designing
• Virtual Scene
Make lanes
occupy a larger
place in the
background
Dim the color
of the
environment
Add a stop
sign at the
corner
-
8/4/2010
10
NC STATE UNIVERSITY GUI Designing
• Parameter Display Board
• The velocity of the car in real time
• The head angle of each car
• Symbols to help analyze
NC STATE UNIVERSITY GUI Designing
• Head angle of Cars
Needle = direction of the car
-
8/4/2010
11
NC STATE UNIVERSITY GUI Designing
• Velocity of Cars
Stop Drive
NC STATE UNIVERSITY
• Meanings of Symbols
Normal
Drunk
Car1
Car2
Stop
Drive
-
8/4/2010
12
NC STATE UNIVERSITY
NC STATE UNIVERSITY GUI Display
Show how GUI works.