LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition and analysis

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.

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

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

 

.Positive-Negative-Arrays.png

 

 

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 2 of 2
(2,645 Views)