WriteCalibrationResult

This FB writes calibration results as a json file to the hard drive.

Syntax

Constructor:

WriteCalibrationResult()

Execute main:

FB_Main()

FB_Main(
    PCCH                 sFilePath,
    TcVnMatrix3x3_LREAL* paCameraMatrix,
    TcVnArray8_LREAL*    paDistortionCoefficients,
    TcVnMatrix3x3_LREAL* paRotationMatrix,
    TcVnVector3_LREAL*   paTranslationVector,
    bool                 bWrite
)

FB_Main(
    bool bWrite
)

WriteCalibrationResult 1: Inputs

Name

Type

Default

Description

sFilePath

PCCH

Full path of the file or relative path to the default directory on the target pc (e.g. only a file name). If the string is empty, a file name will be generated (containing the current time).

paCameraMatrix

TcVnMatrix3x3_LREAL*

Returns the camera matrix

paDistortionCoefficients

TcVnArray8_LREAL*

Returns the distortion coefficients

paRotationMatrix

TcVnMatrix3x3_LREAL*

Returns the rotation matrix

paTranslationVector

TcVnVector3_LREAL*

Returns the translation vector

bWrite

bool

Writing the container is triggered by a rising edge at this input.

nTimeout

unsigned int

VISION_ADS_TIMEOUT

Indicates the time before the function is cancelled.

WriteCalibrationResult 2: Outputs

Name

Type

Description

bBusy

bool

This output remains TRUE until the function block has executed a command, but at the longest for the duration supplied to the 'nTimeout' input. While bBusy = TRUE, no new command will be accepted at the inputs.

bError

bool

This output is switched to TRUE as soon as an error occurs during the execution of a command. The command-specific error code is contained in ‘nErrorId’. If the function block has a timeout error, 'bError' is TRUE and 'nErrorId' is 1861 (hexadecimal 0x745). Is reset to FALSE by the execution of a command at the inputs.

nErrorId

ULONG

Contains the ADS error code or the command-specific error code of the last executed command. Is reset to 0 by the execution of a command at the inputs.

Required License

TC3 Vision Base

System Requirements