Download - GCRC Informatics Project
![Page 1: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/1.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/3.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/4.jpg)
Visible Screen
![Page 5: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/5.jpg)
Pre-Acquire
![Page 6: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/7.jpg)
Dinamap Model Poll.vi
![Page 8: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/8.jpg)
Intermediate Step
![Page 9: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/9.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/10.jpg)
Acquisition Algorithm
1 2 3 4 5
![Page 11: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/11.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/12.jpg)
Wait Loop
![Page 13: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/13.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/14.jpg)
Write DataInsert Comment OR abort = False
![Page 15: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/15.jpg)
Write DataInsert Comment OR abort = True
![Page 16: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/16.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/17.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/18.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/19.jpg)
Sample Output
![Page 20: GCRC Informatics Project](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/20.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/21.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/22.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062519/5681530b550346895dc130f4/html5/thumbnails/23.jpg)
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