Skip to content

deactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_deviceT_deactivate_compute_device🔗

Short description🔗

deactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_deviceT_deactivate_compute_device — Deactivate a compute device.

Signature🔗

deactivate_compute_device( compute_device DeviceHandle )void DeactivateComputeDevice( const HTuple& DeviceHandle )static void HOperatorSet.DeactivateComputeDevice( HTuple deviceHandle )def deactivate_compute_device( device_handle: HHandle ) -> None

Herror T_deactivate_compute_device( const Htuple DeviceHandle )

void HComputeDevice::DeactivateComputeDevice( ) const

void HComputeDevice.DeactivateComputeDevice( )

Description🔗

deactivate_compute_deviceDeactivateComputeDevice deactivates the compute device DeviceHandledeviceHandledevice_handle for the current HALCON thread. Use activate_compute_deviceActivateComputeDevice to reactivate the device.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).

  • Processed without parallelization.

Parameters🔗

DeviceHandledeviceHandledevice_handle (input_control) compute_device → (handle)HTuple (HHandle)HComputeDevice, HTuple (IntPtr)HHandleHtuple (handle)

Compute device handle.

Result🔗

deactivate_compute_deviceDeactivateComputeDevice returns the value 2 (H_MSG_TRUE) if DeviceHandledeviceHandledevice_handle is valid. Otherwise an exception will be raised.

Combinations with other operators🔗

Combinations

Possible predecessors

activate_compute_deviceActivateComputeDevice

See also

deactivate_all_compute_devicesDeactivateAllComputeDevices

Module🔗

Foundation