LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set default struct allocation size

How can I set the default size that CVI uses to allocate structs? Right now I think it is set to 8 bytes and I want it to be one byte.
0 Kudos
Message 1 of 2
(2,957 Views)
The default structure packing is done with pragma pack statements. CVI supports these statements so you can insert

#pragma pack 1

at the top of your code to ensure 1 byte boundary packaging of structures.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,957 Views)