11-29-2010 08:35 PM
I have an instrument to acquire flow rates of a breathing cycle at a rate of 100 hz. I want to check if the value measured is positive or negative and keep inserting the values in 2 different arrays in either case. At the end of each cycle i want to pass these two arrays on for further analysis. These arrays should be re-initialised to zero before the start of the next cycle and then repeat the procedure for each cycle. It would be great if someone could help me with this. I dont know the frequency of each cycle since it may change with each breath and from person to person.
11-30-2010 12:21 PM
You may need to provide some additional detail, before anyone can make any concrete suggestions.
How are you connecting the instrument to the computer/controller running LabVIEW? Does the instrument communicate over serial or GPIB, or does it output a digital pulsetrain or an analog voltage?
I've attached a small snippet that demonstrates one possible way to add positive values to one array, and negative values to another, but I haven't tested it
.