LabWindows/CVI

LabWindows/CVI ActiveX Server Error Codes

The LabWindows/CVI ActiveX server functions return error codes, which are defined in cvisrvr.h. You can call GetCVIAutomationServerErrorString to get a textual description of an error code.

The following table lists the currently defined error codes and their associated meanings.

Defined Constant Hexadecimal Value Decimal Value Description
CVIConst_CVI_SRVR_E_NO_ERROR 0x0 0 The function succeeded.
CVIConst_CVI_SRVR_E_INVALID_PATHNAME 0x80040001 -2147221503 Invalid pathname syntax.
CVIConst_CVI_SRVR_E_PATHNAME_NOT_ABSOLUTE 0x80040002 -2147221502 Pathname not absolute.
CVIConst_CVI_SRVR_E_PATHNAME_IS_RELATIVE 0x80040003 -2147221501 Pathname must be absolute or simple.
CVIConst_CVI_SRVR_E_FILE_NOT_IN_PROJECT 0x80040004 -2147221500 The specified file is not listed in the currently loaded project.
CVIConst_CVI_SRVR_E_FILE_DOES_NOT_EXIST 0x80040005 -2147221499 The specified file does not exist on disk.
CVIConst_CVI_SRVR_E_FILE_NOT_LOADED 0x80040006 -2147221498 The specified file is not already loaded into a window or loaded as an instrument.
CVIConst_CVI_SRVR_E_PROGRAM_RUNNING 0x80040007 -2147221497 The operation cannot be performed because a user program is currently running.
CVIConst_CVI_SRVR_E_PROGRAM_SUSPENDED 0x80040008 -2147221496 The operation cannot be performed because a user program is currently suspended.
CVIConst_CVI_SRVR_E_NO_PROGRAM_RUNNING 0x80040009 -2147221495 The operation cannot be performed because no user program is currently running.
CVIConst_CVI_SRVR_E_NO_PROGRAM_SUSPENDED 0x8004000a -2147221494 The operation cannot be performed because no user program is currently suspended.
CVIConst_CVI_SRVR_E_NO_RUNNING_OR_SUSPENDED 0x8004000b -2147221493 The operation cannot be performed because no user program is currently running or suspended.
CVIConst_CVI_SRVR_E_FILE_NOT_EXCLUDABLE 0x8004000c -2147221492 The file is not a .c, .obj, or .lib file, or is not in the project.
CVIConst_CVI_SRVR_E_NOT_A_LOADED_INSTRUMENT 0x8004000d -2147221491 The specified file is not a .fp file for a loaded instrument.
CVIConst_CVI_SRVR_E_NOT_A_C_FILE 0x8004000e -2147221490 The specified file is not a .c file.
CVIConst_CVI_SRVR_E_NOT_A_SRC_OR_TEXT_FILE 0x8004000f -2147221489 The file specified is not a source or text file.
CVIConst_CVI_SRVR_E_CANNOT_CLOSE_WINDOW 0x80040010 -2147221488 The window cannot be closed because execution is suspended in the file and the Workspace window is not open.
CVIConst_CVI_SRVR_E_LINE_TOO_LONG 0x80040011 -2147221487 The line being appended to the window is too long; lines are limited to 254 characters.
CVIConst_CVI_SRVR_E_OUT_OF_MEMORY 0x80040012 -2147221486 Insufficient memory available.
CVIConst_CVI_SRVR_E_WAITING_FOR_RESPONSE 0x80040013 -2147221485 LabWindows/CVI is waiting for the user to respond to a modal dialog box.
CVIConst_CVI_SRVR_E_NOT_AN_FP_FILE 0x80040014 -2147221484 The file specified is not a .fp file.
CVIConst_CVI_SRVR_E_FUNCTION_NOT_IN_FILE 0x80040015 -2147221483 The function name is not in the .fp file.
CVIConst_CVI_SRVR_E_INVALID_FP_PARAM_INDEX 0x80040016 -2147221482 The parameter index is either less than –1 or greater than 99.
CVIConst_CVI_SRVR_E_ERROR_READING_FP_FILE 0x80040017 -2147221481 An error occurred reading the .fp file.
CVIConst_CVI_SRVR_E_ERROR_REPORTED_TO_USER 0x80040018 -2147221480 An action-specific error was reported to the end user through a dialog box, compile error window, or link error window, or the user canceled the operation.
CVIConst_CVI_SRVR_E_INVALID_PROJ_FILE_INDEX 0x80040019 -2147221479 The index into the project list is less than zero.
CVIConst_CVI_SRVR_E_PROJECT_IS_UNTITLED 0x8004001a -2147221478 The current project has never been saved and does not have a pathname.
CVIConst_CVI_SRVR_E_NOT_A_PROJECT_FILE 0x8004001b -2147221477 The file specified is not a project file.
CVIConst_CVI_SRVR_E_KEYSTROKE_OVERFLOW 0x8004001c -2147221476 The maximum number of unprocessed fake keystrokes (256) has been exceeded.
CVIConst_CVI_SRVR_E_INVALID_KS_INTERVAL 0x8004001d -2147221475 The keystroke interval must be between 1 and 100,000 milliseconds.
CVIConst_CVI_SRVR_E_IS_A_PROJECT_FILE 0x8004001f -2147221473 To open a project file, use the OpenProject function instead of the OpenWindow function.
CVIConst_CVI_SRVR_E_FILE_NOT_PRINTABLE 0x80040020 -2147221472 The file specified for printing is not printable. Only text files and user interface resource files are printable.
CVIConst_CVI_SRVR_E_INVALID_TARGET_TYPE 0x80040021 -2147221471 The targetType parameter passed to the SetProjectTargetType function is not one of the values in the CVITargetType enum.
CVIConst_CVI_SRVR_E_INVALID_FP_FUNC_INDEX 0x80040022 -2147221470 The index passed is either less than zero or greater than 31,999.
CVIConst_CVI_SRVR_E_MULTI_DIM_ARRAY 0x80040024 -2147221468 A multidimensional array was passed to a function that expects a one-dimensional array.
CVIConst_CVI_SRVR_E_INVALID_SAFEARRAY 0x80040025 -2147221467 A parameter that is supposed to be a safe array cannot be interpreted as such by system functions.
CVIConst_CVI_SRVR_E_INVALID_NULL_PARAM 0x80040026 -2147221466 A pointer parameter that is supposed to contain a value was instead passed as NULL.
CVIConst_CVI_SRVR_E_INVALID_ZOOM_VALUE 0x80040027 -2147221465 An invalid zoom value was passed.
CVIConst_CVI_SRVR_E_INVALID_STRING_VALUE 0x80040028 -2147221464 An invalid string value was passed.
CVIConst_CVI_SRVR_E_NOT_EXECUTABLE_PROJECT 0x80040029 -2147221463 The RunProject function was called on a non-executable project.
CVIConst_CVI_SRVR_E_INVALID_EXTERNAL_PROCESS 0x8004002A -2147221462 The stand-alone executable that is specified to call the DLL is invalid.
CVIConst_CVI_SRVR_E_CANNOT_WRITE_TO_FILE 0x8004002B -2147221461 An error occurred while writing data to a file.
CVIConst_CVI_SRVR_E_NOTHING_TO_SAVE 0x8004002C -2147221460 There is nothing to save in the Build Output window.
CVIConst_CVI_SRVR_E_INVALID_VERSION_INFO_SELECTOR 0x8004002D -2147221459 Invalid project version info selector.
CVIConst_CVI_SRVR_E_INVALID_PARAM 0x8004002E -2147221458 An invalid parameter was passed.
CVIConst_CVI_SRVR_E_FAILED_TO_LOAD_TUI_FILE 0x8004002F -2147221457 Could not load the specified .tui file.
CVIConst_CVI_SRVR_E_FAILED_TO_SAVE_UIR_FILE 0x80040030 -2147221456 Could not save the .uir file.
CVIConst_CVI_SRVR_E_FAILED_TO_CREATE_DIST_KIT 0x80040031 -2147221455 Could not create the distribution.
CVIConst_CVI_SRVR_E_FAILED_TO_LOAD_UIR_FILE 0x80040032 -2147221454 Could not load the specified .uir file.
CVIConst_CVI_SRVR_E_FAILED_TO_SAVE_TUI_FILE 0x80040033 -2147221453 Could not save the .tui file.
CVIConst_CVI_SRVR_E_NAME_TOO_LONG 0x80040034 -2147221452 The name passed is too long.
CVIConst_CVI_SRVR_E_INVALID_DATA_TYPE 0x80040035 -2147221451 An invalid data type was passed.
CVIConst_CVI_SRVR_E_INVALID_FP_INSERT_LOCATION 0x80040036 -2147221450 Could not insert a function panel at the specified location.
CVIConst_CVI_SRVR_E_RETVAL_ALREADY_SET 0x80040037 -2147221449 A return value for the function panel has already been set.
CVIConst_CVI_SRVR_E_PROJECT_NOT_IN_WORKSPACE 0x80040038 -2147221448 The specified project is not in the current workspace and cannot be removed.
CVIConst_CVI_SRVR_E_NOT_FOUND 0x80040039 -2147221447 The function or parameter was not found.
CVIConst_CVI_SRVR_E_FAILED_TO_LOAD_FP_FILE 0x8004003A -2147221446 Could not load the specified .fp file.
CVIConst_CVI_SRVR_E_FAILED_TO_SAVE_FPX_FILE 0x8004003B -2147221445 Could not save the .fpx file.
CVIConst_CVI_SRVR_E_FAILED_TO_SAVE_FP_FILE 0x8004003C -2147221444 Could not save the .fp file.
CVIConst_CVI_SRVR_E_FAILED_TO_LOAD_FPX_FILE 0x8004003D -2147221443 Could not load the specified .fpx file.
CVIConst_CVI_SRVR_E_CANNOT_GENERATE_FP 0x8004003E -2147221442 Could not generate the function tree.
CVIConst_CVI_SRVR_E_CLASS_NOT_IN_FILE 0x8004003F -2147221441 The class name is not in the .fp file.
CVIConst_CVI_SRVR_E_INVALID_EXEC_TARGET_TYPE 0x80040040 -2147221440 An invalid execution target type was passed.
CVIConst_CVI_SRVR_E_COULD_NOT_ADD_EXEC_TARGET 0x80040041 -2147221439 Could not add the execution target.
CVIConst_CVI_SRVR_E_INVALID_RUNTIME_SUPPORT_TYPE 0x80040042 -2147221438 The run-time support type is not valid for the current project settings.
CVIConst_CVI_SRVR_E_CANNOT_SET_RUNTIME_SUPPORT_TYPE 0x80040043 -2147221437 The run-time support type cannot be set. This may be because the target type is static library.
CVIConst_CVI_SRVR_E_BKPT_DOES_NOT_EXIST 0x80040044 -2147221436 Breakpoint does not exist.
CVIConst_CVI_SRVR_E_NO_LINE_TAG_AVAILABLE 0x80040045 -2147221435 No line tag available.
CVIConst_CVI_SRVR_E_TLB_NOT_FOUND 0x80040046 -2147221434 Type library not found.
CVIConst_CVI_SRVR_E_INVALID_TLB 0x80040047 -2147221433 Type library is not valid.
CVIConst_CVI_SRVR_E_INVALID_PREFIX 0x80040048 -2147221432 An invalid prefix value was passed.
CVIConst_CVI_SRVR_E_MUST_USE_ADVANCED_DIALOG 0x80040049 -2147221431 You must use the LabWindows/CVI ActiveX Controller Advanced Options dialog box.
CVIConst_CVI_SRVR_E_METHOD_OBSOLETE 0x8004004A -2147221430 The method you called is obsolete.
CVIConst_CVI_SRVR_E_INVALID_RUNTIME_BINDING 0x8004004B -2147221429 The run-time binding value is not valid for the current project settings.
CVIConst_CVI_SRVR_E_CANNOT_SET_RUNTIME_BINDING 0x8004004C -2147221428 The run-time binding value cannot be set. This may be because the target type is static library.
CVIConst_CVI_SRVR_E_INVALID_WORKSPACE_WINDOW 0x8004004D -2147221427 An invalid Workspace window type value was passed.
CVIConst_CVI_SRVR_E_BUILDING_THE_PROJECT 0x8004004E -2147221426 Building project files.
CVIConst_CVI_SRVR_E_INVALID_CONFIGURATION 0x8004004F -2147221425 Invalid configuration.
CVIConst_CVI_SRVR_E_INVALID_WARNING_LEVEL 0x80040050 -2147221424 Invalid warning level.