LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW dll call complex struct

Solved!
Go to solution

Hi

 

I am just créating a LabVIEW library for a driver Dll. The Dll contains some complex structs. I just would like to know if I can get around creating a wrapper Dll for these calls.

 

This is an example of one function call:

 

Error AA_querySlaveInfo(Handle hSlave, SlaveInfo* pSlaveInfo,

int flags);

 

 typedef struct {
  int vendorId;
  int productId;
  int revision;
  int serial;
  const char* group;
  const char* image;
  const char* order;
  const char* name;
  int objCount;
  DataObjInfo* objs[1];
} SlaveInfo;

 

typedef struct {
  int objType;
  const char* name;
  int bitLength;
} DataObjInfo;

 

Help is very much aprechiated.

 

Thanks

0 Kudos
Message 1 of 3
(2,453 Views)
Solution
Accepted by topic author Keppi

Hi Keppi,

 

 its not possible, sorry. Without the last entry in the struct it would work, but that pointer to the other struct... you'll need a wrapper for that!

 

I hope that helps, 

RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 3
(2,422 Views)

Oh well, I thought so..

So thanks for confirming my misery 🙂

0 Kudos
Message 3 of 3
(2,411 Views)