CS 170 – INTRO TO SCIENTIFIC AND ENGINEERING PROGRAMMING.

Slides:



Advertisements
Similar presentations
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Microsoft Visual Basic: Reloaded Chapter Seven More on the Repetition Structure.
CS112 Scientific Computation Department of Computer Science Wellesley College Geese honk, but they don’t wave Sinusoidal waves.
DATA RETRIEVAL AND GUI CREATION DAVID COOPER SUMMER 2014.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Finite Element Method FEM Dr. Mohammed Al-Hazmi ANSYS Basics Lecture 4.
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
Graphics in MATLAB Week 15 – 5/5/09 Kate Musgrave
1 How to create GUI's in MatLAB Rigo Dicochea. 2 Introduction Graphical User Interface (GUI) MatLab provides Graphical User Interface Development Environment(GUIDE)
ArcView Documents Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
CS112 Scientific Computation Department of Computer Science Wellesley College Interactive Programs Graphical User Interfaces.
Digital Image Processing Lecture3: Introduction to MATLAB.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Advanced Tutorial For Version 10.0 and later.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
A short intermission about function handles and cell arrays A MATLAB function may be referenced by a handle. >> sphere(100)
Introduction to the Graphical User Interface (GUI) in MATLAB
Matlab GUIs GUIDE.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
Introduction to Matlab & Data Analysis
Lecture 21 May 2, Exam 2 Post-Mortem Average grade was 69.3 –Median was 72, which means there were some very low scores that pulled down the average.
Linux Audio Mangler Project Design Presentation Yu Chong Hector Urtubia Tony Zuliani.
GUI development with Matlab: GUI Front Panel Components 1 GUI front panel components In this section, we will look at -GUI front panel components -Programming.
Integrated Development Environment (IDE)
1 Object-Oriented Software Engineering CS GUI building with NetBeans Contents User Interaction JButtons JTextFields JLabels JForms in NetBeans Practical.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
Graphical User Interfaces I The central station is the bubble gum planet with 280 pounds of clay and three head phone lines that come out and orbit the.
function varargout = MovieJoiner(varargin) % MOVIEJOINER M-file for MovieJoiner.fig % MOVIEJOINER, by itself, creates a new MOVIEJOINER or raises the.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
1 Chapter Nine Using GUI Objects and the Visual Studio IDE.
Graphic User Interfaces (GUI) GUI provides a way to interact friendly with possibly complex programs. There are two types of GUI: - MDI: multiple document.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
The Hong Kong Polytechnic University Industrial Centre 1 MatLAB Lesson 9 : Introduction to GUI & Revision Edward Cheung Room W311g.
Define and describe operating systems which contain a Command Line Interface (CLI) Define and describe operating systems which contain a Graphical User.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
IT533 Lectures ASP.NET AJAX.
CS112 Scientific Computation Department of Computer Science Wellesley College Interactive Programs Graphical User Interfaces.
EGR 115 Introduction to Computing for Engineers
EGR 115 Introduction to Computing for Engineers Graphical User Interface Design in MATLAB - Part 2 Monday 24 Nov 2014 EGR 115 Introduction to Computing.
Introduction to Matlab Module #10 Page 1 Introduction to Matlab Module #10 – Creating Graphical User Interfaces Topics 1.Overview of GUI Development using.
CS112 Scientific Computation Department of Computer Science Wellesley College Blind to change More on GUIs.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Graphical User Interfaces I The central station is the bubble gum planet with 280 pounds of clay and three head phone lines that come out and orbit the.
Lecture (7) Introduction to GUI Eng. Osama Talaat 1.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
PATTERN RECOGNITION LAB 8 TA : Nouf Al-Harbi::
Graphical User Interfaces I
Graphical User Interface in MATLAB
Images v26Q3.
More on Graphical User Interfaces
MATLAB GUI with GUIDE 報告人:張捷勝.
Digital Image Processing
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

CS 170 – INTRO TO SCIENTIFIC AND ENGINEERING PROGRAMMING

Graphical User Interface (GUI) GUI-based programs put the user in the driver’s seat through interactions with components of a graphical display

GUI overview GUI’s are a collection of objects. Every object has a unique handle. Every object has properties. The user can alter these properties at design time.

MATLAB’s Graphical User Interface Development Environment (GUIDE)

Saving the GUI layout When our energyGUI layout is saved the first time, MATLAB generates two files: energyGUI.fig: Layout Editor window with the developing GUI, which can be modified later by entering >> guide energyGUI.fig energyGUI.m: file that contains code to create the GUI display

Property Inspector

GUI Handles Every object in the GUI will have an unique handle (name). The handle allows developers to access the objects properties.

How do we obtain handles? fig = openfig('myFirstGUI.fig'); %loads the figure handles = guihandles(fig); % Update handles structure guidata(hObject, handles);

Inputs to GUI functions hObject is a number, the graphics handle, that uniquely identifies the GUI component and its associated properties eventdata is not used in the current version of MATLAB handles is a structure that contains information that needs to be shared between functions in this file. Initially it contains a field for each GUI component created, using Tag property as name: handles.axes1 handles.sourceMenu handles.sourceToggle handles.titleLabel handles.titleBox handles.widthCheckbox handles.plotButton handles.closeButton handles.figure1

Once we have the ‘Handle’ how do we change properties ? %Set data to current value handles.peaks = peaks(35); handles.current_data = handles.peaks; surf(handles.current_data); % Choose default command line output for myFirstGUI handles.output = hObject;

Callback functions For each component, the header of a Callback function is created. These functions are invoked automatically when the user interacts with the corresponding component

QUESTIONS??

Resources Lecture slides CS112, Ellen Hildreth,