Using Clusters in the Function Prototype (C Generator)
- Updated2023-02-21
- 1 minute(s) read
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;
