LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comparing values of the array with the previous value

Hallo guys, I need help with a project that evaluates measured data from sensor.

I need to compare each element of the array with the previous one, if the current value is larger then the pervious it will continue comparing until the current value is less than the previous one and it will print out the max Value. 
in other words I'm trying to find the max Value of each peek in my measurements.

thank you guys in advance 

MajdQaisi_0-1641826816802.png

 

0 Kudos
Message 1 of 5
(1,847 Views)

This may be useful

santo_13_1-1641827927653.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
Message 2 of 5
(1,840 Views)

Thank you sir, 
 I did it with this function 

MajdQaisi_0-1641831684839.png

 

0 Kudos
Message 3 of 5
(1,824 Views)

Hi Majd,

 


@MajdQaisi wrote:

 I did it with this function


I don't think you should use an IMAQ (IMage AcQuisition) function to analyse a DAQ signal…

Why don't you use the "default" PeakDetector?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(1,806 Views)

hallo,
Ah Ok, I didnt know the difference, but now I used the default Peak detector and it works.
Thank you fro your help  

0 Kudos
Message 5 of 5
(1,741 Views)