Table of Contents

Struct Sample

Namespace
LiveScope.Net.Client
Assembly
LiveScope.Net.dll

Sample data

public struct Sample
Inherited Members

Remarks

Must match native struct layout

Constructors

Sample(double, double, double)

Create a new sample

public Sample(double x_value, double y_value, double sample_interval)

Parameters

x_value double

X value (e.g. seconds)

y_value double

Y value (e.g. volts)

sample_interval double

Sample interval (in seconds)

Fields

SampleInterval

Measurement sample interval (seconds) when this sample was measured

public double SampleInterval

Field Value

double

XValue

X value

public double XValue

Field Value

double

Remarks

Typically time, in seconds

YValue

Y value

public double YValue

Field Value

double

Remarks

e.g. Volts

Operators

operator ==(Sample, Sample)

public static bool operator ==(Sample left, Sample right)

Parameters

left Sample
right Sample

Returns

bool

implicit operator IntPtr(Sample)

public static implicit operator IntPtr(Sample clr)

Parameters

clr Sample

Returns

IntPtr

operator !=(Sample, Sample)

public static bool operator !=(Sample left, Sample right)

Parameters

left Sample
right Sample

Returns

bool