Error Code List: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Programming]] | |||
====Error Codes==== | ====Error Codes==== | ||
Line 4: | Line 6: | ||
These codes are thrown as Phidget Exceptions or returned as error codes from C functions. See the {{Phidget22API}} documentation for your device to see which error codes are supported. The error codes are generic, and the error description may contain more detailed information about the actual cause of the error. | These codes are thrown as Phidget Exceptions or returned as error codes from C functions. See the {{Phidget22API}} documentation for your device to see which error codes are supported. The error codes are generic, and the error description may contain more detailed information about the actual cause of the error. | ||
{| class="wikitable" | |||
|- | |||
!colspan="3"|Value Legend | |||
|- | |||
|'''Hex: '''Hexadecimal | |||
|'''Dec: '''Decimal | |||
|'''LV: '''LabVIEW | |||
|} | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 10: | Line 21: | ||
| OK | | OK | ||
| Hex: 0x00 | | Hex: 0x00 | ||
Dec: 0 | Dec: 0 | ||
LV: 0 | |||
| Success | | Success | ||
| | | | ||
Line 17: | Line 30: | ||
| PERM | | PERM | ||
| Hex: 0x01 | | Hex: 0x01 | ||
Dec: 1 | Dec: 1 | ||
LV: 7001 | |||
| Not Permitted | | Not Permitted | ||
| | | | ||
|- | |- | ||
| NOENT | | NOENT | ||
|Hex: 0x02 | | Hex: 0x02 | ||
Dec: 2 | Dec: 2 | ||
LV: 7002 | |||
| No Such Entity | | No Such Entity | ||
| | | | ||
Line 29: | Line 48: | ||
| TIMEOUT | | TIMEOUT | ||
|Hex: 0x03 | |Hex: 0x03 | ||
Dec: 3 | Dec: 3 | ||
LV: 7003 | |||
| Timed Out | | Timed Out | ||
| This can happen for a number of common reasons: | | This can happen for a number of common reasons: | ||
Line 41: | Line 63: | ||
| KEEPALIVE | | KEEPALIVE | ||
|Hex: 0x3A | |Hex: 0x3A | ||
Dec: 58 | Dec: 58 | ||
LV: 7058 | |||
| Keep Alive Failure | | Keep Alive Failure | ||
| | | | ||
Line 47: | Line 72: | ||
| INTERRUPTED | | INTERRUPTED | ||
| 0Hex: 0x04 | | 0Hex: 0x04 | ||
Dec: 4 | Dec: 4 | ||
LV: 7004 | |||
| Op Interrupted | | Op Interrupted | ||
| | | | ||
Line 53: | Line 81: | ||
| IO | | IO | ||
| Hex: 0x05 | | Hex: 0x05 | ||
Dec: 5 | Dec: 5 | ||
LV: 7005 | |||
| IO Issue | | IO Issue | ||
| | | | ||
Line 59: | Line 90: | ||
| NOMEMORY | | NOMEMORY | ||
| Hex: 0x06 | | Hex: 0x06 | ||
Dec: 6 | Dec: 6 | ||
LV: 7006 | |||
| Memory Issue | | Memory Issue | ||
| | | | ||
Line 65: | Line 99: | ||
| ACCESS | | ACCESS | ||
| Hex: 0x07 | | Hex: 0x07 | ||
Dec: 7 | Dec: 7 | ||
LV: 7007 | |||
| Access (Permission) Issue | | Access (Permission) Issue | ||
| | | | ||
Line 71: | Line 108: | ||
| FAULT | | FAULT | ||
| Hex: 0x08 | | Hex: 0x08 | ||
Dec: 8 | Dec: 8 | ||
LV: 7008 | |||
| Address Issue | | Address Issue | ||
| | | | ||
Line 77: | Line 117: | ||
| BUSY | | BUSY | ||
| Hex: 0x09 | | Hex: 0x09 | ||
Dec: 9 | Dec: 9 | ||
LV: 7009 | |||
| Resource Busy | | Resource Busy | ||
| The Phidget you are trying to open is already open elsewhere. | | The Phidget you are trying to open is already open elsewhere. | ||
Line 85: | Line 128: | ||
| EXIST | | EXIST | ||
| Hex: 0x0a | | Hex: 0x0a | ||
Dec: 10 | Dec: 10 | ||
LV: 7010 | |||
| Object Exists | | Object Exists | ||
| | | | ||
Line 91: | Line 137: | ||
| NOTDIR | | NOTDIR | ||
| Hex: 0x0b | | Hex: 0x0b | ||
Dec: 11 | Dec: 11 | ||
LV: 7011 | |||
| Object is not a directory | | Object is not a directory | ||
| | | | ||
Line 97: | Line 146: | ||
| ISDIR | | ISDIR | ||
| Hex: 0x0c | | Hex: 0x0c | ||
Dec: 12 | Dec: 12 | ||
LV: 7012 | |||
| Object is a directory | | Object is a directory | ||
| | | | ||
Line 103: | Line 155: | ||
| INVALID | | INVALID | ||
| Hex: 0x0d | | Hex: 0x0d | ||
Dec: 13 | Dec: 13 | ||
LV: 7013 | |||
| Invalid | | Invalid | ||
| | | | ||
Line 109: | Line 164: | ||
| NFILE | | NFILE | ||
| Hex: 0x0e | | Hex: 0x0e | ||
Dec: 14 | Dec: 14 | ||
LV: 7014 | |||
| Too many open files in system | | Too many open files in system | ||
| | | | ||
Line 115: | Line 173: | ||
| MFILE | | MFILE | ||
| Hex: 0x0f | | Hex: 0x0f | ||
Dec: 15 | Dec: 15 | ||
LV: 7015 | |||
| Too many open files | | Too many open files | ||
| | | | ||
Line 121: | Line 182: | ||
| NOSPC | | NOSPC | ||
| Hex: 0x10 | | Hex: 0x10 | ||
Dec: 16 | Dec: 16 | ||
LV: 7016 | |||
| Not enough space | | Not enough space | ||
| | | | ||
Line 127: | Line 191: | ||
| FBIG | | FBIG | ||
| Hex: 0x11 | | Hex: 0x11 | ||
Dec: 17 | Dec: 17 | ||
LV: 7017 | |||
| File too Big | | File too Big | ||
| | | | ||
Line 133: | Line 200: | ||
| ROFS | | ROFS | ||
| Hex: 0x12 | | Hex: 0x12 | ||
Dec: 18 | Dec: 18 | ||
LV: 7018 | |||
| Read Only Filesystem | | Read Only Filesystem | ||
| | | | ||
Line 139: | Line 209: | ||
| RO | | RO | ||
| Hex: 0x13 | | Hex: 0x13 | ||
Dec: 19 | Dec: 19 | ||
LV: 7019 | |||
| Read Only Object | | Read Only Object | ||
| | | | ||
Line 145: | Line 218: | ||
| UNSUPPORTED | | UNSUPPORTED | ||
| Hex: 0x14 | | Hex: 0x14 | ||
Dec: 20 | Dec: 20 | ||
LV: 7020 | |||
| Operation Not Supported | | Operation Not Supported | ||
| This error is thrown when a method is called that is not supported by the Phidget hardware. For example, calling {{Code|setFanMode}} on the 1065, which has no fan. Or calling {{setEnabled}} on an encoder channel that is always enabled, like the one built in to the DCC1002. | | This error is thrown when a method is called that is not supported by the Phidget hardware. For example, calling {{Code|setFanMode}} on the 1065, which has no fan. Or calling {{Code|setEnabled}} on an encoder channel that is always enabled, like the one built in to the DCC1002. | ||
|- | |- | ||
| INVALIDARG | | INVALIDARG | ||
| Hex: 0x15 | | Hex: 0x15 | ||
Dec: 21 | Dec: 21 | ||
LV: 7021 | |||
| Invalid Argument | | Invalid Argument | ||
| One or more of the parameters passed to the function is not accepted by the channel in its current configuration. | | One or more of the parameters passed to the function is not accepted by the channel in its current configuration. | ||
Line 158: | Line 237: | ||
| AGAIN | | AGAIN | ||
| Hex: 0x16 | | Hex: 0x16 | ||
Dec: 22 | Dec: 22 | ||
LV: 7022 | |||
| Try again | | Try again | ||
| | | | ||
Line 164: | Line 246: | ||
| NOTEMPTY | | NOTEMPTY | ||
| Hex: 0x1a | | Hex: 0x1a | ||
Dec: 26 | Dec: 26 | ||
LV: 7026 | |||
| Not Empty | | Not Empty | ||
| | | | ||
Line 170: | Line 255: | ||
| UNEXPECTED | | UNEXPECTED | ||
| Hex: 0x1c | | Hex: 0x1c | ||
Dec: 28 | Dec: 28 | ||
LV: 7028 | |||
| Unexpected Error | | Unexpected Error | ||
| | | | ||
Line 176: | Line 264: | ||
| DUPLICATE | | DUPLICATE | ||
| Hex: 0x1b | | Hex: 0x1b | ||
Dec: 27 | Dec: 27 | ||
LV: 7027 | |||
| Duplicate | | Duplicate | ||
| | | | ||
Line 182: | Line 273: | ||
| BADPASSWORD | | BADPASSWORD | ||
| Hex: 0x25 | | Hex: 0x25 | ||
Dec: 37 | Dec: 37 | ||
LV: 7037 | |||
| Bad Credential | | Bad Credential | ||
| | | | ||
Line 188: | Line 282: | ||
| NETUNAVAIL | | NETUNAVAIL | ||
| Hex: 0x2d | | Hex: 0x2d | ||
Dec: 45 | Dec: 45 | ||
LV: 7045 | |||
| Network Unavailable | | Network Unavailable | ||
| | | | ||
Line 194: | Line 291: | ||
| CONNREF | | CONNREF | ||
| Hex: 0x23 | | Hex: 0x23 | ||
Dec: 35 | Dec: 35 | ||
LV: 7035 | |||
| Connection Refused | | Connection Refused | ||
| | | | ||
Line 200: | Line 300: | ||
| CONNRESET | | CONNRESET | ||
| Hex: 0x2e | | Hex: 0x2e | ||
Dec: 46 | Dec: 46 | ||
LV: 7046 | |||
| Connection Reset | | Connection Reset | ||
| | | | ||
Line 206: | Line 309: | ||
| HOSTUNREACH | | HOSTUNREACH | ||
| Hex: 0x30 | | Hex: 0x30 | ||
Dec: 48 | Dec: 48 | ||
LV: 7048 | |||
| No route to host | | No route to host | ||
| | | | ||
Line 212: | Line 318: | ||
| NODEV | | NODEV | ||
| Hex: 0x28 | | Hex: 0x28 | ||
Dec: 40 | Dec: 40 | ||
LV: 7040 | |||
| No Such Device | | No Such Device | ||
| | | | ||
Line 218: | Line 327: | ||
| WRONGDEVICE | | WRONGDEVICE | ||
| Hex: 0x32 | | Hex: 0x32 | ||
Dec: 50 | Dec: 50 | ||
LV: 7050 | |||
| Wrong Device | | Wrong Device | ||
| | | | ||
Line 224: | Line 336: | ||
| PIPE | | PIPE | ||
| Hex: 0x29 | | Hex: 0x29 | ||
Dec: 41 | Dec: 41 | ||
LV: 7041 | |||
| Broken Pipe | | Broken Pipe | ||
| | | | ||
Line 230: | Line 345: | ||
| RESOLV | | RESOLV | ||
| Hex: 0x2c | | Hex: 0x2c | ||
Dec: 44 | Dec: 44 | ||
LV: 7044 | |||
| Name Resolution Failure | | Name Resolution Failure | ||
| | | | ||
Line 236: | Line 354: | ||
| UNKNOWNVAL | | UNKNOWNVAL | ||
| Hex: 0x33 | | Hex: 0x33 | ||
Dec: 51 | Dec: 51 | ||
LV: 7051 | |||
| Unknown or Invalid Value | | Unknown or Invalid Value | ||
| | | | ||
Line 242: | Line 363: | ||
| NOTATTACHED | | NOTATTACHED | ||
| Hex: 0x34 | | Hex: 0x34 | ||
Dec: 52 | Dec: 52 | ||
LV: 7052 | |||
| Device not Attached | | Device not Attached | ||
| This can happen for a number of common reasons: | | This can happen for a number of common reasons: | ||
Line 251: | Line 375: | ||
| INVALIDPACKET | | INVALIDPACKET | ||
| Hex: 0x35 | | Hex: 0x35 | ||
Dec: 53 | Dec: 53 | ||
LV: 7053 | |||
| Invalid or Unexpected Packet | | Invalid or Unexpected Packet | ||
| | | | ||
Line 257: | Line 384: | ||
| 2BIG | | 2BIG | ||
| Hex: 0x36 | | Hex: 0x36 | ||
Dec: 54 | Dec: 54 | ||
LV: 7054 | |||
| Argument List Too Long | | Argument List Too Long | ||
| | | | ||
Line 263: | Line 393: | ||
| BADVERSION | | BADVERSION | ||
| Hex: 0x37 | | Hex: 0x37 | ||
Dec: 55 | Dec: 55 | ||
LV: 7055 | |||
| Bad Version | | Bad Version | ||
| This error occurs when the version of the Phidget libraries is different than the one being used on the network server. Update both to the latest version to solve the error. If you're using [[Language_-_JavaScript|Javascript]], ensure that the same version of phidget22.min.js is being used in your working directory as the one being pointed to by the webserver in the Phidget Control Panel. | | This error occurs when the version of the Phidget libraries is different than the one being used on the network server. Update both to the latest version to solve the error. If you're using [[Language_-_JavaScript|Javascript]], ensure that the same version of phidget22.min.js is being used in your working directory as the one being pointed to by the webserver in the Phidget Control Panel. | ||
Line 269: | Line 402: | ||
| CLOSED | | CLOSED | ||
| Hex: 0x38 | | Hex: 0x38 | ||
Dec: 56 | Dec: 56 | ||
LV: 7056 | |||
| Closed | | Closed | ||
| | | | ||
Line 275: | Line 411: | ||
| NOTCONFIGURED | | NOTCONFIGURED | ||
| Hex: 0x39 | | Hex: 0x39 | ||
Dec: 57 | Dec: 57 | ||
LV: 7057 | |||
| Not Configured | | Not Configured | ||
| | | | ||
Line 281: | Line 420: | ||
| EOF | | EOF | ||
| Hex: 0x1f | | Hex: 0x1f | ||
Dec: 31 | Dec: 31 | ||
LV: 7031 | |||
| End of File | | End of File | ||
| | | | ||
Line 287: | Line 429: | ||
| FAILSAFE | | FAILSAFE | ||
| Hex: 0x3b | | Hex: 0x3b | ||
Dec: 59 | Dec: 59 | ||
LV: 7059 | |||
| Failsafe Triggered | | Failsafe Triggered | ||
| Failsafe Triggered on this channel. Close and Re-open the channel to resume operation. | | Failsafe Triggered on this channel. Close and Re-open the channel to resume operation. | ||
|} | |} |
Latest revision as of 20:08, 28 July 2021
Error Codes
This page lists all error codes with more in-depth descriptions than can be found in the Phidget22 API.
These codes are thrown as Phidget Exceptions or returned as error codes from C functions. See the Phidget22 API documentation for your device to see which error codes are supported. The error codes are generic, and the error description may contain more detailed information about the actual cause of the error.
Value Legend | ||
---|---|---|
Hex: Hexadecimal | Dec: Decimal | LV: LabVIEW |
Name | Value | Description | Details |
---|---|---|---|
OK | Hex: 0x00
Dec: 0 LV: 0 |
Success | |
PERM | Hex: 0x01
Dec: 1 LV: 7001 |
Not Permitted | |
NOENT | Hex: 0x02
Dec: 2 LV: 7002 |
No Such Entity | |
TIMEOUT | Hex: 0x03
Dec: 3 LV: 7003 |
Timed Out | This can happen for a number of common reasons:
|
KEEPALIVE | Hex: 0x3A
Dec: 58 LV: 7058 |
Keep Alive Failure | |
INTERRUPTED | 0Hex: 0x04
Dec: 4 LV: 7004 |
Op Interrupted | |
IO | Hex: 0x05
Dec: 5 LV: 7005 |
IO Issue | |
NOMEMORY | Hex: 0x06
Dec: 6 LV: 7006 |
Memory Issue | |
ACCESS | Hex: 0x07
Dec: 7 LV: 7007 |
Access (Permission) Issue | |
FAULT | Hex: 0x08
Dec: 8 LV: 7008 |
Address Issue | |
BUSY | Hex: 0x09
Dec: 9 LV: 7009 |
Resource Busy | The Phidget you are trying to open is already open elsewhere.
|
EXIST | Hex: 0x0a
Dec: 10 LV: 7010 |
Object Exists | |
NOTDIR | Hex: 0x0b
Dec: 11 LV: 7011 |
Object is not a directory | |
ISDIR | Hex: 0x0c
Dec: 12 LV: 7012 |
Object is a directory | |
INVALID | Hex: 0x0d
Dec: 13 LV: 7013 |
Invalid | |
NFILE | Hex: 0x0e
Dec: 14 LV: 7014 |
Too many open files in system | |
MFILE | Hex: 0x0f
Dec: 15 LV: 7015 |
Too many open files | |
NOSPC | Hex: 0x10
Dec: 16 LV: 7016 |
Not enough space | |
FBIG | Hex: 0x11
Dec: 17 LV: 7017 |
File too Big | |
ROFS | Hex: 0x12
Dec: 18 LV: 7018 |
Read Only Filesystem | |
RO | Hex: 0x13
Dec: 19 LV: 7019 |
Read Only Object | |
UNSUPPORTED | Hex: 0x14
Dec: 20 LV: 7020 |
Operation Not Supported | This error is thrown when a method is called that is not supported by the Phidget hardware. For example, calling setFanMode on the 1065, which has no fan. Or calling setEnabled on an encoder channel that is always enabled, like the one built in to the DCC1002.
|
INVALIDARG | Hex: 0x15
Dec: 21 LV: 7021 |
Invalid Argument | One or more of the parameters passed to the function is not accepted by the channel in its current configuration.
|
AGAIN | Hex: 0x16
Dec: 22 LV: 7022 |
Try again | |
NOTEMPTY | Hex: 0x1a
Dec: 26 LV: 7026 |
Not Empty | |
UNEXPECTED | Hex: 0x1c
Dec: 28 LV: 7028 |
Unexpected Error | |
DUPLICATE | Hex: 0x1b
Dec: 27 LV: 7027 |
Duplicate | |
BADPASSWORD | Hex: 0x25
Dec: 37 LV: 7037 |
Bad Credential | |
NETUNAVAIL | Hex: 0x2d
Dec: 45 LV: 7045 |
Network Unavailable | |
CONNREF | Hex: 0x23
Dec: 35 LV: 7035 |
Connection Refused | |
CONNRESET | Hex: 0x2e
Dec: 46 LV: 7046 |
Connection Reset | |
HOSTUNREACH | Hex: 0x30
Dec: 48 LV: 7048 |
No route to host | |
NODEV | Hex: 0x28
Dec: 40 LV: 7040 |
No Such Device | |
WRONGDEVICE | Hex: 0x32
Dec: 50 LV: 7050 |
Wrong Device | |
PIPE | Hex: 0x29
Dec: 41 LV: 7041 |
Broken Pipe | |
RESOLV | Hex: 0x2c
Dec: 44 LV: 7044 |
Name Resolution Failure | |
UNKNOWNVAL | Hex: 0x33
Dec: 51 LV: 7051 |
Unknown or Invalid Value | |
NOTATTACHED | Hex: 0x34
Dec: 52 LV: 7052 |
Device not Attached | This can happen for a number of common reasons:
|
INVALIDPACKET | Hex: 0x35
Dec: 53 LV: 7053 |
Invalid or Unexpected Packet | |
2BIG | Hex: 0x36
Dec: 54 LV: 7054 |
Argument List Too Long | |
BADVERSION | Hex: 0x37
Dec: 55 LV: 7055 |
Bad Version | This error occurs when the version of the Phidget libraries is different than the one being used on the network server. Update both to the latest version to solve the error. If you're using Javascript, ensure that the same version of phidget22.min.js is being used in your working directory as the one being pointed to by the webserver in the Phidget Control Panel. |
CLOSED | Hex: 0x38
Dec: 56 LV: 7056 |
Closed | |
NOTCONFIGURED | Hex: 0x39
Dec: 57 LV: 7057 |
Not Configured | |
EOF | Hex: 0x1f
Dec: 31 LV: 7031 |
End of File | |
FAILSAFE | Hex: 0x3b
Dec: 59 LV: 7059 |
Failsafe Triggered | Failsafe Triggered on this channel. Close and Re-open the channel to resume operation. |