NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

User:DVT/UserDocumentation/DVT Component Reference Guide/DVT CSV Sources

From Texas Instruments Wiki
Jump to: navigation, search

CSV File Reader[edit]

Overview[edit]

Use the CSV File Reader to read comma separated files that includes a one line header (see below for format) describing the fields. It can also be used to import data exported from a DVT table view (as exported data is compliant to the format).

Input Channel[edit]

None

Output Channel[edit]

The CSV File Reader has one output channel which streams a record for each comma separated record in the input file. The comma separated record is decoded according to the information specified in the file header.

Properties[edit]

Property Description Type Default
File Name The text file from which data is imported File
Name Displays the unique name for the component. Name can be changed through GSB Text
Separator Not supported text ,
Mode Not supported List File


Header Format[edit]

Each field in the header is comma seperated. Each field is made up of 2 parts with a ':' in between. The first is the name of the Field and the second is the type. Below is the list of types supported

 string
 boolean
 ubyte
 ushort
 integer
 uinteger
 ulong
 float
 

Example[edit]

  • Input


The csv file, mytrace.csv, having the following lines

  
  Time:integer,Priority:integer,Event:string,Size:integer,
  1000,0,ReadCmd,8,
  1100,0,ReadResp,8,
  1200,2,WriteCmd,8,
  1300,3,WriteCmd,8,
  
  • Properties

These are properties changed from the default values

Property Value
File Name mytrace.csv


  • Output


Time Priority Event Size
1000 0 ReadCmd 8
1100 0 ReadResp 8
1200 2 WriteCmd 8
1300 3 WriteCmd 8

Example Solution[edit]

<install>\dvt\Examples\CSVFileReader\CSVFileReader.sol

Also See[edit]

TODO: Add references to tutorials in which component is used

Enhancement Requests[edit]

Gforge Tracker ID: 731

Known Issues[edit]

Gforge Tracker ID: 732, 733, 734