ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

average peak

I have a graph in the oscilloscope and I want to take the average peak from the 40 samples. I want to do this 10 times therefore the result should display 10 peaks which is the average of 40 samples. Here are multiple codes I worked on to achieve this but it hasn't been working as I want. Pic 1 is before average, to see if I can differentiate with peaks and display it right. Pic 2 is with average still not working, pic 3 is another way that I was implementing to differentiate the peaks instead of using case structure. thanks for the help. 

 

also the DEQ assistant, I put 40 as the number of samples but  never specify that it is 10 times. when put it in for loop it doesn't work either. I am also confused on that.

0 Kudos
Message 1 of 4
(1,996 Views)

Hi sorry, I think I forgot to save it before submitting so the pictures disappeared. here they are. (UPDATE: I updated the pic 3 underneath, sorry for inconvenience.)

Download All
0 Kudos
Message 2 of 4
(1,979 Views)

Hi sorry, I think I forgot to save it before submitting so the pictures disappeared. here they are

Download All
0 Kudos
Message 3 of 4
(1,968 Views)

Hi melisa,

 

You are using a lot of ExpressVIs and DDT wires. (IMHO way too much…)

One reason we mostly don't like (images of) ExpressVIs: they hide a lot of information behind configuration dialogs! So we cannot judge your code from looking at images of code…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(1,943 Views)