weldx.measurement.MeasurementChain.from_parameters#

classmethod MeasurementChain.from_parameters(name, source_name, source_error, output_signal_type, output_signal_unit, signal_data=None)#

Create a new measurement chain without providing a SignalSource instance.

Parameters:
  • name (str) – Name of the measurement chain

  • source_name (str) – Name of the source

  • source_error (Error) – Error of the source

  • output_signal_type (str) – Type of the output signal (‘analog’ or ‘digital’)

  • output_signal_unit (str | Unit) – Unit of the output signal

  • signal_data (Optional[TimeSeries]) – Measured data of the sources’ signal

Returns:

New measurement chain

Return type:

MeasurementChain

Examples

>>> from weldx import Q_
>>> from weldx.measurement import Error, MeasurementChain
>>> mc = MeasurementChain.from_parameters(
...          name="Current measurement chain",
...          source_error=Error(deviation=Q_(0.5, "percent")),
...          source_name="Current sensor",
...          output_signal_type="analog",
...          output_signal_unit="V"
...      )