Jump to content

get value of defined harmonic


---
 Share

Recommended Posts

Hi everybody.

Our customer wants us to do a fourier analysis of a brake disc. But his special wish is to get the values of 2nd, 3rd, 4th and 5th harmonic for statistical evluation.

303_fb04ea2e4f824017459583b652e5b815.jpg

So i need a pcm-command some kind of "getActual(featureName,2nd).value

Has anybody a good idea?
Link to comment
Share on other sites

Hi Michael,

you can get for example the third harmonic by
harm=getActual("Welligkeit1").allAmplitude
getParameterNamed(harm,3).value.amplitude* 1000.0d
or the 2nd, 3rd, 4th and 5th harmonic
for i=2 to 5
   display(i + ":   " + getParameterNamed(harm,i).value.amplitude* 1000.0d)
next i
Link to comment
Share on other sites

Please sign in to view this quote.

For someone can be usefull shortened code ( non PCM guys )

getParameterNamed( getActual("Welligkeit1").allAmplitude ,3).value.amplitude* 1000.0d
Link to comment
Share on other sites

 Share

×
×
  • Create New...