Class LJX8000EModule
Represents a LisRT module for a Keyence laser profiler LJ-X8000E.
Inheritance
Implements
Inherited Members
Namespace: Loehnert.Lisrt.LaserProfiler.Keyence
Assembly: Loehnert.Lisrt.LaserProfiler.Keyence.dll
Syntax
public class LJX8000EModule : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
Constructors
LJX8000EModule(String, ICommunication)
Initializes a new instance of the LJX8000EModule class.
Declaration
public LJX8000EModule(string name, ICommunication communication)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the instance. |
ICommunication | communication | The communication for this instance. Set the EndDelimiter to the end delimiter configured in the device. The default end delimiter is "\r". |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
CurrentProgramNumber
Gets the current program number for this module.
Declaration
public int CurrentProgramNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
CurrentSdCardNumber
Gets the current SD-Card Number for the CurrentProgramNumber.
Declaration
public int CurrentSdCardNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
FirmwareVersion
Gets the firmware version.
Declaration
public string FirmwareVersion { get; }
Property Value
Type | Description |
---|---|
String |
IsInRunMode
Gets a value indicating whether module is in run mode.
Declaration
public bool IsInRunMode { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Exit()
Deinitializes the module and all of its sub modules, whose InitializationState doesn't equals to NotInitialized.
Declaration
public override void Exit()
Overrides
Initialize()
Initializes the module.
Declaration
public override void Initialize()
Overrides
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.
Declaration
public IReadOnlyList<double> Measure()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Double> | Data from device. |
Remarks
Returned data are depending on device configuration.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when module is not initialized or receives an error. |
System.TimeoutException | Thrown when no data are received before timeout. |
SetProgramNumber(Int32, Int32)
Sets the program for this module.
Declaration
public void SetProgramNumber(int sdCardNumber, int programmNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sdCardNumber | SD-Card witch contains the program. |
System.Int32 | programmNumber | Program to be set. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when module is not initialized or receives an error. |
ArgumentOutOfRangeException | Thrown when |
SetRunMode()
Sets the module in run mode.
Declaration
public void SetRunMode()
SetSetupMode()
Sets the module in setup mode.
Declaration
public void SetSetupMode()
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()