« Close

Datasheets and User Guides

App Notes

Software & Driver

LabJack is closed November 26 and 27 for the Thanksgiving holiday.



LJM_LIBRARY_VERSION is a numerical read-only LJM library configuration which is used to read the current LJM version.

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

Relevant Functions

To read LJM_LIBRARY_VERSION, use LJM_ReadLibraryConfigS.


[C/C++] Read and display LJM_LIBRARY_VERSION, then display LJM_VERSION

char ErrorString[LJM_MAX_NAME_SIZE];
double Value = 0;
int LJMError = LJM_ReadLibraryConfigS(LJM_LIBRARY_VERSION, &Value);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigS error: %s\n", ErrorString);
printf("LJM_LIBRARY_VERSION is the version of LJM that is\n");
printf("  running and it is %.04f\n", Value);
printf("LJM_VERSION is the version of LJM that this program\n");
printf("  was compiled with and it is %.04f\n", LJM_VERSION);

Possible output:

LJM_LIBRARY_VERSION is the version of LJM that is
  running and it is 1.0203
LJM_VERSION is the version of LJM that this program
  was compiled with and it is 1.0203


For more LJM configurations, see Library Configuration Functions.