29using RSI.RapidCode.dotNET;
36class AxisStatusSample : SampleAppTestBase
38 [Test, Timeout(Constants.MAX_TEST_TIME)]
39 public void AxisStatus()
46 Console.WriteLine(
"Your Axis is in state: " + state);
54 case RSIState.RSIStateSTOPPING_ERROR:
58 Console.WriteLine(
"Your Axis is in state: " + state);
59 Console.WriteLine(
"The source of the axis error is: " + axis.
SourceNameGet(source));
62 Console.WriteLine(
"");
const char *const SourceNameGet(RSISource source)
Get the name (string) of the source of an error for an Axis or MultiAxis.
bool StatusBitGet(RSIEventType bitMask)
Return the state of a status bit.
RSIState StateGet()
Get the Axis or MultiAxis state.
RSISource SourceGet()
Get the source of an error state for an Axis or MultiAxis.
RSIEventType
Event Types or Status Bits.
RSISource
Possible sources that have caused an Error state.