StructPassingOptions
- 已更新2025-07-21
- 閱讀時間為 1 分鐘
StructPassingOptions
Use these constants with the CommonCAdapter.DefaultStructPacking property and the CommonCAdapter.GetStructPacking and CommonCAdapter.SetStructPacking methods to specify the packing alignment for structure and union members.
- StructPassing_AdapterDefault –(Value: 0x0) Specifies to use the default TestStand setting to store structure and union members. You can change the default TestStand setting by modifying the CommonCAdapter.DefaultStructPacking property or by configuring it in the C/C++ DLL Adapter Configuration or LabWindows/CVI Adapter Configuration dialog boxes. Do not pass StructPassing_AdapterDefault to the CommonCAdapter.DefaultStructPacking property itself.
- StructPassing_EightByte –(Value: 0x8) Specifies to store structure and union members on an 8-byte boundary.
- StructPassing_FourByte –(Value: 0x4) Specifies to store structure and union members on a 4-byte boundary.
- StructPassing_OneByte –(Value: 0x1) Specifies to store structure and union members on a 1-byte boundary.
- StructPassing_SixteenByte –(Value: 0x16) Specifies to store structure and union members on a 16-byte boundary.
- StructPassing_TwoByte –(Value: 0x2) Specifies to store structure and union members on a 2-byte boundary.
See Also
CommonCAdapter.DefaultStructPacking
CommonCAdapter.GetStructPacking
CommonCAdapter.SetStructPacking