Forum Discussion
I need to simulate taking a blood pressure - obtaining correct results
Hi Marinetta,
This looked like an interesting challenge so I have put together the attached example in the hope that it can assist you in some way.
The sound of the monitor pump was obtained from Zapsplat who provide free sound clips, but do require you to acknowledge their product in your final project. They also have sound effects for cuff fitting/removal.
The font I used for the screen was Open 24 Display ST by Southype and was obtained from Dafont.com for free.
In the example I have used an off-slide animation of a small blue rectangle to act as a counter and have added 16 to the Systolic variable with each cycle of the animation until the pump's audio completes (this increases it from zero to 176) and then subtracted 9 with each cycle to drop it back to 88, at which point final values for systolic, diastolic and pulse are randomly generated within appropriate ranges and then displayed along with appropriately coloured led indicators. I have only set normal and high ranges, but it would be easy to add low range readings if required.
Once in preview, you can start the monitor as often as you want and also interrupt it by pressing the Start/Stop button if you want to reset mid reading.
I hope this gives you something to work with, but if you can't follow something I have done or have any further queries, just get back to me here.
This is a great example, Ned! Nice work! Thanks for taking the time to build this out and for sharing where you found the sound effects.
Marinetta, I also wanted to point you to this free download by Trina. It might be a nice addition to the content Ned provided.
- marinettadem6905 years agoCommunity Member
Thank you. I actually saw this one. However what I need is a "manual" BP versus an automatic. Thanks though.