Operator Reference

deactivate_compute_deviceT_deactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_device (Operator)

deactivate_compute_deviceT_deactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_device — Deactivate a compute device.

Signature

deactivate_compute_device( : : DeviceHandle : )

Herror T_deactivate_compute_device(const Htuple DeviceHandle)

void DeactivateComputeDevice(const HTuple& DeviceHandle)

void HComputeDevice::DeactivateComputeDevice() const

static void HOperatorSet.DeactivateComputeDevice(HTuple deviceHandle)

void HComputeDevice.DeactivateComputeDevice()

def deactivate_compute_device(device_handle: HHandle) -> None

Description

deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevicedeactivate_compute_device deactivates the compute device DeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle for the current HALCON thread. Use activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device to reactivate the device.

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

DeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle (input_control)  compute_device HComputeDevice, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Compute device handle.

Result

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

Possible Predecessors

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device

See also

deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevicesdeactivate_all_compute_devices

Module

Foundation