APCI-3660 API  1719
Analog output functions

Functions

int i_APCI3660_InitAnalogOutputChannel (uint8_t boardId, uint8_t channel, uint8_t samplingClockSelection, uint8_t speedMode)
 
int i_APCI3660_ReleaseAnalogOutputChannel (uint8_t boardId, uint8_t channel)
 
int i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun (uint8_t boardId, uint8_t channel, uint32_t onePeriodBufferSize, uint32_t *valueArray)
 
int i_APCI3660_StartAnalogOutputSignalGenerator (uint8_t boardId, uint8_t channel)
 
int i_APCI3660_StopAnalogOutputSignalGenerator (uint8_t boardId, uint8_t channel)
 

Detailed Description

Function Documentation

◆ i_APCI3660_InitAnalogOutputChannel()

int i_APCI3660_InitAnalogOutputChannel ( uint8_t  boardId,
uint8_t  channel,
uint8_t  samplingClockSelection,
uint8_t  speedMode 
)

Init analog output channel

Parameters
[in]boardIdTarget board index
[in]channelOutput channel to init
[in]samplingClockSelectionSampling clock selection (PCI3660_SAMPLING_CLOCK1 or PCI3660_SAMPLING_CLOCK2)
[in]speedModeSpeed mode selection
  • 0 : PCI3660_SINGLE_SPEED
  • 1 : PCI3660_DOUBLE_SPEED
  • 2 : PCI3660_QUAD_SPEED
Return values
0No error
-1The boardId is wrong
-2The channel is wrong
-3The samplingClockSelection is wrong
-4The speedMode is wrong
-5The board has not been initialized
-6An error occurred while calling i_APCI3660_CheckSpeedMode
-7The channel is already initialized
-8An error occurred while calling i_APCI3660_GetBoardInitialisation
-14An error occurred while calling the IOCTL function

◆ i_APCI3660_ReleaseAnalogOutputChannel()

int i_APCI3660_ReleaseAnalogOutputChannel ( uint8_t  boardId,
uint8_t  channel 
)

Release analog output channel

Parameters
[in]boardIdTarget board index
[in]channelChannel to release (0 or 1)
Return values
0No error
-1The boardId is wrong
-2The channel is wrong
-3The channel has not been initialized
-14An error occurred while calling the IOCTL function

◆ i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun()

int i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun ( uint8_t  boardId,
uint8_t  channel,
uint32_t  onePeriodBufferSize,
uint32_t *  valueArray 
)

Init analog output signal generator in free run mode

Parameters
[in]boardIdTarget board index
[in]channelChannel used (0 or 1)
[in]onePeriodBufferSizenumber of values to write, must be greater than 256
[in]valueArraybuffer with values
Return values
0No error
-1The boardId is wrong
-2The channel is wrong
-3The channel has not been initialized
-4The signal generator is running
-5dw_NbrOfValues must be lower as 256
-6Not enough place in the on board RAM
-7A cycle acquisition is running
-8A signal generator is running
-9Buffer allocation failed not enough memory
-10Buffer allocation failed address is null
-12Error while initializing the Buffer
-13Free buffer Error
-14An error occurred while calling the IOCTL function

◆ i_APCI3660_StartAnalogOutputSignalGenerator()

int i_APCI3660_StartAnalogOutputSignalGenerator ( uint8_t  boardId,
uint8_t  channel 
)

Start analog output signal generator

Parameters
[in]boardIdTarget board index
[in]channelChannel used
Return values
0No error
-1The boardId is wrong
-2The channel is wrong
-3The channel has not been initialized
-4The signal generator is already started for this channel
-14An error occurred while calling the IOCTL function

◆ i_APCI3660_StopAnalogOutputSignalGenerator()

int i_APCI3660_StopAnalogOutputSignalGenerator ( uint8_t  boardId,
uint8_t  channel 
)

Stop analog output signal generator

Parameters
[in]boardIdTarget board index
[in]channelChannel used
Return values
0No error
-1The boardId is wrong
-2The channel is wrong
-3The signal generator is not started
-14An error occurred while calling the IOCTL function