TI中文支持网
TI专业的中文技术问题搜集分享网站

关于TM4C123G的gs-logger例程

TM4C123G的gs-logger例程,是做什么用的啊?通过按钮读flash?

Michael Sun:

请参考工程下面readme文档的描述。想看具体功能,弄个板子跑一把。

Data Logger

This example application is a data logger. It can be configured to collectdata from up to 10 data sources. The possible data sources are:- 4 analog inputs, 0-20V- 9-axis I2C fusion data (3axis gyro, 3axis accelorometer, 3axis compass)- internal and external temperature sensors- processor current consumption

The data logger provides a menu navigation that is operated by the buttonson the board (up, down, left, right, select). The data loggercan be configured by using the menus. The following items can beconfigured:- data sources to be logged- sample rate- storage location- sleep modes- clock

Using the data logger:

Use the CONFIG menu to configure the data logger. The following choicesare provided:

– CHANNELS – enable specific channels of data that will be logged- PERIOD – select the sample period- STORAGE – select where the collected data will be stored: – FLASH – stored in the internal flash memory – USB – stored on a connected USB memory stick – 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. Sleepmode is allowed when storing to flash at with a period of 1 second orlonger.- CLOCK – allows setting of internal time-of-day clock that is used fortime stamping of the sampled data

Use the START menu to start the data logger running. It will begincollecting and storing the data. It will continue to collect data untilstopped by pressing the left button or select button.

While the data logger is collecting data and it is not configured tosleep, a simple strip chart showing the collected data will appear on thedisplay. If the data logger is configured to sleep, then no strip chartwill be shown.

If the data logger is storing to internal flash memory, it will overwritethe oldest data. If storing to a USB memory device it will store datauntil the device is full.

The VIEW menu allows viewing the values of the data sources in numericalformat. When viewed this way the data is not stored.

The SAVE menu allows saving data that was stored in internal flash memoryto 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 besaved.

When the board running qs-logger is connected to a host PC viathe USB OTG connection for the first time, Windows will prompt for a devicedriver for the board.This can be found in /ti/TivaWare_C_Series-x.x/windows_driversassuming 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'sSTORAGE option is set to "HOST PC" and the board is connected to a PCvia the USB OTG connection, captured data will be transfered back to the PCusing the virtual serial port that the EK board offers. When the loggerapplication is run, it will search for the first connected boardand display any sample data received. The application also offers theoption to log the data to a file on the PC.

huang123:

回复 Michael Sun:

好的 谢谢

赞(0)
未经允许不得转载:TI中文支持网 » 关于TM4C123G的gs-logger例程
分享到: 更多 (0)