xPCI-3009 API
PCI-3009 analog input initialisation functions

Functions

_INT_ i_PCI3009_AnalogInputInitMode (DWORD_ dw_BoardHandle, BYTE_ b_SingelDiffMode)
 
_INT_ i_PCI3009_AnalogInputInitChannel (DWORD_ dw_BoardHandle, BYTE_ b_Channel, BYTE_ b_Gain, BYTE_ b_Polarity)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_AnalogInputInitMode ( DWORD_  dw_BoardHandle,
BYTE_  b_SingelDiffMode 
)

Initialises the analog inputs single/diff mode

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_SingelDiffMode: PCI3009_SINGLE : Single mode
PCI3009_DIFF : Diff mode
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Wrong single/diff mode
-3: A conversion is already started
_INT_ i_PCI3009_AnalogInputInitChannel ( DWORD_  dw_BoardHandle,
BYTE_  b_Channel,
BYTE_  b_Gain,
BYTE_  b_Polarity 
)

Initialises one analog input channel

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_Channel: Channel number of the input to be initialise
[in]b_Gain: Gain factor of the analog input
  • PCI3009_1_GAIN : Gain = 1
  • PCI3009_2_GAIN : Gain = 2
  • PCI3009_5_GAIN : Gain = 5
  • PCI3009_10_GAIN: Gain = 10
[in]b_Polarity: Polarity of the analog input:
  • PCI3009_UNIPOLAR: 0V - +10V
  • PCI3009_BIPOLAR: -10V - +10V
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Single / Diff not initialized
-3: Wrong channel number
-4: Wrong gain
-5: Wrong polarity
-6: A conversion is already started