Specify ID when Using Multiple Devices

When using multiple devices at the same time, it is necessary to initialize each device and obtain a different ID.
Execute functions by specifying the ID of each device. At the time of termination, perform termination processings for each device.

Here is an example of using multiple devices.

Use two DIO-3232L-PE and one DI-16TY-USB, and each device is set to the following device name.
The variables that store the ID of each device are ID_DIO1, ID_DIO2, and ID_DI1

DIO-3232L-PE 1st : DIO000
DIO-3232L-PE 2nd : DIO001
DI-16TY-USB      : DIO002

Example in C

Device

DIO-3232L-PE 1st

DIO-3232L-PE 2nd

DI-16TY-USB

DeviceName

DIO000

DIO001

DIO002

ID Declaration

short ID_DIO1;

short ID_DIO2;

short ID_DI1;

Init

Ret = DioInit("DIO000" ,&ID_DIO1);

Ret = DioInit("DIO001" ,&ID_DIO2);

Ret = DioInit("DIO002" ,&ID_DI1);

Other Functions

Ret = Dio***( ID_DIO1, *** );

Ret = Dio***( ID_DIO2, *** );

Ret = Dio***( ID_DI1, *** );