Using Clusters in the Function Prototype (C Generator)

LabVIEW 2011 C Generator Help

Edition Date: June 2013

Part Number: 373144C-01

»View Product Info

The LabVIEW C Generator represents clusters as structs, which are defined in the VINameLib.h file, where VIName is the name of the exported VI. The C Generator only supports flat clusters, which are clusters that contain only scalar values.

Note  The Parameters list of the Define VI Prototype dialog box does not display clusters that are not flat clusters.

The following example shows a cluster control that contains a Boolean control and a numeric control:

When the C Generator generates C code for the VI that contains the cluster shown in the previous example, the C Generator creates the following struct to represent the cluster:

typedef struct {

   Boolean myBool;

   float64 myDouble;

} TD1;


Not Helpful