TIDUE53J March 2018 – February 2025 TMS320F28P550SG , TMS320F28P550SJ , TMS320F28P559SG-Q1 , TMS320F28P559SJ-Q1
In this lab, the power stage is run in a closed loop on the real hardware or HIL platform. Figure 3-10 shows the software diagram.
Set the project to Lab 3 by changing the Lab Number in the <tinv_settings.h> or main.syscfg file, (this is changed by powerSUITE GUI when using powerSUITE project).
In the user settings.h file some additional options are available, but the following are used for the tests documented in this user guide.
#if TINV_LAB == 3
#define TINV_TEST_SETUP TINV_TEST_SETUP_RES_LOAD
#define TINV_PROTECTION TINV_PROTECTION_ENABLED
#define TINV_SFRA_TYPE TINV_SFRA_CURRENT
#define TINV_SFRA_AMPLITUDE (float32_t)TINV_SFRA_INJECTION_AMPLITUDE_LEVEL2
#define TINV_POWERFLOW_MODE TINV_INVERTER_MODE
#define TINV_DC_CHECK 0
#define TINV_SPLL_TYPE TINV_SPLL_DDSRF
#endifIn this check, the software is run on the hardware, or the HIL platform, or both.
See the hardware test setup section for actual details of the equipment used for configuring the test. At this time, do not supply any high-voltage power to the board.
main.cfg and select lab3 in the project options. The compensator style (PI compensator) and the tuning loop (current loop) are automatically populated. Now click the run compensation designer icon and the compensation designer tool launches, with the model of the current loop plant with parameters specified on the powerSUITE page.#define TINV_GI_PI_KP ((float32_t)0.0996509341)
#define TINV_GI_PI_KI ((float32_t)0.0070057718)lab3.js file to populate the watch variables in the CCS window.TINV_fanSet function in the CCS watch window during the debug session.TINV_neutralRelaySet. The auxiliary power supply draws close to 600 mA.TINV_clearPWMTrip = 1, to clear the PWM trip signal. Now the switching action begins and sinusoidal voltages start appearing at the output. At this point, the auxiliary power supply draws close to 800 mA.TINV_clearPWMTrip is set, the TINV_closeGiLoop variable is enabled and closed current loop action begins. TINV_idRef_pu is the current command reference and by default this reference is populated to a value of 0.005 pu at start-up. Slowly vary this to increase the output AC voltage and observe measured current tracks the commanded value.TINV_idRef_pu in the watch window is at low setting (0.005 pu) before proceeding to close the current loop in Lab 3.id_ref to 0.06 pu at 800-V input voltage to improve output power to 0.9 kW, approximately 300 W per phase. Figure 3-11 shows the power analyzer and scope waveform.
.cfg page, click on the SFRA icon. The SFRA GUI pops up.#define TINV_GV_PI_KP ((float32_t) 1.9979056049)
#define TINV_GV_PI_KI ((float32_t) 0.0041887902)
Figure 3-12 Inverter SFRA Plant Response for Current Loop
Figure 3-13 Inverter SFRA Loop Response for Current Loop