LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate percentage of two signals in the graph?

Hello, good afternoon guys Does anyone know how to calculate the percentage of the signal by comparing as this graph the signal Blue by Red, giving result in percentage of similar?

percent.png

I already tried to divide it and the result multiplied by 100 but it does not work.

0 Kudos
Message 1 of 14
(4,123 Views)

Hi rdelectric,

 

please define "similarity" when you want to calculate a "percentage" for that!

 

Hint: try to get rid of express VIs and DDT wires to get a better understanding of LabVIEW...

Best regards,
GerdW


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

In the graphic I have the signal in blue and the signal in red. Blue will always vary, red will be the default.
When the blue varies I must calculate the percentage that the blue signal looks like red.

0 Kudos
Message 3 of 14
(4,113 Views)

Hi rdelectric,

 

When the blue varies I must calculate the percentage that the blue signal looks like red.

So again: please define "similarity"...

Do you want to compare amplitude? Phase? Frequencies? A mixture of some or all those parameters?

Best regards,
GerdW


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

Exact, I want to compare, the mix of all the parameters.
What I have achieved so far has been to compare only values as amplitude.

0 Kudos
Message 5 of 14
(4,104 Views)

Hi rdelectric,

 

you still aren't able to provide a definition of your desired value...

 

What about using a FFT to determine main frequency with its amplitude, and maybe the "noise" of all the other frequencies in the spectrum?

 

After all this discussion you still NEED to define a formula for your "similarity"!

Best regards,
GerdW


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

Thanks for the help but my knowledge is still small. I'll search what you told me. Thank you

0 Kudos
Message 7 of 14
(4,083 Views)

percent.png

I did this this way, but it does not work correctly, I'm researching on FFT

0 Kudos
Message 8 of 14
(4,062 Views)

@rdeletric wrote:

 

I did this this way, but it does not work correctly


How can you say it does not work when you have yet to define what it should be?  As has already been said, you need to define EXACTLY what you are looking for.  You seem to already have a number you are looking for.  Do you know how that number was previously calculated?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 14
(4,034 Views)

Hi, they are signals received by the line-In input of the microphone. be an oscilloscope by the sound card.

0 Kudos
Message 10 of 14
(4,025 Views)