GLA Summit 2021/Calling Code from another dimension: How to integrate any C++ library into LabVIEW
Calling Code from another dimension: How to integrate any C++ library into LabVIEW by John Medland
The toolkit you need for your next project already exists but is trapped in a text based dimension! It's time to bring it home to LabVIEW. This presentation will demonstrate how we can capture functionality from any C++ library into LabVIEW with advice on development tools, debugging and dependency management as well using LabVIEW's C-integration library for data exchange. Tips, techniques and further resources will be provided to encourage you to dust off those keyboards and expand LabVIEW's functionality even further.
Contents
Presentation Links
Supporting Material
Our Giants are Female
Scenario One
Configuring the Call Library Function Node
- Youtube Video: Using Shared Libraries in LabVIEW
- NI-Forum Tutorial: Configuring the Call Library Function Node
Dereferencing Pointers
Checking Dependencies with Dependency Walker and Dependencies (modern rewrite)
Scenario Two
Creating a Wrapper for C++ code
LabVIEW Manager Functions
Setting Up Visual Studio Code for building and debugging with LabVIEW
C++ Dependency Manager
Scenario Three
Generating LabVIEW User Events from C/C++ code
Bonus Content
Setting a LabVIEW Occurrence from C/C++ code
My open source project which uses lots of the topics discussed in the talk
A discussion about returning complex data structures which require multiple allocations
Memory Management Library (limited documents but looks promising)