Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69177

Calling frunction from dll that has struct parameters that consist of struct

$
0
0

I have function in DLL:

 

unsinged long MyFunction( void *pHandle, OverCurrentProtection *pStatus);

 

Parameter *pStatus is of a type OverCurrentProtection that is defined in c++ as:

 

structOverCurrentProtection : OverVoltageProtection

{

 uint32_t current_ma

uint32_t current_A

}

 

and the parent class of a OverCurrentProtection is OverVoltageProtection, that is defined as:

 

structOverVoltageProtection

{

 uint32_t testFinished;

uint32_t rec = 0;

}

 

When I try to import DLL using Import Shared Library wizard the function is not recognized.

My Questions:

1. How can function be defined using Call library function node?

2. How should function be defined in c++ so that Labview will be able to recognize it?

 

 


Viewing all articles
Browse latest Browse all 69177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>