Sdk functions – Sensoray 819 Windows SDK User Manual
Page 8

SDK Functions
All functions returning an error code (type ECODE) return ECODE_OK, if success. Any other value
indicates an error.
S819_Enumerate
ECODE S819_Enumerate(int *nChans)
Enumerates existing 819 boards and sets nChans to the number of available capture channels. This
function needs to be called before any other SDK function.
S819_SetMode
ECODE S819_SetMode(
int
chan, S819_CHAN *s819chan)
If the argument chan is between 1 and the number of channels detected by S819_Enumerate, the
function sets capture mode for a specified channel (chan) based on the values set in s819chan.
If chan = 0 the structure pointed to by s819chan is filled with default values.
S819_CreateCnode
HCNODE S819_CreateCnode(void)
Creates a new empty capture node. Streams are attached to a node by using S819_AttachStreams
function.
Returns: a capture node handle or NULL in case of an error.
S819_DeleteCnode
void S819_DeleteCnode(HCNODE hCnode)
Deletes a capture node.
S819_AttachStreams
ECODE S819_AttachStreams(HCNODE hCnode,
int
chan,
int
streams)
Attaches stream(s) produced by a selected channel to a capture node.
hCnode
a valid capture node handle.
chan
selected channel number (1-based).
8