2.10.7 - ReadLibraryConfigStringS | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver

Monday, March 30th, 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 55/56 products in stock. More details.
Supply Chain: Some disruptions. More details.

2.10.7 - ReadLibraryConfigStringS

Read one string-based configuration value.


LJM_ERROR_RETURN LJM_ReadLibraryConfigStringS(
                      const char * Parameter,
                      double * String)


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.
String [out]
The return value string representing the current value of Parameter. Must be allocated to size LJM_MAX_NAME_SIZE.


LJM errorcodes or 0 for no error.


To write a string-based configuration parameter, see LJM_WriteLibraryConfigStringS.

To read a numerical configuration parameter, see LJM_ReadLibraryConfigS.



char ErrorString[LJM_MAX_NAME_SIZE];
char String[LJM_MAX_NAME_SIZE];
int LJMError = LJM_ReadLibraryConfigStringS(LJM_DEBUG_LOG_FILE, String);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigStringS error: %s\n", ErrorString);
printf("LJM_DEBUG_LOG_FILE is currently %s\n", String);