xPCI-3009 API
PCI-3009 analog input auto refresh functions

Functions

_INT_ i_PCI3009_AnalogInputGetAutoRefreshChannelPointer (DWORD_ dw_BoardHandle, BYTE_ b_Channel, PDWORD_ *ppdw_Ring0Pointer, PDWORD_ *ppdw_Ring3Pointer)
 
_INT_ i_PCI3009_AnalogInputGetAutoRefreshModulPointer (DWORD_ dw_BoardHandle, PDWORD_ *ppdw_Ring0Pointer, PDWORD_ *ppdw_Ring3Pointer)
 
_INT_ i_PCI3009_AnalogInputGetAutoRefreshCounterPointer (DWORD_ dw_BoardHandle, PDWORD_ *ppdw_Ring0Pointer, PDWORD_ *ppdw_Ring3Pointer)
 
_INT_ i_PCI3009_AnalogInputStartAutoRefresh (DWORD_ dw_BoardHandle, WORD_ w_ChannelMask, BYTE_ b_ConvertTimeUnit, WORD_ w_ConvertTime)
 
_INT_ i_PCI3009_AnalogInputReadAutoRefreshValueAndCounter (DWORD_ dw_BoardHandle, PDWORD_ pdw_ReadValue, PDWORD_ pdw_CycleIndex)
 
_INT_ i_PCI3009_AnalogInputStopAutoRefresh (DWORD_ dw_BoardHandle)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_AnalogInputGetAutoRefreshChannelPointer ( DWORD_  dw_BoardHandle,
BYTE_  b_Channel,
PDWORD_ *  ppdw_Ring0Pointer,
PDWORD_ *  ppdw_Ring3Pointer 
)

Get the ring 0 and ring 3 address from selected analog input auto refresh channel

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_Channel: Channel number to get the auto refresh address pointer
[out]ppdw_Ring0Pointer: Return the ring 0 auto refresh channel address pointer
[out]ppdw_Ring3Pointer: Return the ring 3 auto refresh channel address pointer
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Wrong channel number
_INT_ i_PCI3009_AnalogInputGetAutoRefreshModulPointer ( DWORD_  dw_BoardHandle,
PDWORD_ *  ppdw_Ring0Pointer,
PDWORD_ *  ppdw_Ring3Pointer 
)

Get the ring 0 and ring 3 address from analog input auto refresh modul

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]ppdw_Ring0Pointer: Return the ring 0 auto refresh modul address pointer
[out]ppdw_Ring3Pointer: Return the ring 3 auto refresh modul address pointer
Returns
0: No error
-1: The handle parameter of the board is wrong
_INT_ i_PCI3009_AnalogInputGetAutoRefreshCounterPointer ( DWORD_  dw_BoardHandle,
PDWORD_ *  ppdw_Ring0Pointer,
PDWORD_ *  ppdw_Ring3Pointer 
)

Get the ring 0 and ring 3 address from analog input auto refresh counter

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]ppdw_Ring0Pointer: Return the ring 0 auto refresh counter address pointer
[out]ppdw_Ring3Pointer: Return the ring 3 auto refresh counter address pointer
Returns
0: No error
-1: The handle parameter of the board is wrong
_INT_ i_PCI3009_AnalogInputStartAutoRefresh ( DWORD_  dw_BoardHandle,
WORD_  w_ChannelMask,
BYTE_  b_ConvertTimeUnit,
WORD_  w_ConvertTime 
)

Starts Initialise and start an analog input auto refresh conversion

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]w_ChannelMask: Channel mask to acquire. D0 0: Channel 0 not used
1: Channel 0 used
D1 0: Channel 1 not used
1: Channel 1 used
.
.
.
D15 0: Channel 15 not used
1: Channel 15 used
[in]b_ConvertTimeUnit: Convert time unit for the analog input:
  • PCI3009_MICRO_SECOND :micros
  • PCI3009_MILLI_SECOND :ms
[in]w_ConvertTime: Convert time value for the analog input conversion
  • PCI3009_MICRO_SECOND :(10 to 65535)
  • PCI3009_MILLI_SECOND :(1 to 65535)
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: Wrong channels mask selection
-3: Wrong channel 0 mask
-4: Channel 0 not initialised
-5: Wrong channel 1 mask
-6: Channel 1 not initialised
-7: Wrong channel 2 mask
-8: Channel 2 not initialised
-9: Wrong channel 3 mask
-10: Channel 3 not initialised
-11: Wrong channel 4 mask
-12: Channel 4 not initialised
-13: Wrong channel 5 mask
-14: Channel 5 not initialised
-15: Wrong channel 6 mask
-16: Channel 6 not initialised
-17: Wrong channel 7 mask
-18: Channel 7 not initialised
-19: Wrong channel 8 mask
-20: Channel 8 not initialised
-21: Wrong channel 9 mask
-22: Channel 9 not initialised
-23: Wrong channel 10 mask
-24: Channel 10 not initialised
-25: Wrong channel 11 mask
-26: Channel 11 not initialised
-27: Wrong channel 12 mask
-28: Channel 12 not initialised
-29: Wrong channel 13 mask
-30: Channel 13 not initialised
-31: Wrong channel 14 mask
-32: Channel 14 not initialised
-33: Wrong channel 15 mask
-34: Channel 15 not initialised
-35: Wrong convert time unit
-36: Wrong convert time
-37: A conversion is already started
_INT_ i_PCI3009_AnalogInputReadAutoRefreshValueAndCounter ( DWORD_  dw_BoardHandle,
PDWORD_  pdw_ReadValue,
PDWORD_  pdw_CycleIndex 
)

Read the auto refresh values

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[out]pdw_ReadValue: Ret the actualy auto refresh channel value.
pdw_ReadValue [0] : Channel 0 value
pdw_ReadValue [1] : Channel 1 value
.
.
.
pdw_ReadValue [15] : Channel 15 value
[out]pdw_CycleIndex: Return the number of auto refresch cycles
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: No conversion started
_INT_ i_PCI3009_AnalogInputStopAutoRefresh ( DWORD_  dw_BoardHandle)

Stop an analog input auto refresh conversion

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: No conversion started