LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Blood Pressure VI

Solved!
Go to solution

Peter,

 

 

 

Use shiftregister to store data. Additionally, i doubt that your "analysis algorithm" performs the functionality you need...... 

 

hope this helps,

Norbert 

[EDIT]: Please note that the output tunnels of the while loop return the values which have been on the wire leading into them in the last iteration. Since the termination of the while loop is linked to the "low" button, the low-value should be something "valid", but high-value will always be '0'.
Message Edited by Norbert B on 05-08-2009 08:48 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 19
(1,246 Views)

Thank you for your replies, the default tunnel was indeed the issue.  So I've got a solution using local varaibles.

 

It is not ideal in the fact that the comparison isn't automated.  You click to read high and low pressures, then click categorise and it passes the values into the comparison section.. more comparisons are to be added although this is easily achieved.

 

Peter Smiley Happy


Regards,

Peter D

0 Kudos
Message 12 of 19
(1,226 Views)

PjayD wrote:

 

 

The case stucture over the whole project is so that the program can be initialized by clicking the "Start.." button, rather than using the run button.  Additionally I don't have (or know how to obtain) any code for this.

 

 


No.  DON"T use the Run Continuously button which is what your screenshot shows.    (Also, please attach image files to your message rather than posting them on a 3rd party webserver)

You are probably forced to use the Abort button to stop your code.

 

As Harold says, normally there is a while loop around all code that is intended to be kept running.  Then there would be a nice stop button located on the front panel that will end the master while loop nicely.  Put a small wait statement in that while loop so it doesn't spin the CPU at full speed while waiting for the start button to be pressed.

 

Also as Harold said (and he seems to be learning quickly now,Smiley Wink) a structure that uses an event structure would be better to handle the button presses along with a state machine.

0 Kudos
Message 13 of 19
(1,205 Views)
0 Kudos
Message 14 of 19
(1,204 Views)
well when you have no life it is easy to learn:) lol
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 15 of 19
(1,196 Views)

@ Ravens Fan - Thanks for the mod Smiley Happy

 

I added the additional logic and the project is now working fully! SOLVED!

 

Thanks again for all of your help.

 

Peter


Regards,

Peter D

0 Kudos
Message 16 of 19
(1,163 Views)

PjayD wrote:

Thank you for your replies, the default tunnel was indeed the issue.  So I've got a solution using local varaibles.



You should avoid Local Variables.  They are a quick and very dirty solution that will cause you and anyone working with the code too many headaches in the future.

 

I didn't read all posts, yet.  

 

So the high & low pressure relate to Systolic & Diastolic pressures.  Then you should have indicators with their appropriate names.  Do you actually want to measure one or the other, but not both?  That would be unusual.  

 

... I'll keep reading ...

Message 17 of 19
(1,148 Views)

Hi Ray.R,

 

I have a build now which solves all of your queries, although it's on another computer.  I will post it on here tomorrow and mark it as a solution.

 

Smiley Happy Peter


Regards,

Peter D

0 Kudos
Message 18 of 19
(1,139 Views)
Solution
Accepted by Pete.Dunc

^^^ see attached!

 

Peter


Regards,

Peter D

0 Kudos
Message 19 of 19
(1,111 Views)