APCI-3660 API  1717
Analog output functions

Functions

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

Detailed Description

Function Documentation

◆ i_APCI3660_InitAnalogOutputChannel()

uint8_t i_APCI3660_InitAnalogOutputChannel ( PDEVICE_DATA  deviceData,
uint8_t  channel,
uint8_t  samplingClockSelection,
uint8_t  speedMode 
)

Init analog output channel

Parameters
[in]deviceDataTarget board PCI device structure
[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
-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

◆ i_APCI3660_ReleaseAnalogOutputChannel()

uint8_t i_APCI3660_ReleaseAnalogOutputChannel ( PDEVICE_DATA  deviceData,
uint8_t  channel 
)

Release analog output channel

Parameters
[in]deviceDataTarget board PCI device structure
[in]channelChannel to release (0 or 1)
Return values
0No error
-2The channel is wrong
-3The channel has not been initialized

◆ i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun()

uint8_t i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun ( PDEVICE_DATA  deviceData,
uint8_t  channel,
uint32_t  onePeriodBufferSize,
uint32_t *  valueArray 
)

Init analog output signal generator in free run mode

Parameters
[in]deviceDataTarget board PCI device structure
[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
-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

◆ i_APCI3660_StartAnalogOutputSignalGenerator()

uint8_t i_APCI3660_StartAnalogOutputSignalGenerator ( PDEVICE_DATA  deviceData,
uint8_t  channel 
)

Start analog output signal generator

Parameters
[in]deviceDataTarget board PCI device structure
[in]channelChannel used
Return values
0No error
-2The channel is wrong
-3The channel has not been initialized
-4The signal generator is already started for this channel

◆ i_APCI3660_StopAnalogOutputSignalGenerator()

uint8_t i_APCI3660_StopAnalogOutputSignalGenerator ( PDEVICE_DATA  deviceData,
uint8_t  channel 
)

Stop analog output signal generator

Parameters
[in]deviceDataTarget board PCI device structure
[in]channelChannel used
Return values
0No error
-2The channel is wrong
-3The signal generator is not started