11-05-2015 11:24 AM
Hi guys, i really need some help
i gonna make a breathing rate graph which be able to count peaks and display breathing rate
thing is, the peak is fine they show up properly BUT the location that peak is not correct
the time in XY graph is not vary with time ,i don't know why
maybe i made a mistake about array or cluster etc
please give me some advice
thank you in advance
11-05-2015 01:37 PM
With every iteration, you generate the same x-ramp, starting with zero. Maybe you should increment the start and end point with each iteration and shift the locations output of the peak detector accordingly.
11-05-2015 03:41 PM
Are you expecting to see a time-varying signal, the kind of thing you would see with a chart recorder (or an oscilloscope)? If so, you probably want to use a chart, not a graph.
Bob Schor
11-05-2015 04:06 PM - edited 11-05-2015 04:09 PM
All you probably need is als maintain a fixed size matching queue for the x axis, e.g. as follows.
Modify as needed, might need a tweak here or there.....
11-07-2015 11:51 AM
hi , i've tried your suggestion but the location still don't response with time
any sugestions?
11-07-2015 01:55 PM
Instead using using the loop counter directly, you probably need to multiply it with the correct time interval.
Does ti work correctly except for the time units?