LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Struct to C++ dll

Please help!
 
 
C++ code
 
typedef struct MyStruct
 {
     char*  name1;
     char*  name2;
     char name3[10];
     char name4[10];
} mystruct;
   
int MyFunc(char* name1, char* name2, char* name3, char* name4)
{
 
}
 
 
 
 
How to call this to from labview CallLibraryfunction node
 
 
0 Kudos
Message 1 of 3
(2,664 Views)
Hi,

Here is a KnowledgeBase article that describes how to call a DLL in C++ with a Call Library Function node in LabVIEW. I hope this helps!
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 2 of 3
(2,636 Views)
You can use, Automation Refnum from the controls pallette. use it to select the dll you want to link and select the class( automation refnum) and the method (use invoke node) on the block diagram.
 
Hope it helps.
 
0 Kudos
Message 3 of 3
(2,634 Views)