01-20-2017 01:07 AM
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
01-20-2017 04:06 AM
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:
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.
01-20-2017 05:35 AM
You are such a great person Dave! Not I understand what I made wrong. Thank you so much for the time you spend.
01-20-2017 06:58 AM
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?
01-20-2017 08:01 AM
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:
01-20-2017 08:08 AM
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.
01-20-2017 08:10 AM
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.
01-20-2017 12:28 PM
Double-click the wire going to your build array and then ask youself "Am I plotting the original data or...?"
Ben
01-24-2017 04:22 AM
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.
01-24-2017 07:27 AM
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