Class Device
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
-
PropertyChangedBaseDevice
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
Device(string)
Initializes a new instance of the Device class.
public Device(string name)
Parameters
Exceptions
- ArgumentNullException
Thrown when
name
is null or empty.
Properties
Channels
Gets the connected channels.
public ICollection<ILisrtModule> Channels { get; }
Property Value
DeviceLabel
Gets or sets the device label.
public virtual string DeviceLabel { get; set; }
Property Value
Icon
Gets a icon which is representative for the module.
public override Uri Icon { get; }
Property Value
InitializationState
Gets or sets a value indicating whether the object is initialized.
public InitializationState InitializationState { get; set; }
Property Value
InstanceID
Gets or sets the ID for this instance.
[Configuration(0)]
public virtual int InstanceID { get; set; }
Property Value
IsConnected
Gets a value indicating whether the device is connected.
public bool IsConnected { get; }
Property Value
IsMeasuring
Gets a value indicating whether the device is measuring.
public bool IsMeasuring { get; }
Property Value
MeasureValuesUpdateInterval
Gets or sets the interval for updating the measure values for the channels. Default is 100ms.
public double MeasureValuesUpdateInterval { get; set; }
Property Value
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
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
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.