Operators |
control_io_interface — Perform an action on the I/O interface.
control_io_interface( : : IOInterfaceName, Action, Argument : Result)
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.
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.
HALCON I/O interface name.
Default value: []
Suggested values: 'ADLINK-DAQPilot' , 'ADLINK-EOS' , 'Advantech' , 'Contec' , 'Interface' , 'NIDAQmx' , 'OPC_Classic' , 'OPC_UA'
Name of the action to perform.
List of arguments for the action.
Default value: []
List of results returned by the action.
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.
Foundation
Operators |