3 Driver Programming API
The API is a DLL with C linkage.
The functions provided by the DLL are declared in
Ndigo interface.h
.
3.1 Constants
#define
NDIGO CHANNEL COUNT 4
The number of analog input channels.
#define
NDIGO GATE COUNT 4
The number of gating blocks.
#define
NDIGO TRIGGER COUNT 16
The number of triggers. Two per analog input, one per digital input plus some specials.
#define
NDIGO ADD TRIGGER COUNT 6
Additional set of triggers for digital inputs.
3.2 Initialization
int
ndigo count devices(
int
*error code
,
char
**error message)
Return the number of boards that are supported by this driver in the system.
int
ndigo get default init parameters(
ndigo init parameters
*init)
Get a set of default parameters to feed into
ndigo init()
. This must always be used to initialize
the
ndigo init parameter structure
.
ndigo device
*ndigo init(
ndigo init parameters
*params
,
int
*error code
,
char
**error message)
Open and initialize the Ndigo board with the given index. With
error code
and
error message
the user must provide pointers where to buffers where error information should be written by
the driver. The buffer for the error message must by at least 80 chars long.
Params is a structure of type
ndigo init parameters
that must be completely initialized.
int
ndigo close(
ndigo device
*device)
Finalize the driver for this device.
3.2.1 Structure ndigo init parameters
int
version
Must be set to
NDIGO API VERSION
int
card index
The index in the list of Ndigo5G boards that should be initialized. There might be multiple
25
Summary of Contents for Ndigo5G-10
Page 2: ......
Page 3: ......
Page 7: ......
Page 45: ...cronologic GmbH Co KG 40 Ndigo5G User Guide...
Page 54: ...on page 47 cronologic GmbH Co KG 49 Ndigo5G User Guide...