LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call a method with complex data type from a DLL file

Hi,

 

I have a win32 API with a dll file, and I am trying to call some methods from it in the labview. To do this, I used the import library wizard, and everything is working as expected. The only problem which I have is with a method with complex data type as return type (a vector). According to this link, import library wizard can not import methods with complex data type.

 

The name of this method is this:   const std::vector< BlackfinInterfaces::Count > Counts ()

where Count is a structure defined as below:

 

struct Count
{
   Count() : countTime(0) {}
   std::vector<unsigned long> countLines;

   time_t countTime;
};

 

It seems that I should manually use the Call Library Function Node. How can I configure parameters for the above method?

0 Kudos
Message 1 of 2
(2,086 Views)

You cannot configure Call Library Function Node to call this function.  LabVIEW has no way to pass a C++ class such as vector to a DLL.

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