> struct
> {
> unsigned char a;
> unsigned char b;
> unsigned int c;
> unsigned char string[SOME_FIXED_LENGTH];
> unsigned int d;
> }
>
> if I create a mirroring cluster type in labview and wire the data and
> the type into the unflatten, the above won't work because the
> unflatten node expects a type preceding the array in the data.
>
The thing I'd do is to make the cluster like above, but make a cluster
instead of an array. LV doesn't really have fixed size arrays, at least
not yet, but clusters are identical to the fixed array above.
It is usually easiest to build this cluster on the diagram with a bundle
with u8s and u32s wired up for the other elements. Make an array
constant or an initialized array of SOME_FIXED_LENGTH e
lements and
convert it to a cluster using the Array to Cluster conversion node. Be
sure to popup on the node and configure it to make the correctly sized
cluster. Wire that into the bundle as well. This now matches your
struct above. Now you can use unflatten or convert.
Greg McKaskle