You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the Full error list. When i push error, the error number reported is good but the string returned is always: Unknow Error
Example:
int16_t err;
err=SCPI_ERROR_SYNTAX; // Part of the group XE
fprintf(stdout, "**ERROR: %d, \"%s\"\n\r", (int16_t) err, SCPI_ErrorTranslate(err));
err=SCPI_ERROR_EXECUTION_ERROR;
fprintf(stdout, "**ERROR: %d, \"%s\"\n\r", (int16_t) err, SCPI_ErrorTranslate(err));
The printout received is:
**ERROR: -102, "Unknown error"
**ERROR: -200, "Execution error"
For error -102, the expected message to receive is "Syntax error" and not "Unknown Error". Only errors on group X work fine, any errors on group XE will report the same string: "Unknown Error"
I have try with my own list of user errors with the same results.
What i am doing wrong?
The text was updated successfully, but these errors were encountered:
thanks for the info but adding USE_FULL_ERROR_LIST 1 is not enough for get the list of error.
I have tried all method explained on this case without success: #107
I need to pass the information USE_FULL_ERROR_LIST 1 to the compiler to have the X-macro to be processed.
For now, my makefile perfom the action below without processing the X-macro.
My final goal is to include my own list of errors USE_USER_ERROR_LIST 1.
Makefile.txt
{{{{
add_definitions(-DSCPI_USER_CONFIG=1) #DL flag to add scpi_user_config.h
Build the SCPI parsing library (a Git submodule) as an external project.
We'll build it in its source directory using its own Makefile, then place the
.a file and the library's headers in scpi-parser for including/linking it.
include(ExternalProject)
set(scpi_parser_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/scpi-parser/libscpi")
set(scpi_parser_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/scpi-parser")
ExternalProject_Add(scpi_parser_build
SOURCE_DIR "${scpi_parser_SOURCE_DIR}"
BUILD_IN_SOURCE ON
CONFIGURE_COMMAND make clean
# Only generate the static version of the library, not the shared one (doesn't make sense here).
BUILD_COMMAND env "CC=${CMAKE_C_COMPILER}" "CFLAGS=${CMAKE_C_FLAGS}" "PREFIX=${scpi_parser_PREFIX}" make static
INSTALL_DIR "${scpi_parser_PREFIX}"
INSTALL_COMMAND cp -r "${scpi_parser_SOURCE_DIR}/dist/libscpi.a" "${scpi_parser_SOURCE_DIR}/inc" "${scpi_parser_PREFIX}"
)
}}}}}
I want to use the Full error list. When i push error, the error number reported is good but the string returned is always: Unknow Error
Example:
The printout received is:
**ERROR: -102, "Unknown error"
**ERROR: -200, "Execution error"
For error -102, the expected message to receive is "Syntax error" and not "Unknown Error". Only errors on group X work fine, any errors on group XE will report the same string: "Unknown Error"
I have try with my own list of user errors with the same results.
What i am doing wrong?
The text was updated successfully, but these errors were encountered: