Recorder.ConfigurationEnd
ConfigurationEnd ends the configuration process for a Recorder object and writes all new configurations to the controller since the last call to ConfigurationBegin.
Version History
Introduced in MPX 2.0.
Result
Void
Common Exceptions
|
Error |
Occurs when... |
RecorderCannotConfigure |
The Recorder object is not configured. ConfigurationBegin has not been called since the last call to ConfigurationEnd. |
|
Visual Basic
Syntax
Sub ConfigurationEnd()
Sample Code
|
Dim recorder As Mpx.Recorder = controller.Recorder(3)
' Acquire ownership of the Recorder
recorder.Acquire()
' Configure Recorder
recorder.ConfigurationBegin()
recorder.TraceCount = 2
recorder.SetTrace(0, Mpx.Map.SampleCounter)
recorder.SetTrace(1, Mpx.Map.CommandPosition, 2)
recorder.Period = 0.01 ' 10 milliseconds
recorder.ConfigurationEnd()
' Add two buffers
recorder.BufferAdd(1.0) ' 1 second = 100 samples
recorder.BufferAdd(1.0)
' Start Recorder
recorder.Start() |
Sample Application
C#
Syntax
void ConfigurationEnd();
Sample Code
|
Mpx.Recorder recorder = controller.Recorder[3];
// Acquire ownership of the Recorder
recorder.Acquire();
// Configure Recorder
recorder.ConfigurationBegin();
recorder.TraceCount = 2;
recorder.SetTrace(0, Mpx.Map.SampleCounter);
recorder.SetTrace(1, Mpx.Map.CommandPosition, 2);
recorder.Period = 0.01; // 10 milliseconds
recorder.ConfigurationEnd();
// Add two buffers
recorder.BufferAdd(1.0); // 1 second = 100 samples
recorder.BufferAdd(1.0);
// Start Recorder
recorder.Start(); |
See Also
ConfigurationBegin
Overviews
Overview of MPX ConfigurationBegin and ConfigurationEnd
|