GetAxisTorque

Gets the current torque from an axis. The torque can be set torque or actual torque.

Syntax

KsError GetAxisTorque(
     int Index,
     McSource Source,
     double* Torque
);

Parameters

Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.

Source: selects a torque value to read. See the McSource type.

Torque: pointer to the value to receive the torque.

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

This function can be used only when the TorqueOffset feature is enabled.

Example

N/A

Requirements

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

See also

GetAxisPosition

GetAxisVelocity

SetAxisTorque