Table of Contents

Class GenerativeDataCapture

Namespace
LiveScope.Net
Assembly
LiveScope.Net.dll

Generate in-memory data for testing, using NWave

public class GenerativeDataCapture : IDataCapture, IPeriodicEmissionCapture, IBackgroundDataCapture
Inheritance
GenerativeDataCapture
Implements
Inherited Members

Constructors

GenerativeDataCapture(double, double, double, double, double, SweepModes)

Capture new generative data using the specified parameters

public GenerativeDataCapture(double SignalFreq, double SignalMin, double SignalMax, double SampleInterval, double VisibleTime, SweepModes SweepMode = SweepModes.Continuous)

Parameters

SignalFreq double

Generated signal frequency (Hz)

SignalMin double

Generated signal minimum value

SignalMax double

Generated signal maximum value

SampleInterval double

Data sample interval (seconds)

VisibleTime double

Maximum number of seconds visible (determines buffer size)

SweepMode SweepModes

Acquisition sweep mode (see SweepModes)

Properties

BufferSize

Buffer size (maximum number of double values stored within the buffer)

public int BufferSize { get; }

Property Value

int

DataSource

Source of data

public DataSources DataSource { get; }

Property Value

DataSources

EmissionPeriod

How often new samples are emitted, in milliseconds

public int EmissionPeriod { get; }

Property Value

int

ID

Data capture identifier

public Guid ID { get; }

Property Value

Guid

IsCapturing

Background capture thread is currently active

public bool IsCapturing { get; set; }

Property Value

bool

SampleInterval

Sample interval (seconds)

public double SampleInterval { get; }

Property Value

double

Remarks

Amount of time between each sample value (in seconds)

SampleOrder

Sample ordering

public SampleOrderTypes SampleOrder { get; }

Property Value

SampleOrderTypes

SweepMode

Sweep mode, determining when acquisition is halted

public SweepModes SweepMode { get; }

Property Value

SweepModes

Methods

SetOnDataAvailable(SamplesDelegate)

Assign callback method for when data is available to render

public void SetOnDataAvailable(SamplesDelegate callback)

Parameters

callback SamplesDelegate

Callback

StartCapture()

Start capturing

public void StartCapture()

StopCapture()

Stop capturing

public void StopCapture()