Use the following steps to run the
code for Lab 1:
- Use the test setup shown in Section 3.3.2.
- Run the project by clicking
from the menu bar.
- In the watch view, check if the
BT4H_InputVoltageSense_V is from 12V to 15V in the Expression
Window.
- Check the DRDY signal of
the external ADC if the frequency is 50kHz using an oscilloscope. Figure 3-13 shows the ADS9324 DRDY and CONVST signals when the MCU is running.
- Set the following parameters from
the Expression Window:
BT4CH_userParam_chX->dutyRef_pu = 0.02
- Set the
BT4CH_userParam_chX->en_bool = 1
- Set the
BT4CH_userParam_chX->Relay_ON to 1 to enable the
output relay
- See Figure 3-14 for the Expression Window settings
- The
BT4CH_measure_V_I_chX variable shows output current and
voltage of the DC/DC converter. Adjust the
BT4CH_userParam_chX->DutyRef_pu to make sure the current
is approximately 4.5A.
- Figure 3-15 shows the SFRA setup to extract the plant model for Open-Loop Current
Control. Click on the Run SFRA icon from the SYSCONFIG page. The SFRA GUI
pops up.
- Select the options for the device
on the SFRA GUI; for example, for F28P65x, select Floating Point. Click
on the Setup Connection button. In the pop-up window, uncheck the
boot-on-connect option and select an appropriate COM port. Click the OK
button. Return to the SFRA GUI and click the Connect button.
- The SFRA GUI connects to the
device. An SFRA sweep can now be started by clicking Start Sweep. The
complete SFRA sweep takes a few minutes to finish. Once complete, a graph with
the measurement appears, as shown in Figure 3-16.
- The Frequency Response Data is
saved in the project folder, under an SFRA Data folder, and is time-stamped with
the time of the SFRA run.
- After finishing the lab, set the
following parameters from the Expression Window to stop the code:
BT4CH_userParam_chX->dutyRef_pu = 0
- Set the
BT4CH_userParam_chX->en_bool = 0
- Set the
BT4CH_userParam_chX->Relay_ON to 0 to disable
the output relay
- Terminate the
program