write_component_modelT_write_component_modelWriteComponentModelWriteComponentModel (Operator)
Name
write_component_modelT_write_component_modelWriteComponentModelWriteComponentModel
— Write a component model to a file.
Signature
Description
The operator write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModel
writes the component
model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID
to the file FileNameFileNameFileNameFileNamefileName
. The
model can be read again with read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModel
.
The default HALCON file extension for the component model is 'cbm'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID
(input_control) component_model →
HComponentModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the component model.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .cbm
Result
If the file name is valid (write permission), the operator
write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModel
returns the value 2 (H_MSG_TRUE). If necessary,
an exception is raised.
Possible Predecessors
create_component_modelcreate_component_modelCreateComponentModelCreateComponentModelCreateComponentModel
,
create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModelCreateTrainedComponentModel
Module
Matching