user interface

Hi All,

My group are trying to do a programming on the labview where the user can input their age, for instance 20 years old at the prompt user input. The program would then lead to - if the user is between 20 and 29 years old, it would lead to that specific range of heart bpm for that age group and determine whether it exceed 140 or below 60 and the alarm would ring. (We are going to set up different age groups and their heart range)

However, we have difficulties trying to connect the two set of conditions together - the case structure of the age range and the while loop of the heart beat range. We are not sure if we did the right thing. I have attached the pictures of the block diagram that we set up and also the errors that resulted. Do anyone have any ideas or suggestions on how we can improve on it and make the two conditions connect? We hope to get some enlightenment. Thank you.

The reason you have those errors is because the comparisions don’t automatically pull their value from that age wire you have going into the case statement. If you wire the inside of that tunnel to the other conditional terminal I believe those should go away. You’ll also need to feed in the BPM measurement somehow into the while loop.

As an alternate design, here’s something I wired up: It takes the value the user provides for age and compares it step by step to age bounds in an array of clusters, each containing the age bound and tachy/brady-cardia limits. Assuming one of those ranges matches, it then passes that cluster to the while loop, which continually compares the BPM against limits. ( I just realized I messed up the bradycardia compare in the while loop, but I’m sure you get the idea there )

Either design will work, though you’ll need to add more cases to yours to add the additional age ranges, in mine you’d just need to add another index to the array.