Show/Hide Toolbars

Irinos Measurement System

Navigation: MscDll Reference Guide > API (programming interface) > Connection

MSC_OpenDevice

Scroll Prev Top Next More

This function opens the connection to a device (i.e. to an Irinos-System).

 

Definition


MSC_STATUS

MSC_OpenDevice(

    unsigned long Index,

    MSC_HANDLE* Handle

);

 

Parameter


Index

Device number. The first device has always the number 0.
The number of available devices (=Irinos Systems) can be retrieved using MSC_EnumerateDevices.

Handle

Returns a device-handle.
This handle is required by various DLL functions in order to communicate with the device.
 

Return value


If successful, MSC_STATUS_SUCCESS will be returned. In case of an error, an error code will be returned.

Even though is makes no sense, multiple handles to the same device can be created.

 

See also


MSC_EnumerateDevices