LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access labview dll in labwindows

Hello,
 
Q1. I have created a DLL in labview8.2. I have included the header file and the library file in my LabWindows project. When I compile the code it throws up an error in header file extcode.h. I have attached the error messages with this post in a file. Can anyone please guide me fixing this error. Also related links to creation of DLLs in Labview and accesing these DLLs in CVI would also be helpful.
 
Q2. I have created a VI which has input parameter as a cluster. The cluster has integer data type and an array of integers. I am creating a DLL out of this VI. Are there any limitations for accessing the cluster from CVI? How do I resolve them?
 
Thanks in Advance,
Pradeep
0 Kudos
Message 1 of 2
(2,366 Views)
Hello Pradeep,

The compile errors you posted seem to indicate that the header file was incorrectly generated or modified. I would suggest going over it the header file for any syntax errors in the region where the first error is thrown. You could also try to regenerate the header file by recreating the dll. I have found two links that should help you get started with using a LabVIEW dll in CVI and also using clusters with dlls. I would recommend, however, that you continue to search through the forums and Developer Zone. There is a wealth of information here that is very helpful.

KnowledgeBase 3337DOV4: Calling a LabVIEW DLL from a CVI or other C/C++ project
NI Developer Zone Example: Using Structures in a DLL with Clusters in LabVIEW



Adam

National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,335 Views)