Class Device
Represents an HBM measurement device. Devices of QuantumX/SomatXR, PMX, and MGCplus family are supported.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.Hbm
Assembly: Loehnert.Lisrt.Hbm.dll
Syntax
public class Device : CompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasDeviceLabel, IHasServiceView
Constructors
Device(String)
Initializes a new instance of the Device class.
Declaration
public Device(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the Device. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
Channels
Gets the connected channels.
Declaration
public ICollection<ILisrtModule> Channels { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ILisrtModule> |
DeviceLabel
Gets or sets the device label.
Declaration
public virtual string DeviceLabel { get; set; }
Property Value
Type | Description |
---|---|
String |
Icon
Gets a icon which is representative for the module.
Declaration
public override Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Overrides
InitializationState
Gets or sets a value indicating whether the object is initialized.
Declaration
public InitializationState InitializationState { get; set; }
Property Value
Type | Description |
---|---|
InitializationState |
InstanceID
Gets or sets the ID for this instance.
Declaration
[Configuration(0)]
public virtual int InstanceID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsConnected
Gets a value indicating whether the device is connected.
Declaration
public bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsMeasuring
Gets a value indicating whether the device is measuring.
Declaration
public bool IsMeasuring { get; }
Property Value
Type | Description |
---|---|
Boolean |
MeasureValuesUpdateInterval
Gets or sets the interval for updating the measure values for the channels. Default is 100ms.
Declaration
public double MeasureValuesUpdateInterval { get; set; }
Property Value
Type | Description |
---|---|
Double |
Serial
Gets or sets the serial number for the device.
Declaration
[Configuration("", Description = "If serial is empty and only one device is found, this will be connected.")]
public string Serial { get; set; }
Property Value
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
System.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.
Declaration
public int WaitTimeForDeviceConnection { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Exit()
De initializes the object while removing the channels and disconnecting the HBM device.
Declaration
public void Exit()
Initialize()
Initializes the HBM device while connecting and adds the channels.
Declaration
public void Initialize()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when device with the serial number is found or connection with device failed. |
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()
StartMeasurement()
Starts the continuous measurement for all channels. The Waveforms will be updated depending on the MeasureValuesUpdateInterval.
Declaration
public void StartMeasurement()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized. |
StopMeasurement()
Stops the continuous measurement for all channels.
Declaration
public void StopMeasurement()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized. |