Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Using Microsoft Visual C++ to Call LabVIEW DLLs That Pass Clusters

1 ratings | 5.00 out of 5
Print

Downloads

Filename: cluster2.zip
Requirements: View

This document shows how to pass clusters in a LabVIEW 6i DLL and how to use those clusters in MS Visual C++. This document contains a simple LabVIEW 6i VI that takes in a cluster consisting of a number and a boolean and outputs that same cluster. The .bld file that was used to create the DLL is included along with the the Visual C++ project (.prj), the source (.c), header (.h), library (.lib), and dynamic link library (.dll) files. The .bld file shows how to pass clusters from LV 6i and the .h file shows how the clusters are converted to structures. To run the program, make sure that the paths to the .h and .lib files are included in the Tools->Options->Directories and that the .dll file is in the same directory as the project. For more details on how to call a LabVIEW 6i DLL from Visual C++, see the document entitled, "Creating and Calling LabVIEW DLLs with Various Data Types from Visual C++".

Requirements


Filename: cluster2.zip

Software Requirements


Application Software: LabVIEW Full Development System 6.0
Language(s): Visual C++, LabVIEW

 
1 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).