const int cycles = 2;
const int NUM_OF_AXES = 6;
int i;
double[] accelerations = new double[6] { 1000, 1000, 1000, 1000, 1000, 1000 };
double[] velocities = new double[6];
Random rnd = new Random();
Axis x_axis = controller.
AxisGet(Constants.X_AXIS_NUMBER);
Axis y_axis = controller.
AxisGet(Constants.Y_AXIS_NUMBER);
Axis z_axis = controller.
AxisGet(Constants.Z_AXIS_NUMBER);
Axis a_axis = controller.
AxisGet(Constants.A_AXIS_NUMBER);
Axis b_axis = controller.
AxisGet(Constants.B_AXIS_NUMBER);
Axis c_axis = controller.
AxisGet(Constants.C_AXIS_NUMBER);
for (i = 0; i < cycles; i++)
{
int random_vel1 = rnd.Next(1, 100);
int random_vel2 = rnd.Next(1, 100);
int random_vel3 = rnd.Next(1, 100);
int random_vel4 = rnd.Next(1, 100);
int random_vel5 = rnd.Next(1, 100);
int random_vel6 = rnd.Next(1, 100);
velocities = new double[6] {random_vel1,
random_vel2,
random_vel3,
random_vel4,
random_vel5,
random_vel6 };
System.Threading.Thread.Sleep(100);
}