Example Code

How to Handle an Array of Pointers for LabVIEW DLLs

Code and Documents

Attachment

Overview

This example shows what must be done when you have a DLL that requires an array of pointers as one of its inputs.

 

Description

It shows how to use a wrapper dll to create this array of pointers that you will need to input into the parameter of your function. It also includes the C file for the wrapper dll used for this integer example which was written in Visual Studios.

 

Requirements

LabVIEW 2012

Visual Studios

 

Steps to Execute Code

1. Extract all files onto your computer.

2. Make sure that the DLLs are referencing the write location on disk for the WorkingWithBuffersExampleDLL.dll

3. Read through the comments on the VI to understand how each part works to get a good idea of how you might implement this with your own code.

4. Run the code to observe the behavior.

 

 

 

 

Kaitlin N.
National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.