« Close

Datasheets and User Guides

App Notes

Software & Driver

 

LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS

Summary

LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is a numerical readable-writable LJM library configuration that determines whether or not LJM will automatically perform multiple Feedback commands when the desired operations would exceed the maximum packet length.

For example, if a call to LJM_eNames would require a 68-byte packet but the connection can only take 64-byte packets, LJM would automatically separate the LJM_eNames call into 2 operations of less than 64 bytes each.

The constant LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS can be used interchangeably with the string "LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS".

Details

0 - false/disabled

1 - true/enabled (Default)

Relevant Functions

To read LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, use LJM_ReadLibraryConfigS.

To write LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, use LJM_WriteLibraryConfigS or LJM_LoadConfigurationFile.

Example

[C/C++] Read LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, set LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, then read it again

char ErrorString[LJM_MAX_NAME_SIZE];
double Value;
int LJMError = LJM_ReadLibraryConfigS(LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, &Value);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigS error: %s\n", ErrorString);
}
if ((int)Value == 0) {
    printf("LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is disabled by default.\n");
}
else {
    printf("LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is enabled by default.\n");
}

printf("Disabling LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS\n");
LJMError = LJM_WriteLibraryConfigS(LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, 0);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_WriteLibraryConfigS error: %s\n", ErrorString);
}

LJMError = LJM_ReadLibraryConfigS(LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS, &Value);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigS error: %s\n", ErrorString);
}
if ((int)Value == 0) {
    printf("LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is now disabled.\n");
}
else {
    printf("LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is now enabled.\n");
}

Possible output:

LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is enabled by default.
Disabling LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS
LJM_ALLOWS_AUTO_MULTIPLE_FEEDBACKS is now disabled.

 

For more LJM configurations, see Library Configuration Functions.