Error Codes#

The Error Codes camera feature allows you to read error codes from the camera. These codes alert you to errors that can be corrected by yourself.

Error codes are saved in an error list. After you have dealt with an error, you can delete it from the error list.

Using the Feature#

How It Works#

The camera can detect errors that you can correct yourself. If such an error occurs, the camera assigns an error code to this error and stores the error code in memory. After you have corrected the error, you can clear the error code from the list.

If several different errors have occurred, the camera stores the code for each type of error detected. The camera stores each code only once regardless of how many times it has detected the corresponding error.

Checking and Clearing Error Codes#

Checking and clearing error codes is an iterative process, depending on how many errors have occurred.

  1. To check the last error code in the memory, get the value of the LastError parameter.
  2. Correct the corresponding error.
  3. To delete the last error code from the list of error codes, execute the ClearLastError command.
  4. Continue getting and deleting the last error code until the LastError parameter shows NoError.

Available Error Codes#

Error Code Value Meaning
0 No Error The camera hasn't detected any errors since the last time the error memory was cleared.
1 Overtrigger An overtrigger has occurred.
The user has applied an Acquisition Start trigger to the camera when the camera was not in a waiting for acquisition start condition.
Or:
The user has applied a Frame Start trigger to the camera when the camera was not in a waiting for frame start condition.
2 Userset An error occurred when attempting to load a user set. Typically, this means that the user set contains an invalid value. Try loading a different user set.
3 Invalid Parameter A parameter has been entered that is out of range or otherwise invalid. Typically, this error only occurs when the user sets parameters via direct register access.
4 Over Temperature The camera is in the over temperature mode.
This error indicates that an over temperature condition exists and that damage to camera components may occur.
5 Power Failure This error indicates that the power supply is not sufficient.
Check the power supply.
6 Insufficient Trigger Width This error is reported in Trigger Width exposure mode, when a trigger is shorter than the minimum exposure time.

Specifics#

Show all camera models

Camera Model Available Error Codes
a2A1920-51gcBAS Error Codes feature not supported
a2A1920-51gmBAS Error Codes feature not supported
a2A1920-160ucBAS Error Codes feature not supported
a2A1920-160umBAS Error Codes feature not supported
acA640-90gc 1, 2, 3, 5, 6
acA640-90gm 1, 2, 3, 5, 6
acA640-90uc Error Codes feature not supported
acA640-90um Error Codes feature not supported
acA640-120gc 1, 2, 3, 5, 6
acA640-120gm 1, 2, 3, 5, 6
acA640-120uc Error Codes feature not supported
acA640-120um Error Codes feature not supported
acA640-121gm 1, 2, 3, 4, 5, 6
acA640-300gc 1, 2, 3, 4, 5, 6
acA640-300gm 1, 2, 3, 4, 5, 6
acA640-750uc Error Codes feature not supported
acA640-750um Error Codes feature not supported
acA720-290gc 1, 2, 3, 4, 5, 6
acA720-290gm 1, 2, 3, 4, 5, 6
acA720-520uc Error Codes feature not supported
acA720-520um Error Codes feature not supported
acA780-75gc 1, 2, 3, 5, 6
acA780-75gm 1, 2, 3, 5, 6
acA800-200gc 1, 2, 3, 4, 5, 6
acA800-200gm 1, 2, 3, 4, 5, 6
acA800-510uc Error Codes feature not supported
acA800-510um Error Codes feature not supported
acA1280-60gc 1, 2, 3, 5, 6
acA1280-60gm 1, 2, 3, 5, 6
acA1300-22gc 1, 2, 3, 5, 6
acA1300-22gm 1, 2, 3, 5, 6
acA1300-30gc 1, 2, 3, 5, 6
acA1300-30gm 1, 2, 3, 5, 6
acA1300-30uc Error Codes feature not supported
acA1300-30um Error Codes feature not supported
acA1300-60gc 1, 2, 3, 5, 6
acA1300-60gm 1, 2, 3, 5, 6
acA1300-60gmNIR 1, 2, 3, 5, 6
acA1300-75gc 1, 2, 3, 4, 5, 6
acA1300-75gm 1, 2, 3, 4, 5, 6
acA1300-200uc Error Codes feature not supported
acA1300-200um Error Codes feature not supported
acA1440-73gc 1, 2, 3, 4, 5, 6
acA1440-73gm 1, 2, 3, 4, 5, 6
acA1440-220uc Error Codes feature not supported
acA1440-220um Error Codes feature not supported
acA1600-20gc 1, 2, 3, 4, 5, 6
acA1600-20gm 1, 2, 3, 4, 5, 6
acA1600-20uc Error Codes feature not supported
acA1600-20um Error Codes feature not supported
acA1600-60gc 1, 2, 3, 5, 6
acA1600-60gm 1, 2, 3, 5, 6
acA1920-25gc 1, 2, 3, 5, 6
acA1920-25gm 1, 2, 3, 5, 6
acA1920-25uc Error Codes feature not supported
acA1920-25um Error Codes feature not supported
acA1920-40gc 1, 2, 3, 4, 5, 6
acA1920-40gm 1, 2, 3, 4, 5, 6
acA1920-40uc Error Codes feature not supported
acA1920-40ucMED Error Codes feature not supported
acA1920-40um Error Codes feature not supported
acA1920-40umMED Error Codes feature not supported
acA1920-48gc 1, 2, 3, 4, 5, 6
acA1920-48gm 1, 2, 3, 4, 5, 6
acA1920-50gc 1, 2, 3, 4, 5, 6
acA1920-50gm 1, 2, 3, 4, 5, 6
acA1920-150uc Error Codes feature not supported
acA1920-150um Error Codes feature not supported
acA1920-155uc Error Codes feature not supported
acA1920-155ucMED Error Codes feature not supported
acA1920-155um Error Codes feature not supported
acA1920-155umMED Error Codes feature not supported
acA2000-50gc 1, 2, 3, 5, 6
acA2000-50gm 1, 2, 3, 5, 6
acA2000-50gmNIR 1, 2, 3, 5, 6
acA2000-165uc Error Codes feature not supported
acA2000-165um Error Codes feature not supported
acA2000-165umNIR Error Codes feature not supported
acA2040-25gc 1, 2, 3, 5, 6
acA2040-25gm 1, 2, 3, 5, 6
acA2040-25gmNIR 1, 2, 3, 5, 6
acA2040-35gc 1, 2, 3, 4, 5, 6
acA2040-35gm 1, 2, 3, 4, 5, 6
acA2040-55uc Error Codes feature not supported
acA2040-55um Error Codes feature not supported
acA2040-90uc Error Codes feature not supported
acA2040-90um Error Codes feature not supported
acA2040-90umNIR Error Codes feature not supported
acA2040-120uc Error Codes feature not supported
acA2040-120um Error Codes feature not supported
acA2440-20gc 1, 2, 3, 4, 5, 6
acA2440-20gm 1, 2, 3, 4, 5, 6
acA2440-35uc Error Codes feature not supported
acA2440-35ucMED Error Codes feature not supported
acA2440-35um Error Codes feature not supported
acA2440-35umMED Error Codes feature not supported
acA2440-75uc Error Codes feature not supported
acA2440-75ucMED Error Codes feature not supported
acA2440-75um Error Codes feature not supported
acA2440-75umMED Error Codes feature not supported
acA2500-14gc 1, 2, 3, 5, 6
acA2500-14gm 1, 2, 3, 4, 5, 6
acA2500-14uc Error Codes feature not supported
acA2500-14um Error Codes feature not supported
acA2500-20gc 1, 2, 3, 4, 5, 6
acA2500-20gcMED 1, 2, 3, 4, 5, 6
acA2500-20gm 1, 2, 3, 4, 5, 6
acA2500-20gmMED 1, 2, 3, 4, 5, 6
acA2500-60uc Error Codes feature not supported
acA2500-60um Error Codes feature not supported
acA3088-16gc 1, 2, 3, 4 (not used), 5
acA3088-16gm 1, 2, 3, 4 (not used), 5
acA3088-57uc Error Codes feature not supported
acA3088-57um Error Codes feature not supported
acA3800-10gc 1, 2, 3, 5, 6
acA3800-10gm 1, 2, 3, 5, 6
acA3800-14uc Error Codes feature not supported
acA3800-14um Error Codes feature not supported
acA4024-8gc 1, 2, 3, 4 (not used), 5
acA4024-8gm 1, 2, 3, 4 (not used), 5
acA4024-29uc Error Codes feature not supported
acA4024-29um Error Codes feature not supported
acA4096-11gc 1, 2, 3, 4 (not used), 5, 6
acA4096-11gm 1, 2, 3, 4 (not used), 5, 6
acA4096-30uc Error Codes feature not supported
acA4096-30ucMED Error Codes feature not supported
acA4096-30um Error Codes feature not supported
acA4096-30umMED Error Codes feature not supported
acA4096-40uc Error Codes feature not supported
acA4096-40ucMED Error Codes feature not supported
acA4096-40um Error Codes feature not supported
acA4096-40umMED Error Codes feature not supported
acA4112-8gc 1, 2, 3, 4 (not used), 5, 6
acA4112-8gm 1, 2, 3, 4 (not used), 5, 6
acA4112-20uc Error Codes feature not supported
acA4112-20ucMED Error Codes feature not supported
acA4112-20um Error Codes feature not supported
acA4112-20umMED Error Codes feature not supported
acA4112-30uc Error Codes feature not supported
acA4112-30ucMED Error Codes feature not supported
acA4112-30um Error Codes feature not supported
acA4112-30umMED Error Codes feature not supported
acA4600-7gc 1, 2, 3, 5, 6
acA4600-10uc Error Codes feature not supported
acA5472-5gc 1, 2, 3, 4 (not used), 5, 6
acA5472-5gm 1, 2, 3, 4 (not used), 5, 6
acA5472-17uc Error Codes feature not supported
acA5472-17um Error Codes feature not supported
boA4096-93cc Error Codes feature not supported
boA4096-93cm Error Codes feature not supported
boA4112-68cc Error Codes feature not supported
boA4112-68cm Error Codes feature not supported
daA1280-54lc Error Codes feature not supported
daA1280-54lm Error Codes feature not supported
daA1280-54uc Error Codes feature not supported
daA1280-54um Error Codes feature not supported
daA1600-60lc Error Codes feature not supported
daA1600-60lm Error Codes feature not supported
daA1600-60uc Error Codes feature not supported
daA1600-60um Error Codes feature not supported
daA1920-15um Error Codes feature not supported
daA1920-30uc Error Codes feature not supported
daA1920-30um Error Codes feature not supported
daA2500-14lc Error Codes feature not supported
daA2500-14lm Error Codes feature not supported
daA2500-14uc Error Codes feature not supported
daA2500-14um Error Codes feature not supported
daA2500-60mc Error Codes feature not supported
puA1280-54uc Error Codes feature not supported
puA1280-54um Error Codes feature not supported
puA1600-60uc Error Codes feature not supported
puA1600-60um Error Codes feature not supported
puA1920-30uc Error Codes feature not supported
puA1920-30um Error Codes feature not supported
puA2500-14uc Error Codes feature not supported
puA2500-14um Error Codes feature not supported

Sample Code#

// Get 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();
INodeMap& nodemap = camera.GetNodeMap();
// Get the value of the last error code in the memory
String_t lasterror = CEnumerationPtr(nodemap.GetNode("LastError"))->ToString();
// Clear the value of the last error code in the memory
CCommandPtr(nodemap.GetNode("ClearLastError"))->Execute();
INodeMap& nodemap = camera.GetNodeMap();
// Get the value of the last error code in the memory
String_t lasterror = CEnumParameter(nodemap, "LastError").GetValue();
// Clear the value of the last error code in the memory
CCommandParameter(nodemap, "ClearLastError").Execute();
// Get the value of the last error code in the memory
string lasterror = camera.Parameters[PLCamera.LastError].GetValue();
// Clear the value of the last error code in the memory
camera.Parameters[PLCamera.ClearLastError].Execute();
// Get the value of the last error code in the memory
string lasterror = Pylon.DeviceFeatureToString(hdev, "LastError");
// Clear the value of the last error code in the memory
Pylon.DeviceExecuteCommandFeature(hdev, "ClearLastError");
size_t len = 0;
char lasterror_str[64] = {0};
/* Get the value of the last error code in the memory */
len = sizeof(lasterror_str);
errRes = PylonDeviceFeatureToString(hdev, "LastError", lasterror_str, &len);
CHECK(errRes);
/* Clear the value of the last error code in the memory */
errRes = PylonDeviceExecuteCommandFeature(hdev, "ClearLastError");
CHECK(errRes);

You can also use the pylon Viewer to easily set the parameters.