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 READ INTENSITY FAILED or OPT ERR CHINDEX OUTRANGE (see the
error code in Tab. 1).
6. See also: setting intensity
2.13. Setting the trigger pulse width
1. Function: long OPTController SetTriggerWidth(OPTController Handle controllerHandle, int channelIn-
dex, int triggerWidth)
2. Description: set trigger pulse width for corresponding channel(s)
3. Input(s):
• controllerHandle – the handle of controller;
• channelIndex – the index(es) of the channel(s), range: [0 – 16] (in decimal form, 0 for all channels);
• triggerWidth – the value of the trigger pulse width to be set, range: [1 – 999].
4. Return value:
• succeed: OPT SUCCEED;
• failed: OPT ERR SET TRIGGERWIDTH FAILED, OPT ERR CHINDEX OUTRANGE, or
OPT ERR PARAM OUTRANGE (see the error code in Tab. 1).
5. See also: reading the trigger pulse width
2.14. Setting multiple trigger pulse width
1. Function: long OPTController SetTriggerWidth(OPTController Handle controllerHandle, TriggerWidthItem*
triggerWidthArray, int length)
2. Description: set trigger pulse width for specified the multiple channels
3. Input(s):
• controllerHandle – the handle of controller;
• triggerWidthArray – an array consists of values of the trigger pulse width (and the indexes of the
corresponding channels) to be set, range: [1 – 999];
• length – the length of the trigger width array.
4. Return value: