PA 358
Technical description Chapter 9
38
9.2.2 Analog
output
channels
1) i_PA358_Write1AnalogOutput (...)
Syntax:
<Return value> = i_PA358_Write1AnalogValue
(BYTE
b_BoardHandle,
BYTE
b_ChannelNbr,
UINT
ui_ValueToWrite)
Parameter:
BYTE
b_BoardHandle
Handle of board
PA 358
BYTE
b_ChannelNbr
Channel number (1 to 8)
UINT
ui_ValueToWrite
Analog output value to be writen
(0 to 4095)
Task:
Writes an analog value (
ui_ValueToWrite
) on the channel
b_ChannelNbr
.
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The channel number is wrong
-3: The output value is too high
2) i_PA358_WriteSevAnalogOutput (...)
Syntax:
<Return value> = i_PA358_WriteMoreAnalogValue
(BYTE
b_BoardHandle,
BYTE
b_FirstChannelNbr,
BYTE
b_NbrOfChannel,
PUINT pui_ValueArray)
Parameter:
BYTE
b_BoardHandle
Handle of board
PA 358
BYTE
b_FirstChannelNbr
Number of the first channel (1 to 8)
BYTE
b_NbrOfChannel
Number of channels you wish to
write
on
PUINT
pui_ValueArray
Table of analog output values on
which you want to write
Task:
Writes several analog values on several channels.
The variable
b_FirstChannelNbr
defines the first channel.
The variable
b_NbrOfChannel
defines the number channels.