Overview
This VI uses DLL files developed in C to sort a numerical array
Description
This example demonstrates that LabVIEW users can use code developed in an external development environment, including C++. The LabVIEW program below generates and sorts a numerical array by calling a C-built DLL via LabVIEW's Call Library Function Node. This example also contains the C source code that the DLL was built from. It contains a .c file and a .prj file that can be built in LabWindows/CVI, as well as a .cpp file and all of the project files necessary to build this in Microsoft Visual C++. If you see a broken arrow when you open the LabVIEW VI, double-click on the Call Library Function Node and relink to the exact path of the DLL.
Any C compiler can you be used to view and execute the C code. If you do not have a C compiler, you can download the LabWindows/CVI Evaluation Software to run the C code and to try the premium C environment for measurement and automation applications. At a minimum, the LabWindows/CVI Run Time Engine is required to run the CVI executable.
Requirements
LabVIEW 2012 or compatible
Any C compiler
Steps to Implement or Execute Code
- Run the VI
- Select "Generate", then "Sort" to observe the resulted array
- Press “Quit” to stop the VI
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange. **