This version (14 Jan 2021 05:46) was approved by Robin Getz.The Previously approved version (21 Dec 2020 11:13) is available.Diff

Using ADALM2000 With LabVIEW

The ADALM2000 (M2K) can be controlled in LabVIEW. Controlling M2K is provided through a set of bindings for libm2k.

The C++ API reference is available on GitHub.

The LabVIEW VI documentation is available on GitHub.


Always use the latest release VI Package from the releases page.


The LabVIEW wrapper is available only starting from official version v0.4.0.

In the libm2k system installer, check the “Install wrapper for LabVIEW bindings” box. The base library and the wrapper will be installed in your system.

Load the VIP package in the VI Package Manager, install the package.
After that, there will be a new palette, named Analog Devices → ADALM2000, in LabVIEW.

Windows Support

  • After checking the “Install wrapper for LabVIEW bindings” box, the system installer will install libm2k.dll and libm2k_lv.dll in your Windows system.

If libm2k_lv does not appear in the system path, the LabVIEW bindings will not find the exposed methods and will not work.

  • In the VI Package Manager, you should load the .vip package and then install it.

The VI Package was tested on version 2015 and 2020 of LabVIEW on Windows.
As this is still under development, bugs might still appear.
Not every libm2k method is supported yet, but may be added in the future.


For support questions please post them on EngineerZone under the Virtual Classroom Forum.

If you find any bugs please report them on the libm2k issues tracker on GitHub.

Examples and LabVIEW palette

The ADALM2000 palette can be found under the “Analog Devices” category.

This contains the following subpalettes:
- AnalogIn - VIs for ADC control
- AnalogOut - VIs for DAC control
- Digital - VIs for the Digital pins control
- Power Supply - Vis for the ADALM2000 power supplies
- Examples - A few examples on how the VIs can be used.

And the following VIs:
- - Will destroy the currently open libm2k context
- Instrument - Will create a libm2k context
- Search - Will search the currently available ADALM2000 and return a list of URIs.

university/tools/m2k/labview.txt · Last modified: 14 Jan 2021 05:38 by Robin Getz