Click or drag to resize

TraceBufferClient Class

TraceBufferClient that allows to interact with the TraceBufferServer on a SP-ICE-3 card.
Inheritance Hierarchy
SystemObject
  RAYLASE.SPICE3.TraceBufferTraceBufferClient

Namespace: RAYLASE.SPICE3.TraceBuffer
Assembly: RAYLASE.SPICE3.TraceBufferLib (in RAYLASE.SPICE3.TraceBufferLib.dll) Version: 3.5.2
Syntax
C#
public class TraceBufferClient : IDisposable

The TraceBufferClient type exposes the following members.

Properties
 NameDescription
Public propertyConnected Indicates if the connection to the card is open.
Public propertyReadTimeout Maximum time in ms to wait for a TraceEvent when calling Read(TraceEvent, Int32, Int32). Use Infinite to wait forever. If timeout is set to 0, Read(TraceEvent, Int32, Int32) will directly return without an error if nothing is available. Otherwise a TimeoutExceptionis thrown if an timeout occurs.
Top
Methods
 NameDescription
Public methodAcquire Reads all currently available events. Skips all events that occur before the start label. Remember that for this to work the desired events have to be enabled before TraceBufferConfig. At least Label has to be enabled. Events will only be received if Start was called before.
Public methodClear Clears currently available TraceEvent locally and on the card.
Public methodConnect Connect to the TraceBuffer-server on the SP-ICE-3 card
Public methodDisconnect Disconnects from the TraceBuffer server.
Public methodDispose Releases the Instance of this class.
Public methodGetConfig Gets the configuration from the card.
Public methodRead Reads a block of TraceEvent.
Public methodSetConfig Sets the configuration on the card.
Public methodStart Starts streaming from the card.
Public methodStop Stops streaming from the card.
Public methodStatic memberTickToMicroSecond Convert card ticks to μs
Public methodStatic memberToEventGroup Groups all events by their Timestamp. All events with the same Timestamp are stored in another dictionary with their EventType as key.
Public methodStatic memberToGroup Groups all events by their Timestamp. All events with the same Timestamp are stored in a list.
Public methodStatic memberToSignedPosition(Int64) Convert unsigned 20 bit position value received from the TraceBuffer to an signed position
Public methodStatic memberToSignedPosition(ListTraceEvent, Boolean) Converts the Value of all position events to a signed position.
Public methodTryRead Reads a block of TraceEvent.
Top
Remarks
This allows to receive TraceEvent from a SP-ICE-3 card and to configure the TraceEvents that should occur.
See Also