Use the following steps to run the code for Lab 4:
- Use the test setup shown in Section 3.3.1.
- Run the project by clicking
from the menu bar. - In the watch view, check if the
BT4CH_InputVoltageSense_V is from 12V to 15V in the Expression Window. - Set the following parameters from the Expression Window:
- Set the
BT4CH_userParam_chX->Relay_ON to 1 to enable the output relay BT4CH_userParam_chX->iref_A =
8.5BT4CH_userParam_chX->vrefCharge_V = 0.075- Set the
BT4CH_userParam_chX->en_bool = 1 - See Figure 3-28 for the Expression Window settings
- The
BT4CH_measureVI_chX variable shows the output current and voltage of the DC/DC converter. Vbatsense_V display value is close to vrefCharge_V with ±0.5mV error. - Figure 3-29 shows the SFRA setup to measure Closed-Loop Voltage Control Frequency
Response.
- 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 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 select the Connect button.
- The SFRA GUI connects to the device. An SFRA
sweep can now be started by clicking the Start Sweep button. The complete
SFRA sweep takes a few minutes to finish. Once complete, a graph with the
measurement appears, as shown in Figure 3-30.
- 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->iref_A = 0
BT4CH_userParam_chX->vrefCharge_V = 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