Multi-Channel Import Examples

 

Data File A:

 

1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

 

Example 1. Header to import each column of Data File A as a separate Series:

 

DATASET Sample
VERSION Next
FILE_TYPE ASCII
NUM_SERIES 4
STORAGE_MODE INTERLACED
SERIES Series_A, Series_B, Series_C, Series_D
VERT_UNITS Volts, Amps, Watts, Pounds
HORZ_UNITS Secs
RATE 1000
DATA

 

After Import:

 

Series_A: 1, 1, 1, 1, 1
Series_B: 2, 2, 2, 2, 2
Series_C: 3, 3, 3, 3, 3
Series_D: 4, 4, 4, 4, 4

 

 

Example 2. Header to import only columns 2 and 4 of Data File A:

 

DATASET Sample
VERSION Next
FILE_TYPE ASCII
NUM_SERIES 2
NUM_COLUMNS 4
COLUMN 2, 4
STORAGE_MODE INTERLACED
SERIES Series_B, Series_D
VERT_UNITS Amps, Pounds
HORZ_UNITS Secs
RATE 1000
DATA

 

After Import:

 

Series_B: 2, 2, 2, 2, 2
Series_D: 4, 4, 4, 4, 4

 

 

Example 3. Header to import each row of Data File A as a separate Series:

 

DATASET Sample
VERSION Next
FILE_TYPE ASCII
NUM_SERIES 5
NUM_SAMPS 4
STORAGE_MODE SEQUENTIAL
SERIES Series_A, Series_B, Series_C, Series_D
SERIES Series_E
VERT_UNITS Volts, Amps, Watts, Pounds, Volts
HORZ_UNITS Secs
RATE 1000
DATA

 

After Import:

 

Series_A: 1, 2, 3, 4
Series_B: 1, 2, 3, 4
Series_C: 1, 2, 3, 4
Series_D: 1, 2, 3, 4
Series_E: 1, 2, 3, 4

 

Data File B:

 

Test 432-752
Test Date: 3 November, 2004
Sampling Rate: 12.5kHz
Gs
Unit Number - A327
P. Sampson Engineer
45E-12, 23E-12
31E-13, 18E-12
64E-13, 34E-11
38E-12, 83E-13
56E-12, 14E-11
76E-13, 42E-11
63E-11, 39E-12
29E-12, 33E-11

 

 

Example 4: Header to Import 2 channels from Data File B and Skip Over the Header in File

 

Note: DADiSP will scan those first 6 lines of the file, and return "Undefined Keyword, Exit from Import" messages unless you first use the command SETCONF("IMP_SKIP_HEADER", "1") to force DADiSP to skip over the header.

 

DATASET  SMALL
SERIES  Chan1, Chan2
NUM_SERIES  2
FILE_TYPE  ASCII
STORAGE_MODE INTERLACED
HORZ_UNITS  kHz
RATE  12.5
VERT_UNITS  Gs
DATE  11-03-2004
FILE_OFFSET  6
DATA

 

Data File C:

 

4, 2, 7
5, 1, 8, 3
2, 9
1, 4, 0
3, 5, 2, 1, 9

 

 

Example 5: Header File to Import each row of Data File C as a separate channel.

 

DATASET DATAC
VERSION NXT
NUM_SERIES 5
SERIES SERIES_1, SERIES_2, SERIES_3, SERIES_4, SERIES_5
NUM_SAMPS 3, 4, 2, 3, 5
STORAGE_MODE SEQUENTIAL
FILE_TYPE ASCII
COMMENT Importing Uneven Size Rows
DATA

 

After Import:

 

SERIES_1: 4, 2, 7
SERIES_2: 5, 1, 8, 3
SERIES_3: 2, 9
SERIES_4: 1, 4, 0
SERIES_5: 3, 5, 2, 1, 9

 

Data File D:

 

236.37 237.16 220.21 238.06 220.77 238.07
236.52 237.22 220.31 238.14 220.89 238.15
236.34 237.12 220.21 238.02 220.76 238.03
236.19 236.98 219.98 237.88 220.54 237.88
186.18 3.4863 2.7883 34.366 3.1362 220.89
231.30 236.42 2.3048 237.78 186.06 3.4864
2.7861 34.339 3.1363 28.763 220.31 238.06

 

 

Example 6: Header file to import the 3rd and 5th column of Data File D with individual scale factors of 0.1 and 3.2.

 

DATASET LINE1
VERSION 1
RATE 12
NUM_COLUMNS 6
NUM_SERIES 2
COLUMN 3, 5
SERIES Col3, Col5
STORAGE_MODE INTERLACED
FILE_TYPE ASCII
SLOPE 0.1, 3.2
DATA

 

After Import:

 

Col3: 22.0210, 22.0310, 22.0210, 21.9980, 0.2788, 0.2305, 0.3136
Col5: 706.4640, 706.8480, 706.4320, 705.7280, 10.0358, 595.3920, 704.9920