Example Code

Add ENUM Definitions to LabVIEW DLL Header

Code and Documents

Attachment

Download All

Introduction

The following example provides a technique for applying ENUM control definitions to a LabVIEW DLL header file. This addition allows developers to pass list items used in LabVIEW ENUM controls, as parameters to DLL functions by name. The example requires that all functions (VIs) used in the DLL creation be placed in a single directory. The code was designed using VI Server to extract the ENUM control attributes, and apply them to the .h file.

DLL_Front.jpg

Note
For additional information on the functions used in this example. Please use CTRL+H to view the LabVIEW Context Help

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

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

Contributors