gcrc informatics project

23
GCRC Informatics Project Sponsor: Dr. Paul Harris, GCRC Informatics Director Members: Chris Heath, BME/EE Adam Nagel, CompE Chris Nash, EE Brendan Soar, CompE February 10, 2005 4th Spring Presentation

Upload: marlon

Post on 25-Jan-2016

28 views

Category:

Documents


0 download

DESCRIPTION

GCRC Informatics Project. February 10, 2005 4th Spring Presentation. Sponsor: Dr. Paul Harris, GCRC Informatics Director Members: Chris Heath, BME/EE Adam Nagel, CompE Chris Nash, EE Brendan Soar, CompE. Progress This Week. Implemented basic functional algorithm - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: GCRC Informatics Project

GCRC Informatics Project

Sponsor:

Dr. Paul Harris, GCRC Informatics Director

Members:

Chris Heath, BME/EE

Adam Nagel, CompE

Chris Nash, EE

Brendan Soar, CompE

February 10, 20054th Spring Presentation

Page 2: GCRC Informatics Project

Progress This Week

• Implemented basic functional algorithm

• Experimented with AirCable adaptor

• Resolved problems with 802.11b network

• Worked with MySQL libraries

• Updated website

Page 3: GCRC Informatics Project

Study Start

Start NIBP determination

Status response

Request NIBP status

Started OK

Check status bit

0–“busy”

Parse string for DP, SP, MAP

1-“done”

Request HR,Parse response

Store Data to file

Upload data to server

Upload successful?

(Timer) or (User Trigger)

Yes

No

Start

Poll for monitor model

Monitor model

Pro 1000

NIBPDError

Not Started OK

NoDB upload

error handler

Alternative Handlers

Other

Yes

Basic Functional Algorithm

Page 4: GCRC Informatics Project

Visible Screen

Page 5: GCRC Informatics Project

Pre-Acquire

Page 6: GCRC Informatics Project

Pre-Acquire Duties

• Call “dinamap model poll.vi” to determine model type, passes to next step

• Allow patient’s first name and last name to be chosen, passes these strings to next step

• Generates file name to be written to based off of patient name, passes into next step

• Waits until “Run” button has true value to enter into next stage

Page 7: GCRC Informatics Project

Dinamap Model Poll.vi

Page 8: GCRC Informatics Project

Intermediate Step

Page 9: GCRC Informatics Project

Intermediate Step Duties• Grab current clock value, pass into

acquisition algorithm• Create text file with given name, write the

patient’s name into it and close the file• Pass the file name into the acquisition

algorithm• Pass model number into acquistion• Acquisition algorithm is placed inside

infinite while loop

Page 10: GCRC Informatics Project

Acquisition Algorithm

1 2 3 4 5

Page 11: GCRC Informatics Project

Acquisition Algorithm 5-Step Process

1. Set “Ready to Acquire” Indicator to True

2. Enter wait loop. Loop waits for timer to run out, manual acquire requested, comment written, or abort signaled

3. Set “Ready to Acquire” Indicator to False

4. Open file, Acquire/write data or write appropriate comment

5. Close the data file

Page 12: GCRC Informatics Project

Wait Loop

Page 13: GCRC Informatics Project

Wait Loop• Waits for True value

from “Insert Comment”, “Take Measurement”, “Stop”, or clock compare to exit loop

• Displays seconds until next acquire while in loop

• “Less than” compare required so loop bypassed on first iteration

Page 14: GCRC Informatics Project

Write DataInsert Comment OR abort = False

Page 15: GCRC Informatics Project

Write DataInsert Comment OR abort = True

Page 16: GCRC Informatics Project

Write Data Block• If “insert comment” and “abort” = false

– Calls “Dinamap serial Acquire.vi”– Displays outputted measurements– Passes measurements into “dinamap write.vi”

• If “insert comment” = true– Writes comment string + date/time into file

• If “abort” = true– Writes “Study Concluded” + date/time into file

Page 17: GCRC Informatics Project

Dinamap Serial Acquire.vi

•Inputs the model number (not currently used)

•Outputs Systolic, Diastolic, Mean Arterial Pressures and Heart Rate to main vi

•Waits 20 seconds to allow Dinamap machine to begin measurement

Page 18: GCRC Informatics Project

Dinamap Write.vi

• Inputs all data found from “serial acquire”

• Writes these strings separated by spaces plus date/time to file

• Outputs the file refnum for closing in step 5

Page 19: GCRC Informatics Project

Sample Output

Page 20: GCRC Informatics Project

AIRcable Progress

• Power cable has arrived• Command Line Interface

successfully accessed via hyperterminal

• Connection to Pocket PC established

• Meaningful communication still not acheived

Page 21: GCRC Informatics Project

AIRcable Command Interface

• ASCII strings sent over serial changes settings

• Decided to place device in “Service-Slave” Mode, discoverable by PDAs

Page 22: GCRC Informatics Project

MySQL connectivity

• DALP (Database Access Libraries for PDAs)

• LabView supports linear use of external functions

• DALP implements a MySQL connectivity class

• Must write new standalone function, for use with LabView

• This new function must be compiled to DLL on the PocketPC

• Learning to develop in eMbedded Visual C++

LabVIEW’s Call Library Function Node

Excerpt from “Hello World” example in eMbedded Visual C++

Page 23: GCRC Informatics Project

For Next Week• Work on Bluetooth communication

plausibility

• Develop a “worst-case” solution in case BT does not work

• Work really hard on MySQL connectivity

– Working .exe demo within two weeks