The RMP Motion Controller APIs
Log.cs
using RSI.RapidCode.dotNET; // Import our RapidCode Library.
using NUnit.Framework;
using System;
[TestFixture]
[Category("Software")]
class Log : SampleAppTestBase
{
[Test]
public void ErrorLog()
{
// Turn off exceptions. Exceptions will be logged as RsiError objects.
axis.ThrowExceptions(false);
// Do something that will cause an error (zero acceleration).
axis.MoveVelocity(0.0, 0.0);
while (axis.ErrorLogCountGet() > 0)
{
RsiError error = axis.ErrorLogGet();
Console.WriteLine(error.Message);
}
}
}
void MoveVelocity(double velocity)
void ThrowExceptions(bool state)
Configure a class to throw exceptions.
const RsiError *const ErrorLogGet()
Get the next RsiError in the log.
int32_t ErrorLogCountGet()
Get the number of software errors in the error log.