using RSI.RapidCode.dotNET;
using NUnit.Framework;
[TestFixture]
[Category("Software")]
public class Motion : SampleAppTestBase
{
public void AbsoluteMotion()
{
}
public void SCurveMotion()
{
}
public void FinalVelocity()
{
int finalVelocity = 5;
finalVelocity);
{
Assert.That(axis.
CommandVelocityGet(), Is.EqualTo(finalVelocity),
"The command velocity should be equal to FINAL_VELOCITY");
TearDown();
}
}
public void RelativeMotion()
{
Assert.That(cmdPositionAfterMove, Is.EqualTo(
Constants.
POSITION),
"The command position should be equal to POSITION");
}
[Test]
public void MoveVelocity()
{
{
TearDown();
}
}
}
Constants used in the C# sample apps.
const double POSITION
@[BasicConstants]
double CommandPositionGet()
Get the current command position.
void MoveVelocity(double velocity)
void MoveTrapezoidal(double position, double vel, double accel, double decel)
Point-to-point trapezoidal move.
double CommandVelocityGet()
Get the current commanded velocity.
void MoveRelative(double relativePosition, double vel, double accel, double decel, double jerkPct)
Command a relative point-to-point S-Curve motion.
void MoveSCurve(double position, double vel, double accel, double decel, double jerkPct)
int32_t MotionDoneWait()
Waits for a move to complete.