Sdk reference, Initialization/cleanup/enumeration functions, S2263_open – Sensoray 2263 User Manual

Page 10: S2263_close, S2263_getnumdevices

Advertising
background image

SDK Reference

All API functions are declared using the following definition and the __stdcall

calling convention:
#define MID2263_API extern "C" __declspec(dllimport)

For example,

MID2263_API int __stdcall

S2263_Open

(void);

All API functions return a value of type int, which is set to 0 on success, or a

negative value if error (see mid2263types.h for error codes list).

Initialization/Cleanup/Enumeration Functions

S2263_Open

MID2263_API

int

__stdcall S2263_Open (int board_index);

board_index

Zero based index of a 2263 board (or -1 for all boards).

Must be called before any other API functions are called. If called with a -1
parameter, all 2263 boards in the system will be available after the call.

S2263_Close

MID2263_API int

__stdcall

S2263_Close (int board_index);

board_index

Zero based index of a 2263 board (or -1 for all boards).

Must be called before application terminates for proper clean-up of the SDK
and SDK objects when SDK opened with S2263_Open.

S2263_GetNumDevices

MID2263_API int __stdcall S2263_GetNumDevices (

int

*NumDevices);

Retrieves the number of devices in the system. Only valid after S2263_Open is
called.
NumDevices

Address of a variable accepting the number of devices.

10

Advertising