LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use void type in cluster

Dear All;

 

For example In C language we have:

 

struct Mystruct

{

     int i;

     void    *pV;

};

 

How I can create this struct with labview?

cluster in labview are similar to structure in C , It is possible to define pointer to void in cluster?

 

thanks;

Ali

0 Kudos
Message 1 of 3
(2,608 Views)

I'm not very experienced at C, but itsn't a pointer just an I32 (long)? So long as you don't actually wish to read the data from the pointed location (which is difficult but possible) then all that matters is that you store the pointer appropriately, so try using an I32 numeric.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


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

Yes, Thoric is correct - replace the pointer in the struct with an integer in the cluster.  On a 32-bit operating system that will be a 32-bit integer; on a 64-bit platform, you'll need to use a 64-bit integer.

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