10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Post-Processing Library<br />

HDIST<br />

HDIST<br />

Eldo built-in DSP function<br />

Calculates the Total Harmonic Distortion (THD) of a signal.<br />

Usage<br />

set out_value [hdist $wv_in $fundf]<br />

set out_value [hdist $wv_in $fundf $fmin $fmax]<br />

Arguments<br />

• wv_in<br />

The input waveform the function is acting upon.<br />

• fundf<br />

Fundamental frequency.<br />

• fmin, fmax<br />

Frequency band that should be taken for the computation.<br />

Return Values<br />

out_value is the THD.<br />

Eldo® User's Manual, 15.3 1225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!