Class LJX8000EModule
- Namespace
- Loehnert.Lisrt.LaserProfiler.Keyence
- Assembly
- Loehnert.Lisrt.LaserProfiler.Keyence.dll
Represents a LisRT module for a Keyence laser profiler LJ-X8000E.
public class LJX8000EModule : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseLJX8000EModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
LJX8000EModule(string, ICommunication)
Initializes a new instance of the LJX8000EModule class.
public LJX8000EModule(string name, ICommunication communication)
Parameters
name
stringThe name of the instance.
communication
ICommunicationThe communication for this instance. Set the EndDelimiter to the end delimiter configured in the device. The default end delimiter is "\r".
Exceptions
- ArgumentNullException
Thrown when
communication
is null.
Properties
CurrentProgramNumber
Gets the current program number for this module.
public int CurrentProgramNumber { get; }
Property Value
CurrentSdCardNumber
Gets the current SD-Card Number for the CurrentProgramNumber.
public int CurrentSdCardNumber { get; }
Property Value
FirmwareVersion
Gets the firmware version.
public string FirmwareVersion { get; }
Property Value
IsInRunMode
Gets a value indicating whether module is in run mode.
public bool IsInRunMode { get; }
Property Value
Methods
Exit()
Deinitializes the module and all of its sub modules, whose InitializationState doesn't equals to NotInitialized.
public override void Exit()
Initialize()
Initializes the module.
public override void Initialize()
Remarks
Initialize your module in a try-catch, then call the InitializeSubModules() to initialize the submodules. Re-throw the exception in the catch block, with ThrowWithModuleInformation(Exception, ILisrtModule). Don't forget to set the InitializationState. Note that you can initialize a submodule yourself if it is required for the initialization of this module.
Measure()
Sends the trigger command and receives data from device.
public IReadOnlyList<double> Measure()
Returns
- IReadOnlyList<double>
Data from device.
Remarks
Returned data are depending on device configuration.
Exceptions
- InvalidOperationException
Thrown when module is not initialized or receives an error.
- TimeoutException
Thrown when no data are received before timeout.
SetProgramNumber(int, int)
Sets the program for this module.
public void SetProgramNumber(int sdCardNumber, int programmNumber)
Parameters
Exceptions
- InvalidOperationException
Thrown when module is not initialized or receives an error.
- ArgumentOutOfRangeException
Thrown when
sdCardNumber
is neither 1 nor 2, orprogrammNumber
is less than 0 or greater than 999.
SetRunMode()
Sets the module in run mode.
public void SetRunMode()
SetSetupMode()
Sets the module in setup mode.
public void SetSetupMode()
ShowServiceView()
Shows the service window.
public void ShowServiceView()