Class LiveScopeFileDataCapture
Playback data from a LiveScope file
public class LiveScopeFileDataCapture : IDataCapture, IPeriodicEmissionCapture, IBackgroundDataCapture
- Inheritance
-
LiveScopeFileDataCapture
- Implements
- Inherited Members
Constructors
LiveScopeFileDataCapture(Stream, double, int)
Capture new LiveScope data capture from the specified stream
public LiveScopeFileDataCapture(Stream Stream, double VisibleTime, int UpdatePeriodMs = 10)
Parameters
Stream
StreamData stream
VisibleTime
doubleMaximum number of seconds visible (determines buffer size)
UpdatePeriodMs
int(Optional) How often data is emitted (milliseconds)
LiveScopeFileDataCapture(string)
Capture LiveScope data from the specified file and statically display all the data
public LiveScopeFileDataCapture(string FilePath)
Parameters
FilePath
stringFile path
LiveScopeFileDataCapture(string, double, int)
Capture LiveScope data from the specified file and replay the data as if it was live data
public LiveScopeFileDataCapture(string FilePath, double VisibleTime, int UpdatePeriodMs = 10)
Parameters
FilePath
stringFile path
VisibleTime
doubleMaximum number of seconds visible (determines buffer size)
UpdatePeriodMs
int(Optional) How often data is emitted (milliseconds)
Properties
BufferSize
Buffer size (maximum number of double values stored within the buffer)
public int BufferSize { get; }
Property Value
DataSource
Source of data
public DataSources DataSource { get; }
Property Value
EmissionPeriod
How often new samples are emitted, in milliseconds
public int EmissionPeriod { get; }
Property Value
ID
Data capture identifier
public Guid ID { get; }
Property Value
IsCapturing
Background capture thread is currently active
public bool IsCapturing { get; set; }
Property Value
SampleInterval
Sample interval (seconds)
public double SampleInterval { get; }
Property Value
Remarks
Amount of time between each sample value (in seconds)
SampleOrder
Sample ordering
public SampleOrderTypes SampleOrder { get; }
Property Value
SweepMode
Sweep mode, determining when acquisition is halted
public SweepModes SweepMode { get; }
Property Value
Methods
SetOnDataAvailable(SamplesDelegate)
Assign callback method for when data is available to render
public void SetOnDataAvailable(SamplesDelegate callback)
Parameters
callback
SamplesDelegateCallback
StartCapture()
Start capturing
public void StartCapture()
StopCapture()
Stop capturing
public void StopCapture()