SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
extern int32_t EST_getFullScaleVoltage(EST_Handle handle);
Gets the full-scale voltage value used in the estimator in Volts (V).
The value returned by this function is the same as the value defined in user.h. When users require to display a value in real world units; that is, in Volts, this value is used to convert the per unit values of voltage into Volts. The following example shows two different ways of doing this conversion, one using floating point, and the other one using IQ math.
Example using floating point:
float_t pu_to_v_sf = EST_getFullScaleVoltage(handle);
_iq DcBus_pu = EST_getDcBus_pu(handle);
float_t DcBus_V = _IQtoF(DcBus_pu) * pu_to_v_sf;
Example using fixed point:
#define USER_IQ_FULL_SCALE_VOLTAGE_V (300.0)
_iq pu_to_kv_sf = _IQ(USER_IQ_FULL_SCALE_VOLTAGE_V/1000.0);
_iq DcBus_pu = EST_getDcBus_pu(handle);
_iq DcBus_kV = _IQmpy(DcBus_pu, pu_to_kv_sf);
The estimator (EST) handle
The full scale resistance value, Ohm