4.14 Command Line Interface Tab
TLV320AIC3007EVM Software
www.ti.com
A simple scripting language controls the TAS1020 on the USB-MODEVM from the LabView™-based PCsoftware. The main program controls, described previously, do nothing more than write a script which isthen handed off to an interpreter that sends the appropriate data to the correct USB endpoint. Becausethis system is script based, provision is made in this tab for the user to view the scripting commandscreated as the controls are manipulated, as well as load and execute other scripts that have been writtenand saved (see Figure 29 ). This design allows the software to be used as a quick test tool or to helpprovide troubleshooting information in the rare event that the user encounters problem with this EVM.
Figure 29. Command Line Interface Tab
A script is loaded into the command buffer, either by operating the controls on the other tabs or by loadinga script file. When executed, the return packets of data which result from each command are displayed inthe Read Data array control. When executing several commands, the Read Data control shows only theresults of the last command. To see the results after every executed command, use the logging functiondescribed in the following text.
The File menu (Figure 30 ) provides some options for working with scripts. The first option, OpenCommand File..., loads a command file script into the command buffer. This script then can be executedby pressing the Execute Command Buffer button.
The second option is Log Script and Results..., which opens a file save dialog box. Choose a location for alog file to be written using this file save dialog. When the Execute Command Buffer button is pressed, thescript runs, and the script along with resulting data read back during the script, is saved to the filespecified. The log file is a standard text file that can be opened with any text editor and looks much likethe source script file, but with the additional information of the result of each script command executed.
The third menu item is a submenu of Recently Opened Files. This is simply a list of script files that havepreviously been opened, allowing fast access to commonly used script files. The final menu item is Exit,which terminates the TLV320AIC3007EVM software.
30 TLV320AIC3007EVM-K SLAU286 – June 2009Submit Documentation Feedback