CogDLRuntime SaveVRWS Method Cognex VisionPro 9.25 SR1
Use this method to save the currently open ViDi workspace to the specified file. This is the only way to retain certain changes that you may have made to the current, in-memory run time workspace:
  • ViDi tool parameters like Threshold or ProbabilityThreshold.
  • TensorRT optimizations.
You may not save to the current workspace file (that is, to the file specified by FileName).

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

public void SaveVRWS(
	string fileName
)

Parameters

fileName
Type: System String
The name of the file to which we will save the currently open workspace. May not match the currently open VRWS file name.
Exceptions

ExceptionCondition
ArgumentException If the specified file name matches the currently open file name.
CogInternalErrorException If the underlying ViDi workspace could not be saved.
See Also