.

Recorder.TraceDataType

The data type of the indexth trace.

NOTE: TraceDataType will be modified when TraceSource is set and when SetTrace is called.

Version History

Introduced in MPX 2.0.

Type

Mpx.DataType (read only)

Index

 
Index Type Description
UInt32 The index of the trace whose data type is to be accessed.
Valid values are 0 to (TraceCount-1) inclusive.

Common Exceptions

 
Error Occurs when...
Argument When the specified index exceeds (TraceCount-1).

 

Visual Basic

Syntax

Property TraceDataType As Mpx.DataType(index As UInt32)

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.TraceSource(1) = "MEIXmpBufferData.UserBuffer.Data[5]"
recorder.TraceDataType(1) = Mpx.DatatType.UInt32
recorder.TraceMask(1) = &H7FFFFF
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

Mpx.DataType[] TraceDataType;

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.TraceSource[1] = "MEIXmpBufferData.UserBuffer.Data[5]";
recorder.TraceDataType[1] = Mpx.DatatType.UInt32;
recorder.TraceMask[1] = 0x7FFFFF;
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

SetTrace
TraceCount
TraceSource
TraceMask

 

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