CommonCAdapter.GetStructPacking

Syntax

CommonCAdapter.GetStructPacking( typeDefinition)

Return Value

StructPassingOptions

Use the following constants with this data type:

  • 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.

Indicates the structure passing for the specific type definition.

Purpose

Returns the manner in which an adapter packs the structure parameters it passes to a corresponding module. The packing options must match the structure packing for the struct in the code module.

Parameters

typeDefinition As PropertyObject

[In] Specifies the type definition. This method returns an error if the PropertyObject is not a type definition.

See Also

C/C++ DLL Adapter Configuration

CommonCAdapter.DefaultStructPacking

CommonCAdapter.SetStructPacking

LabWindows/CVI Adapter Configuration dialog box

PropertyObject