LabJackM_Dynamic Runtime Dynamic Linking Headers
April 23, 2021
support@labjack.com


This package contains headers and a basic example for dynamic runtime linking
with LJM.


Requirements:

- LabJack T7 or T4
- The latest LabJack LJM software from the Windows Installer:

  https://labjack.com/support/software/installers/ljm

Examples:

See our C/C++ Example package:
     https://labjack.com/support/software/examples/ljm/c

Any examples there can be quickly modified to work with dynamic linking by
following the steps below:

    1.  Add an include for LabJackM_Dynamic.h   
    2.  Remove include for LJM_Utilities.h
    2a. Remove include for LJM_StreamUtilitie.h (if applicable)
    3.  Add include for LJM_Utilities_Dynamic.h
    3a. Add include for LJM_StreamUtilities_Dynamic.h (if applicable)
    4.  Add a call to the LoadLabJackM function
    5.  Add "p" in front of all LJM function names

If compiling as C code, use the C99 (or gnu90) standard or later
Linux and macOS need to link against libdl. A typical, basic C example build
should look like:
    gcc -g -Wall foo.c -ldl -o foo


Relevant Documentation:

LJM Library:
 LJM Library Installer:
     https://labjack.com/support/software/installers/ljm
 LJM Users Guide:
     https://labjack.com/support/software/api/ljm
 Opening and Closing:
     https://labjack.com/support/software/api/ljm/function-reference/opening-and-closing
 Single Value Functions(such as eReadName):
     https://labjack.com/support/software/api/ljm/function-reference/single-value-functions
 Multiple Value Functions(such as eWriteNames):
     https://labjack.com/support/software/api/ljm/function-reference/multiple-value-functions
 Timing Functions(such as StartInterval):
     https://labjack.com/support/software/api/ljm/function-reference/timing-functions

T-Series and I/O:
 Modbus Map:
     https://labjack.com/support/software/api/modbus/modbus-map
 Analog Inputs:
     https://labjack.com/support/datasheets/t-series/ain
 Digital I/O:
     https://labjack.com/support/datasheets/t-series/digital-io
 DAC:
     https://labjack.com/support/datasheets/t-series/dac


License:

LabJack provided source code in the examples are licensed under MIT X11. See the
LICENSE.txt file for details.

