xPCI-3009 API
PCI-3009 calibration potentiometer functions

Functions

_INT_ i_PCI3009_ReadPotis (DWORD_ dw_BoardHandle, BYTE_ b_PotisCs, PDWORD_ pdw_Value)
 
_INT_ i_PCI3009_WritePotis (DWORD_ dw_BoardHandle, BYTE_ b_PotisCs, DWORD_ dw_Value)
 
_INT_ i_PCI3009_SavePotis (DWORD_ dw_BoardHandle)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_ReadPotis ( DWORD_  dw_BoardHandle,
BYTE_  b_PotisCs,
PDWORD_  pdw_Value 
)

Read the value of the potentiometer

Parameters
[in]dw_BoardHandleHandle of PCI-3009 board
[in]b_PotisCsPoti chip select
000: ADC0 offset (bipolar)
001: ADC1 offset (bipolar)
010: ADC0 gain (bipolar)
011: ADC1 gain (bipolar)
100: ADC2 offset (unipolar)
101: ADC2 gain (unipolar)
110: Analog output +10V reference
111: Analog output -10V reference
[out]pdw_ValueValue of the selected potentiometer
Returns
0: No error
-1: The board handle parameter is wrong
-2: Calibrating this board is not allowed
_INT_ i_PCI3009_WritePotis ( DWORD_  dw_BoardHandle,
BYTE_  b_PotisCs,
DWORD_  dw_Value 
)

Write the value of the potentiometer

Parameters
[in]dw_BoardHandleHandle of PCI-3009 board
[in]b_PotisCsPoti chip select
000: ADC0 offset (bipolar)
001: ADC1 offset (bipolar)
010: ADC0 gain (bipolar)
011: ADC1 gain (bipolar)
100: ADC2 offset (unipolar)
101: ADC2 gain (unipolar)
110: Analog output +10V reference
111: Analog output -10V reference
[out]dw_ValueValue of the selected potentiometer
Returns
0: No error
-1: The board handle parameter is wrong
-2: Calibrating this board is not allowed
_INT_ i_PCI3009_SavePotis ( DWORD_  dw_BoardHandle)

Save the value of all the potentiometers in the EEPROM

Parameters
[in]dw_BoardHandleHandle of PCI-3009 board
Returns
0: No error
-1: The board handle parameter is wrong
-2: Calibrating this board is not allowed