#include "rsi.h"
#include "HelperFunctions.h"
void SingleAxisSyncOutputsMain()
{
using namespace RSI::RapidCode;
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\\";
SampleAppsCPP::HelperFunctions::CheckErrors(controller);
try
{
SampleAppsCPP::HelperFunctions::StartTheNetwork(controller);
SampleAppsCPP::HelperFunctions::CheckErrors(axis);
printf("Motion started. Waiting to complete.\n");
printf("Motion Complete. The outputs should have been set\n");
}
{
printf(
"%s\n", err.
text);
}
system("pause");
}