The Latte program runs a number of python scripts in the background to capture and display data from the EVM.
These scripts allow for initialization of the device including loading calibration data from the EVM flash memory,
launching a live view window with measurement plot and readings, and additional functionality such as reading
from the flash and selecting a specific LED current for the device to use. For advance users or users looking for
more flexibility when using the OPT3101EVM these python scripts are available in an integrated development
environment (IDE) window that is minimized when TI-Latte is launched. The IDE window allows advanced users
to customize the existing scripts or write new scripts.
After launching Latte, expand the OPT3004DTS directory on the left hand side of the window under Files
by clicking the triangle to the left of the directory name. This displays the OPT3004DTSEVM folder. Further
expanding the OPT3004DTSEVM folder will display all the example scripts as shown in the figure.
devInit.py
Open the devInit.py script by clicking on the corresponding file in the OPT3004DTSEVM folder on the left side of
the screen. This displays the contents of the script on the center of the window. With devInit.py still selected in
TI-Latte, click Run>Buffer from the top menu bar of TI-Latte (or press F5) to run the script. Once completed, the
live view GUI is opened in a new window. More details on the live view GUI are given in the following section.
Additional info is also displayed in the log window in the lower left- hand corner of the main window.
04-launchGUI.py
A liveview GUI window is launched when running the devInit.py script. This allows data from the OPT3004 to be
viewed on a graph in real time. The GUI is created in the launchGUI.py example script. When running devInit.py,
the launchGUI.py script is automatically run. However, if the GUI window is closed it can be re-launched by
directly running the launchGUI.py script. To do this, select the launchGUI.py script and click Run>Buffer or press
F5. Figure 4-13 shows the live GUI plot.
OPT3004DTSEVM Software
OPT3004DTSEVM User's Guide
19
Copyright © 2021 Texas Instruments Incorporated