AddAxisToGroup

Adds an axis to a group. This command can't be buffered.

Syntax

KsError AddAxisToGroup(
     int Index,
     int AxisIndex,
     int IndexInGroup
);

Parameters

Index [in]: the index of an axis group. Indexes are zero based. Aliases affect this parameter. You can have up to 32 groups.

AxisIndex [in]: the axis to be added to the group. Each group can contain up to 64 axes.

IndexInGroup [in]: the index of an axis in the group.

Return value

If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.

Remarks

Example

VOID AssignAxes(INT Group, INT AxisX, INT AxisY) {
   KsError nRet = AddAxisToGroup(Group, AxisX, 0);
   nRet = AddAxisToGroup(Group, AxisY, 1);
}

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksmotion.h ksmotion.h
Library KsApi_Rtss.lib KsApi.lib

See also

RemoveAxisFromGroup

UngroupAllAxes