Advanced LabViEW http://goo.gl/YdQ5mm.

Slides:



Advertisements
Similar presentations
Model-based PID tuning methods Two degree of freedom controllers
Advertisements

Chapter 9 PID Tuning Methods.
Controllers Daniel Mosse cs1657 cs1567.
Optimization-based PI/PID control for SOPDT process
CHE 185 – PROCESS CONTROL AND DYNAMICS
TP4: S TATE M ACHINE D ESIGN P ATTERN  Definition  Infrastructure  Transition Code  Conclusion.
Controller Design, Tuning. Must be stable. Provide good disturbance rejection---minimizing the effects of disturbance. Have good set-point tracking---Rapid,
Add and Use a Sensor & Autonomous For FIRST Robotics
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
A UTOMATING PID C ONTROLS IN M ATHCAD Neil Kuyvenhoven Engr 315 December 11,2002.
ChE / MET Mar Mar 07 2 Apr Mar 09.
LECTURE#10 PID CONTROLLER
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
Alexander Voice, Boron Delta Andrew Wilkins, Boron Delta
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
1-1 Embedded Software Development Tools and Processes Hardware & Software Hardware – Host development system Software – Compilers, simulators etc. Target.
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
Process Control Instrumentation II
OllyDbg Debuger.
Lecture 7: PID Tuning.
بسم الله الرحمن الرحيم PID Controllers
Ayman Khattab Mohamed Saleh Mostafa El-Khouly Tarek El-Rifai
Proportional/Integral/Derivative Control
1 Software Construction Software Construction Chapter 1.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Controller Design (to determine controller settings for P, PI or PID controllers) Based on Transient Response Criteria Chapter 12.
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
PID Controller Design and
Pioneers in Engineering, UC Berkeley Pioneers in Engineering Week 8: Sensors and Feedback.
CS320n –Visual Programming More LabVIEW Foundations.
بسم الله الرحمن الرحيم Advanced Control Lecture three Mohammad Ali Fanaei Dept. of Chemical Engineering Ferdowsi University of Mashhad Reference: C. C.
MESB374 System Modeling and Analysis PID Controller Design
PID and Fuzzy Logic Control Systems John Limroth, Software Engineer Yiannis Pavlou, Applications Engineer Tues, 10:15a and 11:30a Wed.
PID CONTROLLERS By Harshal Inamdar.
Automatic Synthesis Using Genetic Programming of an Improved General-Purpose Controller for Industrially Representative Plants Martin A. Keane Econometrics,
Advanced LabVIEW Topics Dustin Cruise. Who is this guy? Graduate Student in Mechanical Engineering at Purdue University Specialty Areas: Combustion Control.
Data Logging 4 PID Tuning
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Lecture 9: PID Controller.
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
Wednesday NI Vision Sessions
SKEE 3143 Control Systems Design Chapter 2 – PID Controllers Design
Process Control. Feedback control y sp = set point (target value) y = measured value The process information (y) is fed back to the controller The objective.
Salman Bin Abdulaziz University
Global Variables in LabVIEW Tutorial by Harris Pharr.
PLTW CALIFORNIA STATE CONFERENCE CENTENNIAL HIGH SCHOOL
Control engineering and signal processing
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 3 Editing and Debugging VIs
Tuning of PID controllers
Lec 14. PID Controller Design
Control Loops Nick Schatz FRC 3184.
Basic Design of PID Controller
Electronic Control Systems Week 7 – PID Control
Intro to Architecture & Organization
USING SIMPLE PID CONTROLLERS TO PREVENT AND MITIGATE FAULTS IN SCIENTIFIC WORKFLOWS Rafael Ferreira da Silva1, Rosa Filgueira2, Ewa Deelman1, Erola Pairo-Castineira3,
Android Topics UI Thread and Limited processing resources
بسم الله الرحمن الرحيم PID Controllers
Debugging Visual Basic Programs
Dynamical Systems Basics
frclabviewtutorials.com/workshop
Advanced LabVIEW
Closed-Loop Frequency Response and Sensitivity Functions
Chapter 2: Performance CS 447 Jason Bakos Fall 2001 CS 447.
EET 2259 Unit 8 Other Structures; Local Variables
A Tutorial Overview Proportional Integral Derivative.
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

Advanced LabViEW http://goo.gl/YdQ5mm

Customizing the Dashboard

Customizing the Dashboard Open Project demo

Customizing the Dashboard Open Project Sending data from robot

Customizing the Dashboard Open Project Sending data from robot Smart Dashboard VI’s Named (case sensitive) values

Advanced Debugging Tools VI Profiler Tools>>Profile>>Performance and Memory Stop all running VIs. If you do not stop these VIs, the results that the Profile Performance and Memory window displays can be misleading or inconsistent. Select Tools»Profile»Performance and Memory to display the Profile Performance and Memory window. If you want to collect memory usage information, place a checkmark in the Profile memory usage checkbox. You cannot place a checkmark in this checkbox after starting the profiling session. Collecting information about VI memory use adds a significant amount of overhead to VI execution, which affects the accuracy of any timing statistics you gather during the profiling session. Therefore, you should perform memory profiling separate from time profiling. Click the Start button in the Profile Performance and Memory window to begin the collection of performance data. Run the VI you want to profile.

Advanced Debugging Tools VI Profiler Tools>>Profile>>Performance and Memory Stop all running VIs. If you do not stop these VIs, the results that the Profile Performance and Memory window displays can be misleading or inconsistent. Select Tools»Profile»Performance and Memory to display the Profile Performance and Memory window. If you want to collect memory usage information, place a checkmark in the Profile memory usage checkbox. You cannot place a checkmark in this checkbox after starting the profiling session. Collecting information about VI memory use adds a significant amount of overhead to VI execution, which affects the accuracy of any timing statistics you gather during the profiling session. Therefore, you should perform memory profiling separate from time profiling. Click the Start button in the Profile Performance and Memory window to begin the collection of performance data. Run the VI you want to profile.

Functional Global Variable

Functional Global Variable Quick Intro https://frclabviewtutorials.com/fgv/ demo

Functional Global Variable Code FGV Functional Global Variable Code

Implementing An FGV

VI Properties Quick Intro SR Flip Flop Demo https://frclabviewtutorials.com/fgv/ SR Flip Flop Demo Demo SR

VI Properties Quick Intro SR Flip Flop Demo https://frclabviewtutorials.com/fgv/ SR Flip Flop Demo Edge Detector https://frclabviewtutorials.com/memory-library/ Demo edge detetector

FRC Vision Programming Demo

PID Proportional https://docs.google.com/viewer?a=v&pid=sites&srcid=aGFyZGluZy5lZHV8dGVhbS0zOTM3fGd4OjUyNzdiNzRkNjkxNjA3MGM https://www.youtube.com/watch?v=JEpWlTl95Tw https://www.youtube.com/watch?v=UR0hOmjaHp0 http://robotics.stackexchange.com/questions/167/what-are-good-strategies-for-tuning-pid-loops

PID Proportional Constant multiplied by error (offset) The larger this is, the faster the robot approaches the setpoint (smaller rise time)

PID Proportional Integral Constant multiplied by error (offset) The larger this is, the faster the robot approaches the setpoint (smaller rise time) Integral Constant multiplied by integral of all previous error values The larger this is, the less overshoot and settling time (less bounce)

PID Proportional Integral Differential Constant multiplied by error (offset) The larger this is, the faster the robot approaches the setpoint (smaller rise time) Integral Constant multiplied by integral of all previous error values The larger this is, the less overshoot and settling time (less bounce) Differential Used to eliminate steady state error (reducing offset after movement)

PID Proportional Integral Differential Constant multiplied by error (offset) The larger this is, the faster the robot approaches the setpoint (smaller rise time) Integral Constant multiplied by integral of all previous error values The larger this is, the less overshoot and settling time (less bounce) Differential Used to eliminate steady state error (reducing offset after movement)

PID Tuning

PID Tuning Several methods available Ziegler–Nichols* Tyreus Luyben Cohen–Coon Åström-Hägglund Manual Tuning* http://faculty.mercer.edu/jenkins_he/documents/TuningforPIDControllers.pdf#page=6 https://www.youtube.com/watch?v=JEpWlTl95Tw https://www.youtube.com/watch?v=UR0hOmjaHp0 http://robotics.stackexchange.com/questions/167/what-are-good-strategies-for-tuning-pid-loops Ziegler-Nichols: http://robotsforroboticists.com/pid-control/ Manual (page 16): https://docs.google.com/viewer?a=v&pid=sites&srcid=aGFyZGluZy5lZHV8dGVhbS0zOTM3fGd4OjUyNzdiNzRkNjkxNjA3MGM http://www.ni.com/white-paper/3782/en/

PID Tuning Manuel Ziegler-Nichols Raise CP Until robot oscillates about setpoint Raise CD Until Robot stops bouncing Raise CI (and change the setpoint) until robot turns and hits the target point Ziegler-Nichols Raise CP Until robot oscillates (Value of CP becomes Ku) Measure the period of this oscillation (Time to complete 1 cycle becomes TU)

PID Tuning Manuel Ziegler-Nichols Raise CP Until robot oscillates about setpoint Raise CD Until Robot stops bouncing Raise CI (and change the setpoint) until robot turns and hits the target point Ziegler-Nichols Raise CP Until robot oscillates (Value of CP becomes Ku) Measure the period of this oscillation (Time to complete 1 cycle becomes TU)

PID Tuning Manuel Ziegler-Nichols Raise CP Until robot oscillates about setpoint Raise CD Until Robot stops bouncing Raise CI (and change the setpoint) until robot turns and hits the target point Ziegler-Nichols Raise CP Until robot oscillates (Value of CP becomes Ku) Measure the period of this oscillation (Time to complete 1 cycle becomes TU)

PID Demo

Architectures State Machine

Architectures State Machine

Architectures State Machine

Architectures State Machine Producer-Consumer Parallel loops First creating data or instructions Other handling

Architectures State Machine Producer-Consumer Parallel loops Use either queue or fgv

Producer Consumer Demo Queue and FGV

Type Def. Useful for passing data – both controls and indicators Demo

Type Def. Useful for passing data – both controls and indicators Demo typedefs

Questions