Interactive CARA Simulation Prof. Insup Lee. Hierarchical EFSM Specification for CARA.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Presenter : Shao-Chieh Hou VLSI Design, Automation and Test, VLSI-DAT 2007.
CIMCO Integration Software Products
Reliable Scripting Using Push Logic Push Logic David Greaves, Daniel Gordon University of Cambridge Computer Laboratory Reliable Scripting.
Introduction to HT-IDE3000 Micro-C development System Department.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
In this presentation you will:
EEE436 / CS422 Final Presentation Group
6/22/011 Case Study: Computer Assisted Resuscitation Algorithm (CARA) System Insup Lee Department of Computer and Information Science University of Pennsylvania.
Infusion Pump Controller Requirements Definition A Decision-Table Approach by Richard Riehle.
Rapid Pneumatic Transportation of Radioactive Samples System Steve Padalino & Ed Pogozelski SUNY Geneseo.
How to use the VHDL and schematic design entry tools.
Chapter 11 Exception Handling and Event Handling.
Scheduling with Optimized Communication for Time-Triggered Embedded Systems Slide 1 Scheduling with Optimized Communication for Time-Triggered Embedded.
SDRL & RTG University of Pennsylvania 8/3/2001 Formalization of CARA system requirements Oleg Sokolsky Department of Computer and Information Science University.
8/3/011 Formal methods for CARA development Insup Lee (Univ. of Pennsylvania) Rance Cleaveland (SUNY at Stony Brook) Elsa Gunter (NJIT)
November 18, 2004 Embedded System Design Flow Arkadeb Ghosal Alessandro Pinto Daniele Gasperini Alberto Sangiovanni-Vincentelli
Self-Contained Particulate Filter Filter 3 Presenters: Ian Gray, Kyhia Bostic Demo Given by: Nathan Sullivan.
DIVES Alur, Lee, Kumar, Pappas: University of Pennsylvania  Charon: high-level modeling language and a design environment reflecting the current state.
Wireless Data Acquisition for SAE Car Project by: J.P. Haberkorn & Jon Trainor Advised by: Mr. Steven Gutschlag.
An Introduction to Rational Rose Real-Time
EMBEDDED SOFTWARE Team victorious Team Victorious.
1 Exception and Event Handling (Based on:Concepts of Programming Languages, 8 th edition, by Robert W. Sebesta, 2007)
By Steven Campbell and Erik Boone.  Sharing projects by putting them into a central repository.  Checking out copies of projects from the repository.
Senior Project – Computer Engineering Integrated Workout Shoe Peter Katlic Advisor – Prof. Cotter Development: Consisting of an 8051 microcontroller.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
Viking Pump Flow Manager - Phase 2 Senior Design May
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 EVALUATING INTELLIGENT FLUID AUTOMATION SYSTEMS USING A FLUID NETWORK SIMULATION ENVIRONMENT Ron Esmao - Sr. Applications Engineer, Flowmaster USA.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Wearable Sensors Final Presentation Problem Background Inferred Transmission (short range) Bulky Design, hard to wear 20 Samples per second.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Event Driven Programming
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Magnetic Field Measurement System as Part of a Software Family Jerzy M. Nogiec Joe DiMarco Fermilab.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Grob Systems, Inc., the customer, requires an industrial computer system that will have a function of acquiring raw data, processing the data, presenting.
Pump Controller Team Number: May06-12 Team Members Dwayne Stammer CprE Francois Munyakazi EE Dan Paulsen CprE/EE Faculity Advisor Nicola Elia Client Viking.
Gauge Operation and Software by Scott A. Ager. Computer Recommendations 750 MHz Pentium III 64 Meg SRAM 40 Gig Hard Drive 1024 x 768 graphics CD Writer.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Team 15. Code Modules Web Server Interface and Operating Parameters Chemical Level Detection Calibration Routine Adjusting Agent Calculation Chemical.
Home Guard Security System. Introduction & Basic Ideas Home Guard Security System.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Visual Basic.NET BASICS Lesson 5 Exponentiation, Order of Operations, and Error Handling.
9 February 2000CHEP2000 Paper 3681 CDF Data Handling: Resource Management and Tests E.Buckley-Geer, S.Lammel, F.Ratnikov, T.Watts Hardware and Resources.
Getting Started with OPC.NET OPC.NET Software Client Interface Client Base Server Base OPC Wrapper OPC COM Server Server Interface WCF Alternate.
Overview of MSWS Control of 212-LC July 15, 2006.
Monte-Carlo based Expertise A powerful Tool for System Evaluation & Optimization  Introduction  Features  System Performance.
Web-based Access to ROOT at D-Zero Joel Snow Langston University/D0 Collaboration ROOT 2001 Displaying histograms generated by ROOT in a Web BrowserDisplaying.
Event Driven Programming In Non GUI applications Car Jet Wash. List of Events:- Coin operation detection. Timer. Mode selection (rinse, cold high pressure.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
Event Management. EMU Graham Heyes April Overview Background Requirements Solution Status.
QuickBev Group 29: Phillip Nielsen & Michael Perreux TA: Braedon Salz ECE445 Spring 2016 May 4, 2016.
Event Driven (Asynchronous) Programming. Event handling in Unity Subclass a class that contains event handling methods, and then override those methods.
The World Leader in High Performance Signal Processing Solutions Linux Industrial I/O Subsystem Open Platform Solutions Michael Hennerich.
Computer Architecture Organization and Architecture
Introduction to Operating Systems Concepts
Real-time Software Design
GUI Design and Coding PPT By :Dr. R. Mall.
Object-Oriented Analysis and Design
OVERVIEW Impact of Modelling and simulation in Mechatronics system
SOFTWARE DESIGN AND ARCHITECTURE
COEN 421- Embedded System and Software Design
In-situ Visualization using VisIt
Real-time Software Design
Modbus with the AKD Using Modbus Poll and Wireshark Rev. F Dec
Event Driven Programming
STATE MACHINE AND CONCURRENT
Presentation transcript:

Interactive CARA Simulation Prof. Insup Lee

Hierarchical EFSM Specification for CARA

Interactive Simulation CHARON simulator –CHARON is able to simulate state flows –Each state machine can be simulated in an agent –Agents can work concurrently Java-based GUI –Allow user to change the CARA environment online –Display soft button –Display dialog windows –Display run-time pumping mode and pump status –Display the dynamic data and notation How to fill the gap between CHARON Simulation and GUI –File sim.dat is written by CHARON simulation, and will be read by GUI during running –File gui.dat is written by GUI and will be read by Environment agent in CHARON simulation

CARA Simulation in CHARON CHARON Features –Architectural Hierarchy simulate the hierarchical EFSM structure Each state machine in the EFSM is corresponding to an agent in CHARON –Behavior Hierarchy Allow to simulate the mode control and state transaction –Discrete & Continuous Variable Updates Make it possible for time-triggered transaction in CARA

CARA Implementation in CHARON CARA System –Pump Monitor Monitor Plug-In Monitor Continuity Monitor AirOk Monitor OccOk Monitor backEMF Monitor Impedance –BP monitor BP Detector –Cuff Detector –AL Detector –PW Detector BP Handler –Initial Auto-control –Valid BP Handler –Cuff Handler in AC –AL Handler in AC –PW Handler in AC BP Checker –Control Algorithm Mode control algorithm Polling algorithm Additional simulation –Environment To catch the changes and setting in GUI –Propaq Platform To simulate the hardware propaq, buffering the BP values and detecting time –System Clock To create a system-scale timer

Cuff (AL, PW) Detector –Detect BP data stream from Propaq, update cuff (AL, PW) value if new arrival, and calculate the average cuff value every minute Cuff (AL, PW) Handler in AC –In Auto-control, handle cuff (AL, PW) value to decide whether it is lost, whether it can be as the control BP source, whether it is required to be corroborated, and determine the driven voltage for pump to control the infusion speed Explanations (1)

Explanations (2) Initial Auto-Control –Decide the initial control BP source and value during initial Auto- control stage Valid BP Handler –keep trace whether the control BP source is valid during Auto- control mode Mode Control Algorithm –Keep trace the pump mode: unknown, wait, manual, initial auto- control, and auto-control Polling Algorithm –Keep trace of the back EMF and impedance value to decide the polling status, and get the current flow rate, accumulated infusion volume, and average flow rate every minute

Java-Based GUI By clicking the “Change Conditions” button, users can change the environment setting for CARA (as following figure)

Run-time Dialog Windows Start Ok Window –When CHARON simulation satisfies the conditions to trigger initial Auto-control mode, it will send a signal to GUI. So, GUI will pop up the “Start Ok Window”. Set Point Window –After the above ok button is clicked, GUI shows the “change set point” button, if it is pressed, a dialog window will be pop up.

Override Window –During corroboration, CARA allows user to decide whether to override or not. At that time, GUI will pop up such dialog window. Terminate Window –During Auto-Control mode, a “Terminate AC” button is visible. When it is clicked, another dialog window is available.

Run-Time GUI During simulation, GUI will display messages and show/hide some buttons corresponding to different mode Initial state of GUIAfter click “start ok” buttonRunning in Auto-Control mode

M100 Infusion Pump Experiment Design

Motivation We have been modeling an abstract system Physical setup allows us to understand system better, test code against the real hardware.

Hardware Simulation of CARA The Penn Team has developed a hardware platform to simulate the functions of the CARA system and assist in evaluating the simulation software.

Hardware Simulation Components The hardware consists of four components: M100 Infusion Pump mL flasks Pressure Sensor A/D interface

M100 Infusion Pump The M100 Infusion Pump interfaces with the controlling computer via the gold connector on the right. This allows computer control of the pump’s functions.

Pressure Sensor We built a simple pressure sensor which detects 0 – 6 psi and outputs 0 – 5 volts. It is compatible with our d/a converter and the pressure ranges we wish to experiment with.

Operation of the System Normal operation consists of running the pump until the pressure in the top flask reaches the desired level. ‘Since the flask is sealed, pumping fluid into it raises the pressure, and this is detected by the pressure sensor. The system can also detect and react to faults.

Swing Pressure Sensor Quanser MultiQ Luer Connector 1/8” PP Tubing Data Starting Condition

Swing Pressure Sensor Quanser MultiQ Luer Connector 1/8” PP Tubing Data Pump is Primed

Swing Pressure Sensor Quanser MultiQ Luer Connector 1/8” PP Tubing Data Pumping Starts

Luer Connector 1/8” PP Tubing Swing Data Pressure Sensor Quanser MultiQ Normal Operation

Swing Pressure Sensor Quanser MultiQ Luer Connector 1/8” PP Tubing Data Bleeding

Hardware Prototype We connected the Simulation and GUI to the hardware setup. This allowed us to write a CHARON specification and quickly see it run on the actual hardware.

Future Work Perfect Charon / Gui / Hardware interaction Build a general purpose prototyping platform based on Charon