Tektronix DG2030 User Manual page 111

Data generator
Hide thumbs Also See for DG2030:
Table of Contents

Advertisement

Edit Menu
CSV Data Format
3 14
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The DG2030 can import vector data from the built-in floppy drive using a simple
ASCII Comma Separated Variable (CSV) format. This section defines how the
data is formatted for importing into the DG2030. The CSV format is defined as
follows:
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
<1DB0><Comma><1DB1><Comma>.....<1DBx><CR>
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
<2DB0><Comma><2DB1><Comma>.....<2DBx><CR>
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
...
...
...
...
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
...
...
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
<yDB0><Comma><yDB1><Comma>.....<yDBx><CR>
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á
When formatting data in the CSV format, note the following:
H Each data byte is defined by the ASCII character: zero <0>, ASCII 48 or one
<1>, ASCII 49
H Each data byte is separated by the ASCII character: comma <,> (ASCII 44),
space (ASCII 32), or TAB (ASCII 9)
H Each line is terminated with the ASCII character: carriage return <CR>,
ASCII 13
H The number of bits in a line defines the word width. For example, if the first
line consists of pattern: 1,0,1,1 then the word width is 4 bits wide
H The number of lines in the file defines the number of words in the pattern.
For example, 10 lines defines 10 data words.
H The DG2030 CSV format file is a DOS compatible file formatted as defined
above with a .CSV file extension.
CSV Format Example. To export a 8-bit pattern that is 3 words long, create the
following data, as an example, and save it using filename: PATTERN.CSV. This
can be created using a spreadsheet program, a text editor, or a custom filter
program to convert data from one format to another.
1,0,1,0,1,0,0,1<CR>
1,0,0,0,1,1,0,1<CR>
0,0,1,0,1,0,1,1<CR>
NOTE. Bit pattern data must have at least 90 words. Above pattern data can not
be read into the DG2030. Note that this is a simple example.
Á Á Á Á Á Á Á Á Á Á
!
Á Á Á Á Á Á Á Á Á Á
defines the width of the pattern
Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á
!
Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á
...
Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á
!
the depth of the pattern
Á Á Á Á Á Á Á Á Á Á
Á Á Á Á Á Á Á Á Á Á
The number of bits defines (x)
Second word
The number of lines (y) defines
DG2030 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dg2040

Table of Contents