LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying 2nd and 3rd Loop in a Graph

Solved!
Go to solution

Sorry for late reply Dave, I wasn't able to use the instrument yesterday. But today I went to the instrument straight forward and save the datas as you wanted. I hope NOW it works Smiley Happy

 

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 11 of 33
(2,252 Views)
Solution
Accepted by topic author TITAN-x

Ok, I found out, that the negative offset in your data seems to disturb the algorithm of the peak detector. Have a look at the following image:

 

Peak_Find_VI_1.png

 

I just subtracted the minimum value from the data array to make all values positive. This helped.

The lower part shows my effort to understand, how this peak detector VI works, but when I devide the data in chunks of "width" pieces, the difference against "threshold" is never high enough. Perhaps the Signal-Processing-Gurus can explain.

 

 

Greets, Dave
0 Kudos
Message 12 of 33
(2,243 Views)

You are such a great person Dave! Not I understand what I made wrong. Thank you so much for the time you spend.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 13 of 33
(2,239 Views)

One last thing Dave, I don't know why but when I run the vi it doesn't show my actual values but shows some other values. For me the Y axis supposed to be between -60 and -15 and X axis should be 1460 and 1620 but it shows something very different. I couldn't get the reason. Do you have any idea about that?

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 14 of 33
(2,235 Views)

To show all data in a graph you make sure the graph palette is visible, then click on the Zoom-Menu Button, then the Fit-To-All Button:

 

Fit to All.png

Greets, Dave
0 Kudos
Message 15 of 33
(2,223 Views)

The problem is not with the graph properties I guess. In the X axis and Y axis values should be different than the one I achieve. But when I adjust the graph with the actual limits, as you may guess nothing appears. I also attached the form of graph that is adjusted along with your advice.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 16 of 33
(2,238 Views)

The problem is not with the graph properties I guess. In the X axis and Y axis values should be different than the one I achieve. But when I adjust the graph with the actual limits, as you may guess nothing appears. I also attached the form of graph that is adjusted along with your advice.

 

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 17 of 33
(2,237 Views)

Double-click the wire going to your build array and then ask youself "Am I plotting the original data or...?"

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 18 of 33
(2,223 Views)

I actually couldn't understand what am I doing wrong. I've attached the VI  I am working on maybe you guys may guide me to understand what my mistake is.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 19 of 33
(2,200 Views)

Hello, which axis-scale-values do you expect? For me it looks good. Your original data has an amount of 20000 elements, this is reflected by the X-axis. And the range of of values is from -60 to -23.2903. Since every element in the data- array is subtracted by -60, the y- range goes from 0..36.7097

 

 

Greets, Dave
0 Kudos
Message 20 of 33
(2,187 Views)