Class Elm3002
Represents an ELM3002 terminal with two 24Bit -/+30 V ... -/+20 mV oversampling voltage inputs.
public class Elm3002 : WCStateTerminalBase, INotifyPropertyChangedEx, INotifyPropertyChanged, ITerminal, IHasWCState
- Inheritance
-
PropertyChangedBaseElm3002
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Remarks
Commissioning
The parameters can be found in the TwinCAT project on the terminal configuration Settings.
- Constructor parameter samplesCount
- Constructor parameter sampleRateInHertz
- Check whether the IO task cycle time matches the sampling cycle time by recalculating it, otherwise a TimeBetweenPointsDiffersException could be thrown. CycleTime = Samples / SampleRate
- Range for each channel (CoE 8000:01)
- Only Extended Range is supported (CoE 8000:2E)
Constructors
Elm3002(ushort, double)
Initializes a new instance of the Elm3002 class.
public Elm3002(ushort samplesCount, double sampleRateInHertz)
Parameters
samplesCount
ushortCount of the oversampling samples (Mode of operation).
sampleRateInHertz
doubleSample rate in hertz.
Remarks
The parameters can be found in the TwinCAT project on the terminal configuration
'Settings' -> 'Mode of operation' for samplesCount
and 'Sample Rate[Hz]' for sampleRateInHertz
.
Exceptions
- ArgumentOutOfRangeException
Thrown when
samplesCount
orsampleRateInHertz
is 0 (zero) or less.
Properties
Inputs
Gets the inputs.
public IReadOnlyList<Elm300xOversamplingInput> Inputs { get; }
Property Value
Modules
Gets the ILisrtModules from the terminal, for example input channels.
public override IEnumerable<ILisrtModule> Modules { get; }