Skip to main content
Skip table of contents

ReadLibraryConfigS [LJM User's Guide]

Read one numerical configuration value.

Syntax

LJM_ERROR_RETURN LJM_ReadLibraryConfigS(
const char * Parameter,
double * Value)

Parameters

Parameter [in]

The name of the configuration setting, see configuration parameters page. Not case-sensitive. Must null-terminate. For the full list of possible parameters, see Configuration Parameters.

Value [out]

The return value representing the current value of Parameter.

Returns

LJM errorcodes or 0 for no error.

Remarks

To write a numerical configuration parameter, see LJM_WriteLibraryConfigS.

To read a string-based configuration parameter, see LJM_ReadLibraryConfigStringS.

Example

Read LJM_SEND_RECEIVE_TIMEOUT_MS

C
char ErrorString[LJM_MAX_NAME_SIZE];
double Value;
int LJMError = LJM_ReadLibraryConfigS(LJM_SEND_RECEIVE_TIMEOUT_MS, &Value);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigS error: %s\n", ErrorString);
}
printf("LJM_SEND_RECEIVE_TIMEOUT_MS is currently %f\n", Value);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.