Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the structure members

Hi,
  In my application , i want to know how to access the structure members?
  for ex:
              typedef struct MYSTRUCTtag{
               unsigned char controls;
               .
               .
               unsigned char arr[8];
               .
               .
               unsigned short controls;
               .
               .
               unsigned char arr[8];
               .
               .
               } MYSTRUCT
 
 
 
MYSTRUCTtag aparameter
 
 
In my function i'm using this aparameter (which is of MYSTRUCTtag type) as an argument.
 
     Func1( arg1, sizeof(aParameter),&aParameter );
 
 
 
How could i do this in Labview?
0 Kudos
Message 1 of 2
(6,797 Views)
Hi there.  From your post, it sounds like you are interested in determining the size of an array in a cluster and accessing other elements of the cluster.  In LabVIEW, this can be done by unbundling the cluster and/or using property nodes for the different elements in the cluster.  Property nodes are created by right clicking on an element and selecting Create>>Property Node, which opens up a list of properties you can view or change.

If this doesn't answer your question, please describe what exactly you are wanting to do.  Also, this may have more responses if you post on the LabVIEW forum.

Hope that helps!
Lorielle P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(6,782 Views)