Table of Contents

Class Device

Namespace
Loehnert.Lisrt.Hbm
Assembly
Loehnert.Lisrt.Hbm.dll

Represents an HBM measurement device. Devices of QuantumX/SomatXR, PMX, and MGCplus family are supported.

public class Device : CompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasDeviceLabel, IHasServiceView
Inheritance
PropertyChangedBase
Device
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

Device(string)

Initializes a new instance of the Device class.

public Device(string name)

Parameters

name string

The name of the Device.

Exceptions

ArgumentNullException

Thrown when name is null or empty.

Properties

Channels

Gets the connected channels.

public ICollection<ILisrtModule> Channels { get; }

Property Value

ICollection<ILisrtModule>

DeviceLabel

Gets or sets the device label.

public virtual string DeviceLabel { get; set; }

Property Value

string

Icon

Gets a icon which is representative for the module.

public override Uri Icon { get; }

Property Value

Uri

InitializationState

Gets or sets a value indicating whether the object is initialized.

public InitializationState InitializationState { get; set; }

Property Value

InitializationState

InstanceID

Gets or sets the ID for this instance.

[Configuration(0)]
public virtual int InstanceID { get; set; }

Property Value

int

IsConnected

Gets a value indicating whether the device is connected.

public bool IsConnected { get; }

Property Value

bool

IsMeasuring

Gets a value indicating whether the device is measuring.

public bool IsMeasuring { get; }

Property Value

bool

MeasureValuesUpdateInterval

Gets or sets the interval for updating the measure values for the channels. Default is 100ms.

public double MeasureValuesUpdateInterval { get; set; }

Property Value

double

Serial

Gets or sets the serial number for the device.

[Configuration("", Description = "If serial is empty and only one device is found, this will be connected.")]
public string Serial { get; set; }

Property Value

string

Exceptions

InvalidOperationException

Thrown when setting Serial while InitializationState is Initialized.

WaitTimeForDeviceConnection

Gets or sets a wait time for devices on initialization in ms. Default is 5000ms.

public int WaitTimeForDeviceConnection { get; set; }

Property Value

int

Methods

Exit()

De initializes the object while removing the channels and disconnecting the HBM device.

public void Exit()

Initialize()

Initializes the HBM device while connecting and adds the channels.

public void Initialize()

Exceptions

InvalidOperationException

Thrown when device with the serial number is found or connection with device failed.

ShowServiceView()

Shows the service window.

public void ShowServiceView()

StartMeasurement()

Starts the continuous measurement for all channels. The Waveforms will be updated depending on the MeasureValuesUpdateInterval.

public void StartMeasurement()

Exceptions

InvalidOperationException

Thrown when InitializationState is not Initialized.

StopMeasurement()

Stops the continuous measurement for all channels.

public void StopMeasurement()

Exceptions

InvalidOperationException

Thrown when InitializationState is not Initialized.