set_bead_inspection_paramT_set_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param (算子)
名称
set_bead_inspection_paramT_set_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param — 设置胶珠检查模型的参数。
签名
描述
算子 set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param is used to set parameters
of a bead inspection model in order to adapt it to a particular inspection
task. All parameters except for the model's contour can be set with this
operator. A new bead
inspection model should be used when a new contour is introduced.
The current values of all parameters can be queried with the operator
get_bead_inspection_paramget_bead_inspection_paramGetBeadInspectionParamGetBeadInspectionParamGetBeadInspectionParamget_bead_inspection_param。
Parameters that can be set
The following parameters are essential and inspection model specific. It
is vital for the inspection's success to identify accurate values for
those parameters:
- 'target_thickness'"target_thickness""target_thickness""target_thickness""target_thickness""target_thickness":
-
sets the TargetThicknessTargetThicknessTargetThicknessTargetThicknesstargetThicknesstarget_thickness.
- 'thickness_tolerance'"thickness_tolerance""thickness_tolerance""thickness_tolerance""thickness_tolerance""thickness_tolerance":
-
sets the
ThicknessToleranceThicknessToleranceThicknessToleranceThicknessTolerancethicknessTolerancethickness_tolerance.
- 'position_tolerance'"position_tolerance""position_tolerance""position_tolerance""position_tolerance""position_tolerance":
-
sets the
PositionTolerancePositionTolerancePositionTolerancePositionTolerancepositionToleranceposition_tolerance.
- 'polarity'"polarity""polarity""polarity""polarity""polarity":
-
sets the bead's PolarityPolarityPolarityPolaritypolaritypolarity.
- 'sigma'"sigma""sigma""sigma""sigma""sigma"
-
- 'threshold'"threshold""threshold""threshold""threshold""threshold"
-
For more details, refer to the parameters' description in
create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
参数
BeadInspectionModelBeadInspectionModelBeadInspectionModelBeadInspectionModelbeadInspectionModelbead_inspection_model (输入控制,状态被修改) bead_inspection_model → HBeadInspectionModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the bead inspection model.
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制) attribute.name(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Name of the model parameter that shall be adjusted for
the specified bead inspection model.
默认值:
'target_thickness'
"target_thickness"
"target_thickness"
"target_thickness"
"target_thickness"
"target_thickness"
值列表:
'polarity'"polarity""polarity""polarity""polarity""polarity", 'position_tolerance'"position_tolerance""position_tolerance""position_tolerance""position_tolerance""position_tolerance", 'sigma'"sigma""sigma""sigma""sigma""sigma", 'target_thickness'"target_thickness""target_thickness""target_thickness""target_thickness""target_thickness", 'thickness_tolerance'"thickness_tolerance""thickness_tolerance""thickness_tolerance""thickness_tolerance""thickness_tolerance", 'threshold'"threshold""threshold""threshold""threshold""threshold"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输入控制) attribute.value(-array) → HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Value of the model parameter that shall be adjusted
for the specified bead inspection model.
默认值:
40
建议值:
40, 10, 15, 0.6, 1.0, 4.0, 5.0, 'light'"light""light""light""light""light", 'dark'"dark""dark""dark""dark""dark"
结果
算子 set_bead_inspection_paramset_bead_inspection_paramSetBeadInspectionParamSetBeadInspectionParamSetBeadInspectionParamset_bead_inspection_param 在给定参数有效且在可接受范围内时返回值 2 ( H_MSG_TRUE )。
否则,将抛出异常。
可能的前趋
create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model
可能的后继
apply_bead_inspection_modelapply_bead_inspection_modelApplyBeadInspectionModelApplyBeadInspectionModelApplyBeadInspectionModelapply_bead_inspection_model,
get_bead_inspection_paramget_bead_inspection_paramGetBeadInspectionParamGetBeadInspectionParamGetBeadInspectionParamget_bead_inspection_param
替代
create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model
另见
create_bead_inspection_modelcreate_bead_inspection_modelCreateBeadInspectionModelCreateBeadInspectionModelCreateBeadInspectionModelcreate_bead_inspection_model,
clear_bead_inspection_modelclear_bead_inspection_modelClearBeadInspectionModelClearBeadInspectionModelClearBeadInspectionModelclear_bead_inspection_model
模块
二维计量