LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing DLL

Thank you liliMcDonald,

 

At this point, LabView is allowing me to import 43 functions. For the other functions, it claims that it is missing the following header files (which I suspect are part of the standard library of header files):

 

  • bits/uClibc_config.h
  • sys/cdefs.h
  • bits/wordsize.h

Is there a good resource to obtain these header files or simply the entire standard library? 

 

Thanks

0 Kudos
Message 21 of 22
(884 Views)

Try including "extcode.h" from the cintools directory in your LabVIEW install (ie, C:\Program Files(x86)\National Instruments\LabVIEW 2015\cintools\extcode.h), which includes fundtypes.h from the same directory, which defines those types. You could also grab the definitions from that file but define them yourself in your inc.h file.

 

If you do want the whole C standard library, and you have a LabWindows/CVI license (which you might, depending on which LabVIEW edition you're using), you can install that and use the headers that come with it. If not, try Visual Studio Express. You don't want to mix and match headers from different compilers because only the top-level headers are standardized (stdlib.h, stdio.h, etc); the header files that they include, such as the ones you listed, are not standardized.

 

EDIT: by the way, even once you get the library to import, don't assume it will work. You will almost definitely need to adjust some of the Call Library Function Node configuration , which requires an understanding of at least basic C programming. A C header simply doesn't supply enough information for the import wizard to be able to generate the correct configuration every time. For example, a C function prototype that has a pointer as a parameter could be either a pointer to an individual value or a pointer to the first element of an array; there's no way for the wizard, or for that matter the programmer, to know which it is without additional documentation. If the parameter should be an array, you need to tell the import wizard that so it will adjust the generated VIs.

0 Kudos
Message 22 of 22
(881 Views)