OPT MACHINE VISION TECH.CO. LTD
ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853
TEL: 0769-82716188 FAX: 0769-81606698
E-mail:
Website:Http://www.optmv.net
34
• 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.15. Reading the trigger pulse width
1. Function: long OPTController ReadTriggerWidth(OPTController Handle controllerHandle, int chan-
nelIndex, int* triggerWidth)
2. Description: read the trigger pulse width of the specified channel
3. Input(s):
• controllerHandle – the handle of controller;
• channelIndex – the index of the channel, range: [1 – 16] (in decimal form).
4. Output(s): triggerWidth –the obtained trigger pulse width;
5. Return value:
• succeed: OPT SUCCEED;
• failed: OPT ERR READ TRIGGERWIDTH FAILED or OPT ERR CHINDEX OUTRANGE (see
the error code in Tab. 1).
6. See also: setting the trigger pulse width and setting multiple trigger pulse width
2.16. Setting high brightness trigger pulse width
1. Function: long OPTController SetHBTriggerWidth(OPTController Handle controllerHandle, int chan-
nelIndex, int HBTriggerWidth)
2. Description: set high brightness 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);
• HBTriggerWidth – the value of the high brightness trigger pulse width to be set, range: [1 – 500].
4. Return value:
• succeed: OPT SUCCEED;