LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use all functions with tha shared library

Hi

 

I would like to access all functions of a .dll file but using import shared library I have received the following errors:

 

 Import Shared Library Report        Monday, February 08, 2016  5:37:52 PM  
       Your generated files are installed in the following folder:     C:\Program
Files (x86)\National Instruments\LabVIEW 2012\user.lib\umanipulatorctl  
Parsing header file warnings:     No errors/warnings occurred when parsing
the header file.             The following errors/warnings occurred when
generating the wrapper VIs for this shared library.     Cannot create VI   
The following VI cannot be created. This might indicate that the associated
function contains parameters of a data type that cannot be converted
directly. To work around this issue, you can create a custom control or
typedef control to represent a complex structure or multidimensional array,
then re-run the Import Shared Library wizard and select Update VIs from a
shared library. Using the same shared library, step through the wizard again.
On the Configure VIs and Controls page, assign the custom control or typedef
to the associated parameter(s). Complex structures include nested structures,
structure
s containing arrays, arrays of strings, and multidimensional arrays.  

close.vi  

cmd.vi  

get mem position.vi  

get mem position ext.vi  

get position.vi  

get position ext.vi  

goto mem position.vi  

 

goto mem position ext.vi  

is busy.vi  

 

is busy ext.vi  

last error.vi  

last errorstr.vi  

 

last os error.vi  

ping.vi  

read.vi  

 

recv.vi  

select dev.vi  

 

set refresh time limit.vi  

 

status.vi  

status ext.vi  

store mem current position.vi  

store mem current position ext.vi  

 

store mem position.vi  

store mem position ext.vi  

 

write.vi  

x position.vi  

x position ext.vi  

y position.vi  


y position ext.vi  

z position.vi  

z position ext.vi    Cannot generate library     Cannot generate library. The
destination folder might be defined as read-only.  

0 Kudos
Message 1 of 2
(3,108 Views)

Dear tiho,

 

from your description ot looks like, that the library you would like to use contains and uses the data types, which are not directly supported by LabVIEW (like for example structs). To be able to call this library from LabVIEW you need to manually define how those data types will be represented by LabVIEW. From my personal experience the best way is to represent those data types by clusters. You can find example of this approach on NI Community page here:

 

Calling C/C++ DLLs from LabVIEW

https://decibel.ni.com/content/docs/DOC-9076

 

Please let me know, if you need further assistance.

 

Regards,

Michal Jadrny

AE CZ/SK

National Instruments

0 Kudos
Message 2 of 2
(2,968 Views)