LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph does not vary with time

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

 

 

Download All
0 Kudos
Message 1 of 6
(3,452 Views)

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.

0 Kudos
Message 2 of 6
(3,419 Views)

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

0 Kudos
Message 3 of 6
(3,395 Views)

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.....

 

 

0 Kudos
Message 4 of 6
(3,389 Views)

hi , i've tried your suggestion but the location still don't response with time

any sugestions?

 

 

0 Kudos
Message 5 of 6
(3,351 Views)

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?

 

0 Kudos
Message 6 of 6
(3,331 Views)