CogDLRuntime Open Method Cognex VisionPro 9.24
Attempt to open the runtime workspace file specified by FileName.

Namespace: Cognex.VisionPro.DLRuntime
Assembly: Cognex.VisionPro.DLRuntime (in Cognex.VisionPro.DLRuntime.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax

public void Open()
Events

Event TypeReason
ICogChangedEvent Changed Fires when a runtime workspace file is successfully opened and incorporated. The following state flags may be affected:
  • SfState
  • SfGetTensorRTInfo
  • SfGetParams
Exceptions

ExceptionCondition
ArgumentOutOfRangeException If GPUAffinity is not valid for the current set of GPUs.
ArgumentException If the runtime workspace file is not found.
ArgumentException If the runtime workspace file is not successfully read into memory.
ArgumentException If the runtime workspace object's structure does not match a previously deserialized or copied parameter structure.
ArgumentException If an error occurs in transcribing previously deserialized or copied parameters into a just-loaded workspace object.
CogInternalErrorException If the underlying ViDi control could not be created. Please ensure that no other ViDi control instance exists in this process.
See Also