.

Recorder.TraceCount

The number of traces the recorder object uses while recording. The minimum value for TraceCount is 0 and the maximum value is 16.

Version History

Introduced in MPX 2.0.

Type

Int32

Common Exceptions

 
Error Occurs when...
Argument An invalid argument is specified.

Visual Basic

Syntax

Property TraceCount As Int32

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

Recorder1

C#

Syntax

int TraceCount;

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

TraceSource
TraceDataType
TraceMask

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering