// Failed to translate parameter into an id #define API_E_GET_TRANSLATE_FAIL 1000L // Failed to get analogue value #define API_E_GET_AP_FAIL 1001L // Failed to get digital value #define API_E_GET_DP_FAIL 1002L // Parameter supplied is not analogue nor digital #define API_E_GET_BAD_PARAMETER 1003L // Failed to translate parameter into an id #define API_E_SET_TRANSLATE_FAIL 1004L // Failed to set a digital state #define API_E_SET_STATE_FAIL 1005L // Failed to set a float value #define API_E_SET_FLOAT_FAIL 1006L // Value supplied is too low #define API_E_SET_FLOAT_LIMIT_LOW 1007L // Value supplied is too high #define API_E_SET_FLOAT_LIMIT_HIGH 1008L // Value supplied is is of wrong type #define API_E_SET_BAD_VALUE 1009L // Parameter supplied is not analogue nor digital #define API_E_SET_BAD_PARAMETER 1010L // Failed to translate command into an id #define API_E_EXEC_TRANSLATE_FAIL 1011L // Failed to execute command #define API_E_EXEC_CMD_FAIL 1012L // Failed to execute file macro #define API_E_EXEC_MCF_FAIL 1013L // Failed to execute library macro #define API_E_EXEC_MCL_FAIL 1014L // Command supplied is not implemented #define API_E_EXEC_BAD_COMMAND 1015L // Grab command failed #define API_E_GRAB_FAIL 1016L // Get Stage position failed #define API_E_GET_STAGE_FAIL 1017L // Move Stage position failed #define API_E_MOVE_STAGE_FAIL 1018L // API not initialised #define API_E_NOT_INITIALISED 1019L // Failed to translate parameter to an id #define API_E_NOTIFY_TRANSLATE_FAIL 1020L // Set notification failed #define API_E_NOTIFY_SET_FAIL 1021L // Get limits failed #define API_E_GET_LIMITS_FAIL 1022L // Get multiple parameters failed #define API_E_GET_MULTI_FAIL 1023L // Set multiple parameters failed #define API_E_SET_MULTI_FAIL 1024L // Missing API license #define API_E_NOT_LICENSED 1025L // Reserved or not implemented #define API_E_NOT_IMPLEMENTED 1026L // Failed to get user name (Remoting Interface only) #define API_E_GET_USER_NAME_FAIL 1027L // Failed to get user idle state (Remoting Interface only) #define API_E_GET_USER_IDLE_FAIL 1028L // Failed to get the last remoting connection error string (Remoting Interface Only) #define API_E_GET_LAST_REMOTING_CONNECT_ERROR_FAIL 1029L // 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 #define API_E_EMSERVER_LOGON_FAILED 1030L // Failed to start the EM Server - this may be because the Server is already running or has an internal error. #define API_E_EMSERVER_START_FAILED 1031L // The command or parameter is currently disabled (you cannot execute or set it). #define API_E_PARAMETER_IS_DISABLED 1032L ///////////-----Remoting Errors, MUST be in order and the range defined below---------------------------------/////////// // Remoting incorrectly configured, use RConfigure to correct #define API_E_REMOTING_NOT_CONFIGURED 2027L // Remoting did not connect to the server #define API_E_REMOTING_FAILED_TO_CONNECT 2028L // Remoting could not start (unknown reason) #define API_E_REMOTING_COULD_NOT_CREATE_INTERFACE 2029L // Remoting: Remote server is not running currently. #define API_E_REMOTING_EMSERVER_NOT_RUNNING 2030L // Remoting: Remote server has no user logged in #define API_E_REMOTING_NO_USER_LOGGED_IN 2031L const UINT API_FIRST_REMOTING_ERROR_CODE = API_E_REMOTING_NOT_CONFIGURED; const UINT API_LAST_REMOTING_ERROR_CODE = API_E_REMOTING_NO_USER_LOGGED_IN; ///////////---------------------------------------------------------------------------------------------------------------------------------------------/////////// ///////////---------------------------------------------------------------------------------------------------/////////// // Internal Defines, although they may be useful in your own program. TRS. const UINT API_FIRST_ERROR_CODE = API_E_GET_TRANSLATE_FAIL; const UINT API_LAST_ERROR_CODE = API_E_REMOTING_NO_USER_LOGGED_IN; ///////////---------------------------------------------------------------------------------------------------/////////// // Notification codes that the Remoting server may send to you. #define EMSERVER_HAS_LOADED 1111111 #define EMSERVER_HAS_EXITED 2222222 #define EMSERVER_USER_LOGGED_ON 3333333 #define EMSERVER_USER_LOGGED_OFF 4444444 #define REMOTING_SERVER_EXITED 5555555 #define EMSERVER_FIBUI_HAS_LOADED 6666666