#include "rsi.h"
#include "HelperFunctions.h"
using namespace RSI::RapidCode;
const int AXIS_NUMBER = 0;
const int POSITION_TOLERANCE_FINE = 200;
const int POSITION_TOLERANCE_COARSE = 300;
const int VELOCITY_TOLERANCE = 12000;
const int SETTLING_TIME = 5;
void PrintResult(
Axis *axis,
char * Vals)
{
printf("\r%s", Vals);
}
void settleCriteriaMain()
{
try
{
SampleAppsCPP::HelperFunctions::CheckErrors(controller);
axis = controller->
AxisGet(AXIS_NUMBER);
SampleAppsCPP::HelperFunctions::CheckErrors(axis);
PrintResult(axis, "OLD VALUES \n------------");
PrintResult(axis, "NEW Values \n------------");
}
{
printf(
"\n%s\n", err.
text);
}
system("pause");
}