Use the following steps to run the
code for Lab 3:
- 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
BT4CH_InputVoltageSense_V
is from 12V to 15V in the
Expression Window. - Set the following parameters from the Expression Window:
- Set
BT4CH_userParam_chX->Relay_ON
to 1 to enable the
output relay BT4CH_userParam_V_I_chm->iref_A
= 15.0- Set the
BT4CH_userParam_chX->en_bool
= 1 - See Figure 3-23 for the Expression Window settings
- The
BT4CH_measureVI_chX
variable
shows output current and voltage of the DC/DC converter. Ibatsense_A display
value is close to iref_A with ±1mA error. - Figure 3-24 shows the SFRA setup to measure Open-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 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. A 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-25.
- 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.