NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Running a C DLL in LabVIEW

VERSION 2

Created on: Sep 8, 2008 2:12 PM by Justin_P - Last Modified:  Sep 8, 2008 2:51 PM by Justin_P

REQUIREMENTS:
Application Software: LabVIEW Base Development System 8.0
Driver Software: NI-DAQmx 8.8
Hardware Family: CAN
Add-on Software: LabVIEW FPGA Module 8.6
Product Category: LabWindows/CVI
Development Topic: Using External Code (DLLs, CINs)
Industry: ATE/Instrumentation
Application Type: Simulation
Technology: Bluetooth

This example is designed to illustrate the concept of using external code in LabVIEW. Specifically, this example demonstrates that LabVIEW allows a developer to use the code developed external to LabVIEW. This example contains a LabVIEW program that generates and sorts an array of numbers by calling a C-built DLL using 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 build 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 is required 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.

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...