OPT MACHINE VISION TECH.CO. LTD
ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853
TEL: 0769-82716188 FAX: 0769-81606698
E-mail:optmv1@optmv.com Website:Http://www.optmv.net
• failed: OPT ERR CREATEETHECON FAILED (see the error code in Tab. 1).
6. Remarks:
• connect to a server as a client. Before connecting, make sure that the controller is connected to the
LAN;
• We recommend creating an Ethernet connection by SN (compared with by IP) because IP is likely
to be changed dynamically in LAN under the DHCP protocol. We have provided a tool (Search-
ForControllers.exe) to check SN.
7. See also: destroying an Ethernet connection
2.5. Destroying an Ethernet connection
1. Function: long OPTController DestroyEtheConnection(OPTController HANDLE controllerHandle)
2. Description: disconnect an existing Ethernet Connection
3. Input(s) controllerHandle – the handle of the controller
4. Return value
• succeed: OPT SUCCEED;
• failed: OPT ERR DESTORYETHECON FAILED (see the error code in Tab. 1).
5. See also: creating an Ethernet connection
2.6. Turning on channel(s)
1. Function: long OPTController TurnonChannel(OPTController Handle controllerHandle, int channelIn-
dex)
2. Description: turn on the specified channel(s)
3. Input(s):
• controllerHandle – the handle of controller;
• channelIndex – the index(es) of the channel(s) to be turned on, range: [0 – 16] (in decimal form, 0
for all channels).
4. Return value:
• succeed: OPT SUCCEED;