5 s826_adctrigmodewrite, S826_adctrigmodewrite – Sensoray 826 User Manual
Page 23
int S826_AdcSlotlistRead(
uint board, // board identifier
uint *slotlist // conversion slot list
);
Parameters
board
826 board number. This must match the settings of the board's dip switches as described in section 2.2.
slotlist
Pointer to a buffer that will receive the slotlist. In the received value, bits 0 to 15 correspond to slots 0 to 15. For each
bit: '1' = active (slot will be digitized during bursts), '0' = inactive (slot will be skipped during bursts).
Return Values
If the function succeeds, the return value is zero.
If the function fails, the return value is an error code.
Remarks
This function returns the current slotlist, which was previously programmed by S826_AdcSlotlistWrite or cleared by a
board reset.
5.3.5 S826_AdcTrigModeWrite
The S826_AdcTrigModeWrite function programs the ADC triggering mode.
int S826_AdcTrigModeWrite(
uint board, // board identifier
uint trigmode // hardware trigger mode
);
Parameters
board
826 board number. This must match the settings of the board's dip switches as described in section 2.2.
trigmode
Hardware trigger configuration:
Bit
Function
Description
31-8
Reserved
Set all bits to 0.
7
Trigger enable
Set to 1 to enable hardware triggering (triggered mode), or 0 to disable hardware triggering (continuous
mode).
6
Trigger polarity
1 selects rising edge; 0 selects falling edge. This is ignored if hardware triggering is disabled.
5-0
Trigger source
Hardware trigger signal source (ignored if hardware triggering is disabled):
0-47 = DIO channel 0-47.
48-53 = ExtOut signal from counter channel 0-5.
54-59 = Virtual digital output channel 0-5.
Return Values
If the function succeeds, the return value is zero.
If the function fails, the return value is an error code.
Remarks
The settings established by this function take effect upon the next conversion burst and remain in effect until changed
by another call to this function or a board reset. Hardware triggering is disabled upon board reset.
826 Instruction Manual
18
Analog Inputs