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

Using LabWindows/CVI to Call LabVIEW DLLs That Pass Numeric Data Types

1 ratings | 3.00 out of 5
Print

Downloads

Filename: numberexample.zip
Requirements: View

This document shows how to pass numeric data types in a LabVIEW 6i DLL and how to use those numerics in LabWindows/CVI. This document contains a simple LabVIEW 6i VI that continuously generates a random number between 0-100. These numbers are compared to a numeric control which contains a number to match. As soon as the number is matched the time that it took to match the number is output along with the number of attempts at matching the number. The .bld file that was used to create the DLL is included. This .bld file shows how to pass numeric data types as values and as pointers to values. The CVI project(.prj) along with the source (.c), header (.h), library (.lib), and dynamic link library (.dll) files are also included. To run the program, make sure that the paths to the .h and .lib files are correct and that the the .dll file is in the same directory as the project. For more details on how to call a LabVIEW 6i DLL from LabWindows/CVI please see the document entitled, "Creating and Calling LabVIEW DLLs with Various Data Types from CVI".

Requirements


Filename: numberexample.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 6.0, LabVIEW Full Development System 6.0
Language(s): LabVIEW, C

 
1 ratings | 3.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/).