I have made an interface where I can graph XY graph from two two channels. For now I fixed the graphs so that when I select a specific region from the top graph, the same range of data from the bottom graph is selected for graphing XY graph.
However, as you can see from the attached image file, the signal I am getting looks like triangular waves. I want to get only one cycle everytime without selecting the one cycle by hand. What I was thinking is if I get max or min for a couple of cycles and use those values or little bit smaller values to select a cycle and graph them at a time.
for example, use max or min functions to get approx. value for start and end with some flexibility(+- 3%)
then plot the XY graphs
till there is a big difference between the new max/min and previous max/min.
I have these ideas but do not know what functions to use and where to get them...etc
Thanks.