ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Building DLL, LabView 8.2

Hello everybody,

 

I'm building a CVI application. I need some functions of LabView (related to time series analysis), so I'm trying to build DLLs with the .VIs I need. I followed all the steps necesary and visited all the related topics at ni.com. I always get the following error:

 

Visit the Request Support page at ni.com/ask to learn more about resolving this problem. +¡

Use the following information as a reference: Error -2147221480 occurred at Building DLL stub.

This can be caused by illegal function or parameter names. Please verify your names are legal C identifiers and do not conflict with LabVIEW headers

This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.

 

Once, I got a correct DLL with no errors, so it should be possible for others.

 

This is an example of what I'm trying to compile:

 

 

And this is what appears, only for a moment, at the end of the compiling (it didn't appear when I manage to build with no errors):

 

I'm using: LabView 8.2, LabWindows CVI 8.5, NI-DAQ 8.5, Windows XP (SP2)

Any suggestion is really appreciated.

Maybe another way to use this functions in CVI (I need functions related to spectral estimation, ARMA; MUSIC,...)

 

thank you!

 

Eduardo Tamargo

Spain

0 Kudos
Message 1 of 6
(3,924 Views)

I realized that the problem is when compiling a .vi that receives an array and it's length, because when it receives all clusters, it's builded correctly.

Any suggestions?

0 Kudos
Message 2 of 6
(3,909 Views)

Hi Tamargo,

 

This link [broken link removed] may be helpful.

 

Regards,

David Oña
Message 3 of 6
(3,871 Views)

Thank you very much for your reply.

 

As I could see trying different solutions, the problem is not about the returning value. It seems like the .VIs I wanted to create, are only valid for clusters as input parameters, and not for arrays, despite it offers this option when designing the prototype.

0 Kudos
Message 4 of 6
(3,862 Views)

Hi Tamargo,

 

     The following KnowledgeBases may help you find out what is happening:

Creating and Calling LabVIEW DLLs with Various Data Types from Microsoft Visual C++ 

What are the Differences Between "Array Data Pointer", "Array Handle", and "Array Handle Pointer"? 

Calling a LabVIEW DLL from C with an Array in a Cluster as a Parameter 

 

     Have you tried developing a very simple VI with an array as an input parameter and checking if the same problem takes place when you build the DLL?

 

Regards,

David Oña
Message 5 of 6
(3,802 Views)

Thank you for your reply.

 

By the moment, I tried what I wanted in another computer and it worked, so I think it's related to the NI products intalled in my PC. I've installed several versions of LabView and LabWindows, and at the end, it seems to be a mess when they have to communicate to each other. In a computer with just the whole pack of LabWindows and LabView, I don't get that error. So, I will make the DLLs I need in that computer.

 

Thanks

 

Eduardo Tamargo

0 Kudos
Message 6 of 6
(3,776 Views)