#include "rsi.h"
#include "HelperFunctions.h"
void SingleAxisSyncOutputsMain()
{
const int NODE_INDEX = 0;
const int AXIS_NUMBER = 0;
const int USER_UNITS = 1048576;
const int TOTAL_POINTS = 4;
const int EMPTY_CT = -1;
const int OUTPUT_INDEX = 0;
double positions[] = { 1.0, 2.0, 3.0, 4.0 };
double times[] = { 0.5, 1.0, 2.0, 4.0 };
int outputEnableID = 2;
int outputDisableID = 3;
char rmpPath[] = "C:\\RSI\\X.X.X\\";
try
{
axis->
MovePT(RSIMotionType::RSIMotionTypePT, positions, times, TOTAL_POINTS, EMPTY_CT,
false,
true);
printf("Motion started. Waiting to complete.\n");
printf("Motion Complete. The outputs should have been set\n");
}
{
printf(
"%s\n", err.
text);
}
system("pause");
}