230 likes | 349 Views
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
E N D
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 • Experimented with AirCable adaptor • Resolved problems with 802.11b network • Worked with MySQL libraries • Updated website
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
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
Acquisition Algorithm 1 2 3 4 5
Acquisition Algorithm 5-Step Process • Set “Ready to Acquire” Indicator to True • Enter wait loop. Loop waits for timer to run out, manual acquire requested, comment written, or abort signaled • Set “Ready to Acquire” Indicator to False • Open file, Acquire/write data or write appropriate comment • Close the data file
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
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
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
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
AIRcable Progress • Power cable has arrived • Command Line Interface successfully accessed via hyperterminal • Connection to Pocket PC established • Meaningful communication still not acheived
AIRcable Command Interface • ASCII strings sent over serial changes settings • Decided to place device in “Service-Slave” Mode, discoverable by PDAs
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++
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