AW00118508000 Features
Basler racer Camera Link 136
Reading and Clearing the Error Codes Using Basler pylon
You can use the pylon API to read the value of the LastError parameter and to execute a
ClearLastError command from within your application software. The following code snippets
illustrate using the API to read the parameter value and execute the command:
// Read the value of the last error code in the memory
LastErrorEnums lasterror = camera.LastError.GetValue();
// Clear the value of the last error code in the memory
camera.ClearLastError.Execute();
You can also use the Basler pylon Viewer application to easily set the parameter and execute the
command.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 26.
Reading and Clearing the Error Codes Using Direct Register Access
To get the value of the last error code in the memory via direct register access, read the value of
the Last User Error register.
To clear the value of the last error code in the memory via direct register access, set the value of
the Clear Last User Error register to 1.
For more information about direct register access, see Section 3.2 on page 28.