« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.9.6 - ReadLibraryConfigS

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

[C/C++] Read LJM_SEND_RECEIVE_TIMEOUT_MS

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);