ASCII file formats are easy to read and edit using any text editor. GTDIO ASCII files are much larger than compressed DIO or DI binary files. Two distinct ASCII formats are available: Raw ASCII and ASCII with Commands. Both types use ASC extensions.
Raw ASCII contains only data and is not board dependent. An ASCII with Command file (Command ASCII) contains the same information as a DIO file, such as data, board settings and commands. As a result, the Command ASCII format is board dependent.
DIOEasy and the GTDIO Driver permit 2-way conversion of DIO and DI files to ASCII file types.
Both ASCII file types can contain either DIO (vector) or DI (result) data, depending on the source file. Vector programs can run either Command ASCII or DIO files.
Raw ASCII files contain only data. Because they are not board dependent, they can be used to exchange data between any test platforms that use ASCII.
Raw ASCII files save all vector and result data, but not command nor board configuration data. Unsaved data components are lost when the source (DIO or DI) file is converted. Therefore, when a Raw ASCII file is loaded, it cannot run a vector or configure domain boards. Command and configuration data must be added. Raw ASCII files that are read can then be saved as DIO or DI files with added command and configuration data.
A Command ASCII file contains a header. It also contains channel, direction, label and command data. When a Command ASCII file is loaded, it configures the domain and runs just like a DIO vector file. A Command ASCII file can be freely converted back to native DIO and DI files when saved.
There are two ways to convert a DIO or DI file to ASCII: use DIOEasy or use the GTDIO driver.
1. The DIOEasy Method:
● Open the file in DIOEasy.
● In the file menu select ”Save As...”.
● In the “Save as type” combo box convert as follows:
For Raw ASCII, select “ASCII Files”.
For Command ASCII, select “ASCII Files w/Command”.
2. The GTDIO Method:
● Call the “DioFileConvert” command with the conversion mode set to either Raw ASCII or ASCII with Commands. Details for this method are found in the book "Programmer's Reference User's Guide in the section – "Functions Reference".
Table A-1 (on the following page) compares RAW and Command type ASCII files side by side. The first column contains header (Hnn) data or line numbers. RAW displays in the second column, Command in the last column. Both file formats were derived from the same one-board domain vector source file. The source file was created using DIOEasy. It has a default size of 16,384 steps, but only steps 4 to 21 contain valid channel data. This table is discussed further in following topics.
Note: Header lines in Table A-1 (marked with an H in column 1) appear only in Command ASCII files. Line 0 is the first line in a Raw ASCII file.
Line |
COMMAND ASCII FILE |
|
H0 H1 H2 H3 H4 H5 H6 H7 H8 H9 H10 H11 H12 H13 H14 H15 H16 H17 H18 H19 H20 H21 H22 H23 H24 |
Header forCommand ASCII FileOnly |
[General] ASCIIVersion=2.0 NumBoards=1 BoardType=GX5050 NumSteps=16384 |
[Company Information] Company= Author= Notes= |
||
[Setup] Frequency=5000000 ExtFrequency=5000000 ClockSource=2 StrobeDelay=1 StrobeSource=0 DEvent=0 DMask=0xFFFF PEvent=0 PMask=0xFFFF TEvent=0 TMask=0xFFFF TriggerMode=2 ExtEventSource=0 ExtEventXRegister=0 NumChannelsBoard0=32 |
||
|
|
|
H25 |
Raw ASCII File |
[Data] |
0 1 2 3 4 5 6 7 8 9 10 11 12
13 14 15 16 17 18 19 20 21 22 23 |
0000000000000000XXXXXXX0XXXX000X 0000000000000000XXXXXXX0XXXX000X 0000000000000000XXXXXXX0XXXX000X 0000000000000000XXXXXXX0XXXX000X 00000000000000000000000000000000 00000000000000000000000000000001 00000000000000000000000000010000 00000000000000000000000000010001 00000000000000000000000000100000 00000000000000000000000000100001 00000000000000000000000000110000 00000000000000000000000000110001 00000000000000000000000001000000
00000000000000000000000000010001 00000000000000000000000000100000 00000000000000000000000001000001 00000000000000000000000000000000 00000000000000000000000000010001 00000000000000000000000000100000 00000000000000000000000001000001 00000000000000000000000000000000 00000000000000000000000000000001 00000000000000000000000000000000 00000000000000000000000000000001 |
0000000000000000XXXXXXX0XXXX000X,OOOO 0000000000000000XXXXXXX0XXXX000X 0000000000000000XXXXXXX0XXXX000X 0000000000000000XXXXXXX0XXXX000X 00000000000000000000000000000000,OIOO,Begin 00000000000000000000000000000001 00000000000000000000000000010000 00000000000000000000000000010001 00000000000000000000000000100000 00000000000000000000000000100001,,ToExitLoop,JGT A 13 00000000000000000000000000110000 00000000000000000000000000110001 00000000000000000000000001000000,OOOO,LoopToBegin,L A 4 00000000000000000000000000010001,,NextSeg 00000000000000000000000000100000,OIOO 00000000000000000000000001000001,OOOO 00000000000000000000000000000000 00000000000000000000000000010001 00000000000000000000000000100000 00000000000000000000000001000001 00000000000000000000000000000000 00000000000000000000000000000001,,End,HLT 00000000000000000000000000000000 00000000000000000000000000000001 |
Comparing Raw and Command ASCII Files for One Board