LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pointer to structure, retrieve into a cluster

I have a DLL that returns a pointer to an array of pointers.  Each pointer in this array points to a structure.  How do I access/display the contents of the structures in a cluster?
0 Kudos
Message 1 of 5
(2,798 Views)

Danny... not sure if this helps but i've done a lot of work with DLLs in LabView and found that using the "Import Shared Library Wizard" makes things a little easier.

 

Have you tried using this? 

 

Go to Tools >> Import >> Shared Library (dll)

 

When done, it will create DLL call blocks for you automatically based on the DLL structures.  See if this helps you at all.

0 Kudos
Message 2 of 5
(2,796 Views)

Hello,

 

Yes I used the Import Shared Library Wizard to import the DLL, perform the function and return the initial pointer.  I then used that pointer and the MoveBlock function to retrieve the array of pointers.  But from those pointers I cannot retrieve the structure/cluster data.

 

How can I do this?

0 Kudos
Message 3 of 5
(2,794 Views)

take a look at thsi article.

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=267659#M267659

 

It's long and probably off topic but in the examples, the author shows how to drill down into lower classes.  You will probably want to obtain the LabView Scripting (which was released free a few weeks ago).  The scripting provides access to many more properties which may be of use.

0 Kudos
Message 4 of 5
(2,791 Views)

So to simplify my request, I have a pointer to a structure, how can I view the data in the structure.

 

the structure contains 

 

{

char

enum

int

double

}

 

Here is my code so far

 

 

0 Kudos
Message 5 of 5
(2,776 Views)