LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect and save local minimum and local maximum value from LSB data

Dear All,

 

I would like to open a new topic regarding my problem in LabView.

 

According to the task I would like to evaluate the saved LSB values which are coming from a wheel speed sensor during a magnetic encoder rotation. I could make the row data import and data visualization in LabView, but I can not collect the local minimum and the local maximum point into arrays.

 

My plan would be to check the LSB values step by step and when the first local minimum value has found saved into an array and after find the local maximum. This should be done for all periods.

 

If LabView can collect the local maximum and local minimum values I can subtract from the max the min and I can see the all amplitudes for the all periods.

 

It would be very good to get some support how can I start this project.

 

Thanks in advance!

Gábor

 

 

 

 

 

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

Hi Gabor,

 

to build an array from scalar values you should use the BuildArray function.

To store data to be used in the next iteration of a loop you should use shift registers.

Both (BuildArray, shift registers) are very basic LabVIEW elements…

 

There also is a PeakDetector function available in LabVIEW: have you tried to employ it?

Best regards,
GerdW


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

Hello GerdW,

 

many thanks for you reply, of course I tried the basic thinks what you proposed, but these are working only theoretically, not in fact.

 

BuildArray function-> did'n filled up the array

For loop shift register-> did nothing

 

PeakDetector function -> no information how is it working (I would like to compare all LSB values step by step)

 

Best would be any exact example, but I will try again on other way.

 

Best regards,

Gabor

0 Kudos
Message 3 of 4
(1,036 Views)

Hi Gabor,

 


@Gabor_37 wrote:

BuildArray function-> did'n filled up the array

For loop shift register-> did nothing


For me the combination of BuildArray with a shift register always is able to build an array…

Best regards,
GerdW


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