LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My Project

Hello all,

 

Sorry to bother you but I need your help. Im a senior student and I am working on my senior project for graduation. Me and my team members decided to build an Infant CPR dummy that will train people on how to do the proper compressions, how to deliver the right amount of air to the baby's lungs, and to project all this into a real time graph. First of all, I have not so expirienced with Labview but I have heard is a great tool and I am willining to learn more. I bought a book but it is not a good one, it is just an introduction to the software just like anyother programming Level 1 book. Right now, we have built the device with pressure sensors and a air flow sensor. I got them to work with labview by using Labjack. So far, I can get the reading from my sensors by using simple indicators.

Now, I want to capture a series of data, for example: I am tryingo to plot good compressions and bad compressions. You see, good compressions are from 3psi to 4.5psi anything below that is considered bad compression for an infant. I want to capture picks for good compression but since I am storing everything into an array, I am getting all the data. for instance, If I do 3 compressions above the good compression, it should tell me that I did 3 good compression not 800 elements in the array.

 

If you guys can giveme a hint, Ill appretiate this very much. I use labview 8

 

Thanks for your time on reading this.

0 Kudos
Message 1 of 2
(2,192 Views)

Hi,

 

Some suggestions.  Screen the data as you collect it, rout the good data into a separate array, maybe store the index number too if you need to know which points were good. 

 

Another suggestion if the array is already filled, run the array into a for loop, use indexing, and use the "in range and coerce" function to select the passing points.   If you do this  you would use a build array and a shift register to build the array of passing points.  ALso save the index of the point number if that is important to you.

 

If you are only counting the number of passes you can use the "+1" indexer with a shift register to count up the number of passes rather than to store the passed values.

 

 

-------
Mark Ramsdale
-------
0 Kudos
Message 2 of 2
(2,182 Views)