xPCIe-3521 API
xPCIe-3521 Analog outputs functions

Functions

_INT_ i_PCIe3521_Write1AnalogOutput (HANDLE h_DeviceHandle, UCHAR uc_Channel, UCHAR uc_Polarity, USHORT us_Value)
 
_INT_ i_PCIe3521_WriteMoreAnalogOutputs (HANDLE h_DeviceHandle, UCHAR uc_ChannelNbr, PUCHAR puc_Channel, PUCHAR puc_Polarity, PUSHORT pus_Value)
 

Detailed Description

Function Documentation

_INT_ i_PCIe3521_Write1AnalogOutput ( HANDLE  h_DeviceHandle,
UCHAR  uc_Channel,
UCHAR  uc_Polarity,
USHORT  us_Value 
)

Set the value of one analog output

Parameters
[in]h_DeviceHandleHandle of the board
[in]uc_ChannelDefine the channel to set
[in]uc_PolarityDefine the polarity for the channel (PCIe3521_OUTPUT_MODE_UNIPOLAR or PCIe3521_OUTPUT_MODE_BIPOLAR)
[in]us_ValueValue to be set on the analog output
Returns
0 : No Error
-1 : The device handle parameter is wrong
-3 : Wrong channel
-4 : Wrong polarity
-5 : Error while calling IOCTL function (wrong handle ?)
_INT_ i_PCIe3521_WriteMoreAnalogOutputs ( HANDLE  h_DeviceHandle,
UCHAR  uc_ChannelNbr,
PUCHAR  puc_Channel,
PUCHAR  puc_Polarity,
PUSHORT  pus_Value 
)

Set the value of several analog outputs

Parameters
[in]h_DeviceHandleHandle of the board
[in]uc_ChannelNbrDefine the number of channels to set
[in]puc_ChannelPointer to an array containing the list of channels to be set
[in]puc_PolarityPointer to an array containing the list of polarities for the defined channels (PCIe3521_OUTPUT_MODE_UNIPOLAR or PCIe3521_OUTPUT_MODE_BIPOLAR)
[in]pus_ValuePointer to an array containing the values to be set
Returns
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong channel count
-3 : Wrong channel
-4 : Wrong polarity
-5 : Error while calling IOCTL function (wrong handle ?)