◆ SourceNameGet()

virtual char* SourceNameGet ( RSISource  source)
pure virtual

Get the name (string) of the source of an error for an Axis or MultiAxis.

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the State and Status method group.

Description:
SourceNameGet will return the first status bit which is set on an Axis or MultiAxis. The source can be checked when in an error state. There may be additional status bits set, use StatusBitGet to check any other bits.
Parameters
source(RSISource)
Returns
(char*) The name of the RSISource.
Sample Code:
if (axis->StateGet() == RSIStateERROR)
{
int32_t source = axis->SourceGet();
printf("Error source is %s\n", axis->SourceNameGet(source));
}
RapidSetup:
Go to Axis screen, Status tab.
Axis_Source_Good.jpg
This displays the various bit that are checked if axis is in error state
Note
See also
RSISource, StateGet