User`s manual

40
DAQMaster
.DAT File Format
Data Block
The data block forms the second part of the .DAT file. The data is
written to file in a 16-bit binary format with the lower byte first (little
endian). For example, the value 0x1234 is written to disk with 34
first followed by 12. The total length of the data block depends on
the data width and the total data count.
Card Type Data Format Value calculation*
PCI-9111DG
Every 16-bit signed integer data:
D11 D10 D9...D1 D0
C3 C2 C1 C0
Where D11, D10...D0 is the A/D data
and C3, C2, C1, C0 is the channel
numbers.
CH# = OD & 0x0F ND
= OD >>4 or ND =
OD/16
PCI-9111HR
Every 16-bit signed integer data:
D15 D14 D13...D1 D0
Where D15, D14...D0 is the A/D data.
ND = OD
PCI-9112
cPCI9112
Every 16-bit unsigned integer data:
D11 D10 D9...D1 D0 C3 C2 C1 C0
Where D11, D10...D0 is the A/D data,
and C3, C2, C1, C0 is the channel
number.
CH# = OD & 0x0F ND
= OD >>4 or ND =
OD/16
PCI-9113
Every 32-bit unsigned integer data
(including 12-bit unsigned A/D data):
B31...B21 C4...C0 B15...B12 D11
D10... D0
Where D11, D10...D0 is the A/D data,
C4, C3, C2, C1, C0 is the channel
number, and B31 to B21 & B15 to
B12 is unused.
CH# = (OD >>16) &
0x1F ND = OD &
0x0FFF