Operator Reference
control_io_interface (Operator)
control_io_interface
— Perform an action on the I/O interface.
Signature
control_io_interface( : : IOInterfaceName, Action, Argument : Result)
Description
control_io_interface
performs an action on the I/O
interface. The supported parameters are interface-specific and
listed in the corresponding documentation of the used I/O interface
that can be found in the directory doc/html/reference/io
.
The special value 'keep_open' for Action
is used to
control when the interface should be unloaded. If Argument
is set
to 'true' , the interface will remain loaded until the HALCON
process is terminated. If it is set to 'false' , the interface will
be unloaded as soon as all its device instances are closed. This is the
default behavior.
Attention
On Windows Systems, error dialog boxes from the operating system can occur when dependency modules of the interface are not found, e.g., the according SDK was not installed. The occurrence of the error boxes can be controlled by setting Windows' Error Mode. Please refer to the description of SetErrorMode within the Windows MSDN documentation.
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
IOInterfaceName
(input_control) string →
(string)
HALCON I/O interface name.
Default: []
Suggested values: 'ADLINK-DAQPilot' , 'ADLINK-EOS' , 'Advantech' , 'Contec' , 'Hilscher-cifX' , 'Interface' , 'Linux-GPIO' , 'NIDAQmx' , 'OPC_Classic' , 'OPC_UA'
Action
(input_control) string →
(string)
Name of the action to perform.
Argument
(input_control) string(-array) →
(string / integer / real)
List of arguments for the action.
Default: []
Result
(output_control) string-array →
(string / integer / real)
List of results returned by the action.
Result
If the parameters are valid, the operator control_io_interface
returns the value 2 (
H_MSG_TRUE)
. If necessary an exception is raised. In this
case an extended error information may be set and can be queried with
the operator get_extended_error_info
.
See also
Module
Foundation