Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
soplarpet:error_table [2024/09/16 13:57]
superuser
soplarpet:error_table [2024/12/06 11:06] (current)
superuser [Parameter Descriptions]
Line 1: Line 1:
 ===== Documentation for `GetErrorTable` Method ===== ===== Documentation for `GetErrorTable` Method =====
  
-The `GetErrorTable` method returns a list of `ErrorData` objects representing the current errors in the system. Each `ErrorData` object contains information about the error type, device code, error message, and any additional information.+The `GetErrorTable` method returns a list of `ErrorData` objects representing the current errors in the system. Each `ErrorData` object contains information about the time the error occurred, ​error type, device code, error message, and any additional information.
  
-==== Example Usage ====+==== Parameter Descriptions ==== 
 + 
 +1. **Time** ​  
 +   - **Type**: DateTime ​  
 +   - **Description**:​ The timestamp indicating when the error occurred. 
 + 
 +2. **ErrorType** ​  
 +   - **Type**: int 
 +   - **Description**:​ An enumeration representing the type of error. Examples include: ​  
 +     - **1**: Camera connection error   
 +     - **2**: Camera ping error   
 +     - **3**: Camera missing ​  
 +     - **4**: Configuration corrupted ​  
 +     - **5**: Configuration missing ​  
 +     - **6**: Halcon license missing ​  
 +     - **7**: Free space missing ​  
 + 
 +3. **DeviceCode** ​  
 +   - **Type**: int   
 +   - **Description**:​ Identifies the device associated with the error. ​  
 +     - Values below **100** indicate a camera (e.g., **1** for Camera 1).   
 +     - **100** represents the PC. 
 + 
 +4. **Message** ​  
 +   - **Type**: string ​  
 +   - **Description**:​ A descriptive message providing details about the error. 
 + 
 +5. **Additional** ​  
 +   - **Type**: string[] ​  
 +   - **Description**:​ An optional list of strings containing additional data relevant to the error. For example: For free space errors, this may include the amount of space needed (in bytes). 
 + 
 + 
 +==== Examples ​====
 Below are examples of the JSON returned by the GetErrorTable method for different error types. Below are examples of the JSON returned by the GetErrorTable method for different error types.
  
Line 17: Line 49:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​15:​30",​
       "​ErrorType":​1,​       "​ErrorType":​1,​
       "​DeviceCode":​1,​       "​DeviceCode":​1,​
Line 32: Line 65:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​16:​00",​
       "​ErrorType":​2,​       "​ErrorType":​2,​
       "​DeviceCode":​2,​       "​DeviceCode":​2,​
Line 46: Line 80:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​16:​30",​
       "​ErrorType":​3,​       "​ErrorType":​3,​
       "​DeviceCode":​3,​       "​DeviceCode":​3,​
Line 61: Line 96:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​17:​00",​
       "​ErrorType":​4,​       "​ErrorType":​4,​
       "​DeviceCode":​100,​       "​DeviceCode":​100,​
Line 75: Line 111:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​17:​30",​
       "​ErrorType":​5,​       "​ErrorType":​5,​
       "​DeviceCode":​100,​       "​DeviceCode":​100,​
Line 89: Line 126:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​18:​00",​
       "​ErrorType":​6,​       "​ErrorType":​6,​
       "​DeviceCode":​100,​       "​DeviceCode":​100,​
Line 104: Line 142:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​18:​30",​
       "​ErrorType":​7,​       "​ErrorType":​7,​
       "​DeviceCode":​100,​       "​DeviceCode":​100,​
Line 118: Line 157:
 [ [
    {    {
 +      "​Time":"​2024-12-06T10:​19:​00",​
       "​ErrorType":​1,​       "​ErrorType":​1,​
       "​DeviceCode":​1,​       "​DeviceCode":​1,​
Line 126: Line 166:
    },    },
    {    {
 +      "​Time":"​2024-12-06T10:​19:​30",​
       "​ErrorType":​2,​       "​ErrorType":​2,​
       "​DeviceCode":​1,​       "​DeviceCode":​1,​
Line 134: Line 175:
    },    },
    {    {
 +      "​Time":"​2024-12-06T10:​20:​00",​
       "​ErrorType":​7,​       "​ErrorType":​7,​
       "​DeviceCode":​100,​       "​DeviceCode":​100,​
Line 143: Line 185:
 ] ]
 </​code>​ </​code>​
 +
  • soplarpet/error_table.1726495074.txt.gz
  • Last modified: 2024/09/16 13:57
  • by superuser