11-02-2014 01:11 PM
The attached will save all of the measurements from your second while loop to a file. After the outer while loop has stopped you can read back and analyze the entire data set.
11-02-2014 10:38 PM
@Zwired1 wrote:
The attached will save all of the measurements from your second while loop to a file. After the outer while loop has stopped you can read back and analyze the entire data set.
I'm concerned with any suggestion that says "outer while loop." This follows a suggestion to send refnums back and forth instead of values.
Why do you enjoy overcomplicating your architecture?
11-03-2014 03:52 PM
Natasftw -- I see your concern and your criticism. What I don't see is a better suggestion or evidence that you opened the VI I attached.
The refnum "back and forth" is a file refnum. The file ref is passed though the outer while loop so the file is not opened for every iteration of the loop. The "file write" inside the inner loop is not the way I would normally do things but it is what I suggested so that we wouldn't have to go 'round and 'round trying to rearchitect the OP's VI. I chose to attempt to help the OP and not get wrapped around the axle on unrelated things that will come with experience.
If you wish to continue the conversation, please use PM.
11-04-2014 04:06 AM
i have tried make peak detection using array max and min or peak detector but data obtained is same, there is not difference between peak and valleys.
my data from sensor spo2 acquisition by analog read arduino then i make filter after that i want to find peak and valleys?
can you help me?