
Example Applications
•
HOST PC - transmitted to a host PC via USB OTG virtual serial port
•
NONE - the data will only be displayed and not stored
SLEEP - select whether or not the board sleeps between samples. Sleep mode is allowed
when storing to flash at with a period of 1 second or longer.
CLOCK - allows setting of internal time-of-day clock that is used for time stamping of the
sampled data
Use the START menu to start the data logger running. It will begin collecting and storing the data.
It will continue to collect data until stopped by pressing the left button or select button.
While the data logger is collecting data and it is not configured to sleep, a simple strip chart showing
the collected data will appear on the display. If the data logger is configured to sleep, then no strip
chart will be shown.
If the data logger is storing to internal flash memory, it will overwrite the oldest data. If storing to a
USB memory device it will store data until the device is full.
The VIEW menu allows viewing the values of the data sources in numerical format. When viewed
this way the data is not stored.
The SAVE menu allows saving data that was stored in internal flash memory to a USB stick. The
data will be saved in a text file in CSV format.
The ERASE menu is used to erase the internal memory so more data can be saved.
When the EK-LM4F232 board running qs-logger is connected to a host PC via the USB OTG
connection for the first time, Windows will prompt for a device driver for the board. This can be found
in /ti/TivaWare_C_Series-x.x/windows_drivers assuming you installed the software in the default
folder.
A companion Windows application, logger, can be found in the /ti/TivaWare_C_Series-x.x/tools/bin
directory. When the data logger’s STORAGE option is set to "HOST PC" and the board is connected
to a PC via the USB OTG connection, captured data will be transfered back to the PC using the
virtual serial port that the EK board offers. When the logger application is run, it will search for the
first connected EK-LM4F232 board and display any sample data received. The application also
offers the option to log the data to a file on the PC.
2.12
SD card using FAT file system (sd_card)
This example application demonstrates reading a file system from an SD card. It makes use of
FatFs, a FAT file system driver. It provides a simple command console via a serial port for issuing
commands to view and navigate the file system on the SD card.
The first UART, which is connected to the USB debug virtual serial port on the evaluation board, is
configured for 115,200 bits per second, and 8-N-1 mode. When the program is started a message
will be printed to the terminal. Type “help” for command help.
For
additional
details
about
FatFs,
see
the
following
site:
http://elm-chan.org/fsw/ff/00index_e.html
February 22, 2017
11