06-30-2016 02:13 AM
Hi,
I have my experimental data as time, current and voltage in three columes in an excel sheet. I have found out the peak locations (index) of voltage signal by the peak detector function. Now I want to find out the voltage peaks corresponding to time. how to do that?
Solved! Go to Solution.
06-30-2016 02:45 AM - edited 06-30-2016 02:49 AM
Do you want to find corresponding time of peak voltage?
If yes follow this method
As you find the found the peak voltage and its index, then use the same index and get the index value from Time Array
06-30-2016 04:06 AM
Hi Palanivel,
I know the logic but since I am new in this field so I actually don't know how to do it in labview. My another concern is that when I use the peak detector function, the indices are shown in decimal. Is it possible to use these index values to find out the required values in the time array.
Regards-
bdcpp08
06-30-2016 04:55 AM
Its Possible
Please share the code and the file for proper response
06-30-2016 05:09 AM - edited 06-30-2016 05:14 AM
Dear Palanivel,
Thanks for your kind response. Here I have attached the required files. In the spreadsheet attached here the 1st & 3rd colume are the time (which are exactly same, so you need to consider only one colume) 2nd colume is the current and 4th colume is voltage. So in the numeric control you have to consider 0, 1 & 3 respectively.
With regards-
bdcpp08
06-30-2016 05:50 AM
Thanks for sharing the code, You have used Filter and all any need for that?
Explain in steps what you need to drive to find peak voltage
06-30-2016 06:05 AM
Hope this will work fine for you
07-01-2016 12:18 AM
Dear Palanivel,
Thanks for your support. But your code does not solve my problem. Your code give only the maximum value of the voltage and its corresponding time value. But if you have thirty peaks and you want all the peak value and its corresponding time value, then the code do not show all the values. But I think if I use a While or For loop, then it might work. I was actually looking for a straight forward way to find out the peaks.
Thanks once again for your help.
Regards-
bdcpp08
07-01-2016 02:13 AM
Try to set the offset and if its above offset , Find the index of voltages above offset and the time of corresponing index then your issue will be solved
07-08-2016 01:28 AM
Hi,
Finally I got the solution of my problem. To find out the time values of the peak positions. I used the For loop and a shift register with an increament function. I used the peak detector function and the output is connected to the index array function, then the index of that function is connected to the shift register which is initialized with 0. The output of the index array function is connected again to the index terminal of another index array function whose input is connected to the time array. The output of the function is placed outside the loop as indicator.
Regards-
bdcpp08