AI Data Format Previous topicNext topicFirst topicLast topic

AI Data Format

This appendix lists the AI data format for the cards performing analog input operation, as well as the calculation methods to retrieve the A/D converted data and the channel where the data read from.
 
Card Type Data Format AI type Value calculation
* channel no. (CH#) 
* A/D converted data (ND) * Value returned from AI function (OD)
PCI-9111DG Every 16-bit signed integer data:
D11 D10 D9 ................... D1 D0 C3 C2 C1 C0
where D11, D10, ... , D0 : A/D converted data
C3, C2, C1, C0 : converted channel no.
One-Shot AI
Continuous AI
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 : A/D converted data
One-Shot AI
Continuous AI
ND = OD
PCI-9112/cPCI9112 Every 16-bit unsigned integer data:
D11 D10 D9 ................... D1 D0 C3 C2 C1 C0
where D11, D10, ... , D0 : A/D converted data
C3, C2, C1, C0 : converted channel no.
One-Shot AI
Continuous AI
CH# = OD & 0x0F
ND = OD >>4 or
ND = OD/16
PCI-9113 Every 16-bit unsigned integer data (including 12-bit unsigned A/D data):
B15 … B12 D11 D10 ... D1 D0
where D11, D10, ... , D0 : A/D converted data
B15 ~ B12: don't care
One-Shot AI ND = OD & 0x0FFF
PCI-9114 Every 16-bit signed integer data:
D15 D14 ... D1 D0
where D15, D14, ... , D0 : A/D converted data
One-Shot AI ND = OD
PCI-9113 Every 32-bit unsigned integer data (including 12-bit unsigned A/D data):
B31… B21 C4 C3 C2 C1 C0 B15 … B12 D11 D10 ... D1 D0
where D11, D10, ... , D0 : A/D converted data
C3, C2, C1, C0 : converted channel no.
B31 ~ B21 & B15 ~ B12: don't care
Continuous AI CH# = (OD >>16) & 0x1F
ND = OD & 0x0FFF
PCI-9114 Every 32-bit unsigned integer data (including 16-bit signed A/D data):
B31 … B21 C4 C3 C2 C1 C0 D15 D14 ... D1 D0
where D15, D14, ... , D0 : A/D converted data
C3, C2, C1, C0 : converted channel no.
B31 ~ B21: don't care
Continuous AI CH# = (OD >>16) & 0x1F
ND = OD & 0xFFFF
cPCI-9116 Every 16-bit signed integer data :
D15 D14 D13... … ... D1 D0
where D15, D14, ... , D0 : A/D converted data
One-Shot AI
Continuous AI
ND = OD
PCI-9118HR Every 16-bit signed integer data:
D15 D14 D13 ................... D1 D0
where D15, D14, ... , D0 : A/D converted data
One-Shot AI
Continuous AI
ND = OD
PCI-9118DG/HG Every 16-bit unsigned integer data:
D11 D10 D9 ................... D1 D0 C3 C2 C1 C0
where D11, D10, ... , D0 : A/D converted data
C3, C2, C1, C0 : converted channel no.
One-Shot AI
Continuous AI
CH# = OD & 0x0F
ND = OD >>4 or
ND = OD/16
PCI-9812/cPCI9812 Every 16-bit signed integer data:
D11 D10 D9 ................... D1 D0 b3 b2 b1 b0
where D11, D10, ... , D0 : A/D converted data
b2, b1, b0 : Digital Input data.
b3: trigger detection flag
Continuous AI ND = OD >>4 or
ND = OD/16
PCI-9810/cPCI9810 Every 16-bit signed integer data:
D9 D8 D7 ...........…... D1 D0 b5 b4 b3 b2 b1 b0
where D9, D8, ... , D0 : A/D converted data
b2, b1, b0 : Digital Input data.
b3: trigger detection flag
Continuous AI ND = OD >>6 or
ND = OD/64