Learn how to use Recorders.
- Warning
- This is a sample program to assist in the integration of the RMP motion controller with your application. It may not contain all of the logic and safety features that your application requires. We recommend that you wire an external hardware emergency stop (e-stop) button for safety when using our code sample apps. Doing so will help ensure the safety of you and those around you and will prevent potential injury or damage.
The sample apps assume that the system (network, axes, I/O) are configured prior to running the code featured in the sample app. See the Configuration page for more information.
📜 Recorder
In this sample app we show you how easy it is to track multiple drive parameters with a Recorder.
const int VALUES_PER_RECORD = 2;
const int RECORD_PERIOD_SAMPLES = 1;
const int RECORD_TIME = 250;
const int INPUT_INDEX = 0;
Axis axis = CreateAndReadyAxis(Constants.AXIS_NUMBER);
{
}
Console.WriteLine("There are {0} Records available.", recordsAvailable);
for (int i = 0; i < recordsAvailable; i++)
{
{
i = recordsAvailable;
Console.WriteLine("Your encoder position was: " + positionRecord + " when the input triggered.");
}
}
Learn more in the concept page.