api_err.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. // Failed to translate parameter into an id
  2. #define API_E_GET_TRANSLATE_FAIL 1000L
  3. // Failed to get analogue value
  4. #define API_E_GET_AP_FAIL 1001L
  5. // Failed to get digital value
  6. #define API_E_GET_DP_FAIL 1002L
  7. // Parameter supplied is not analogue nor digital
  8. #define API_E_GET_BAD_PARAMETER 1003L
  9. // Failed to translate parameter into an id
  10. #define API_E_SET_TRANSLATE_FAIL 1004L
  11. // Failed to set a digital state
  12. #define API_E_SET_STATE_FAIL 1005L
  13. // Failed to set a float value
  14. #define API_E_SET_FLOAT_FAIL 1006L
  15. // Value supplied is too low
  16. #define API_E_SET_FLOAT_LIMIT_LOW 1007L
  17. // Value supplied is too high
  18. #define API_E_SET_FLOAT_LIMIT_HIGH 1008L
  19. // Value supplied is is of wrong type
  20. #define API_E_SET_BAD_VALUE 1009L
  21. // Parameter supplied is not analogue nor digital
  22. #define API_E_SET_BAD_PARAMETER 1010L
  23. // Failed to translate command into an id
  24. #define API_E_EXEC_TRANSLATE_FAIL 1011L
  25. // Failed to execute command
  26. #define API_E_EXEC_CMD_FAIL 1012L
  27. // Failed to execute file macro
  28. #define API_E_EXEC_MCF_FAIL 1013L
  29. // Failed to execute library macro
  30. #define API_E_EXEC_MCL_FAIL 1014L
  31. // Command supplied is not implemented
  32. #define API_E_EXEC_BAD_COMMAND 1015L
  33. // Grab command failed
  34. #define API_E_GRAB_FAIL 1016L
  35. // Get Stage position failed
  36. #define API_E_GET_STAGE_FAIL 1017L
  37. // Move Stage position failed
  38. #define API_E_MOVE_STAGE_FAIL 1018L
  39. // API not initialised
  40. #define API_E_NOT_INITIALISED 1019L
  41. // Failed to translate parameter to an id
  42. #define API_E_NOTIFY_TRANSLATE_FAIL 1020L
  43. // Set notification failed
  44. #define API_E_NOTIFY_SET_FAIL 1021L
  45. // Get limits failed
  46. #define API_E_GET_LIMITS_FAIL 1022L
  47. // Get multiple parameters failed
  48. #define API_E_GET_MULTI_FAIL 1023L
  49. // Set multiple parameters failed
  50. #define API_E_SET_MULTI_FAIL 1024L
  51. // Missing API license
  52. #define API_E_NOT_LICENSED 1025L
  53. // Reserved or not implemented
  54. #define API_E_NOT_IMPLEMENTED 1026L
  55. // Failed to get user name (Remoting Interface only)
  56. #define API_E_GET_USER_NAME_FAIL 1027L
  57. // Failed to get user idle state (Remoting Interface only)
  58. #define API_E_GET_USER_IDLE_FAIL 1028L
  59. // Failed to get the last remoting connection error string (Remoting Interface Only)
  60. #define API_E_GET_LAST_REMOTING_CONNECT_ERROR_FAIL 1029L
  61. // Failed to remotely logon to the EM Server (username and password may be incorrect or EM Server is not running or User is already logged on
  62. #define API_E_EMSERVER_LOGON_FAILED 1030L
  63. // Failed to start the EM Server - this may be because the Server is already running or has an internal error.
  64. #define API_E_EMSERVER_START_FAILED 1031L
  65. // The command or parameter is currently disabled (you cannot execute or set it).
  66. #define API_E_PARAMETER_IS_DISABLED 1032L
  67. ///////////-----Remoting Errors, MUST be in order and the range defined below---------------------------------///////////
  68. // Remoting incorrectly configured, use RConfigure to correct
  69. #define API_E_REMOTING_NOT_CONFIGURED 2027L
  70. // Remoting did not connect to the server
  71. #define API_E_REMOTING_FAILED_TO_CONNECT 2028L
  72. // Remoting could not start (unknown reason)
  73. #define API_E_REMOTING_COULD_NOT_CREATE_INTERFACE 2029L
  74. // Remoting: Remote server is not running currently.
  75. #define API_E_REMOTING_EMSERVER_NOT_RUNNING 2030L
  76. // Remoting: Remote server has no user logged in
  77. #define API_E_REMOTING_NO_USER_LOGGED_IN 2031L
  78. const UINT API_FIRST_REMOTING_ERROR_CODE = API_E_REMOTING_NOT_CONFIGURED;
  79. const UINT API_LAST_REMOTING_ERROR_CODE = API_E_REMOTING_NO_USER_LOGGED_IN;
  80. ///////////---------------------------------------------------------------------------------------------------------------------------------------------///////////
  81. ///////////---------------------------------------------------------------------------------------------------///////////
  82. // Internal Defines, although they may be useful in your own program. TRS.
  83. const UINT API_FIRST_ERROR_CODE = API_E_GET_TRANSLATE_FAIL;
  84. const UINT API_LAST_ERROR_CODE = API_E_REMOTING_NO_USER_LOGGED_IN;
  85. ///////////---------------------------------------------------------------------------------------------------///////////
  86. // Notification codes that the Remoting server may send to you.
  87. #define EMSERVER_HAS_LOADED 1111111
  88. #define EMSERVER_HAS_EXITED 2222222
  89. #define EMSERVER_USER_LOGGED_ON 3333333
  90. #define EMSERVER_USER_LOGGED_OFF 4444444
  91. #define REMOTING_SERVER_EXITED 5555555
  92. #define EMSERVER_FIBUI_HAS_LOADED 6666666