User`s manual
38
DAQMaster
.DAT File Format
B .DAT File Format
This section describes the file format of .DAT files logged through
the file system. The data file has two parts: Header and Data
Block. The file structure is shown below:
Header
The header part records information related to the stored data with
total length of 60 bytes. The data structure of the file header is
enumerated below:
Header
DAQ data
Header (Total length: 60 bytes)
Elements Type
Size
(b)
Comments
ID
char 10 File ID, such as ADLINKDAQ1
card_type
short 2 Card type.
• PCI-9111DG: 20
• PCI-9111HR: 21
• PCI-9112: 22
• PCI-9113: 23
• PCI-9114DG: 24
• PCI-9114HG: 25
• PCI-9118DG: 26
• PCI-9118HG: 27
• PCI-9118HR: 28
• PCI-9810: 29
• PCI-9812: 30
• cPCI-9116: 32
num_of_channels
short 2 Total number of scanned channels
(1, 2)
channel_no
unsigned
char
1 Channel number where data was
read from. Available only for single
channel cards. (0, 1)
num_of_scan
long 4 Number of data for each channel.
data_width
short 2 Data width
• 0: 8 bits
• 1: 16 bits
• 2: 32 bits