mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
instruments/DAQBackend: Add global aliases
This commit is contained in:
parent
1b9205f94a
commit
c1cc18df2f
@ -64,45 +64,54 @@ class DAQBackend(EnergyInstrumentBackend):
|
|||||||
|
|
||||||
parameters = [
|
parameters = [
|
||||||
Parameter('resistor_values', kind=list_of_ints,
|
Parameter('resistor_values', kind=list_of_ints,
|
||||||
|
global_alias='daq_resistor_values',
|
||||||
description="""
|
description="""
|
||||||
The values of resistors (in Ohms) across which the voltages
|
The values of resistors (in Ohms) across which the voltages
|
||||||
are measured on.
|
are measured on.
|
||||||
"""),
|
"""),
|
||||||
Parameter('labels', kind=list_of_strings,
|
Parameter('labels', kind=list_of_strings,
|
||||||
|
global_alias='daq_labels',
|
||||||
description="""
|
description="""
|
||||||
'List of port labels. If specified, the length of the list
|
'List of port labels. If specified, the length of the list
|
||||||
must match the length of ``resistor_values``.
|
must match the length of ``resistor_values``.
|
||||||
"""),
|
"""),
|
||||||
Parameter('host', kind=str, default='localhost',
|
Parameter('host', kind=str, default='localhost',
|
||||||
|
global_alias='daq_server_host',
|
||||||
description="""
|
description="""
|
||||||
The host address of the machine that runs the daq Server which
|
The host address of the machine that runs the daq Server which
|
||||||
the instrument communicates with.
|
the instrument communicates with.
|
||||||
"""),
|
"""),
|
||||||
Parameter('port', kind=int, default=45677,
|
Parameter('port', kind=int, default=45677,
|
||||||
|
global_alias='daq_server_port',
|
||||||
description="""
|
description="""
|
||||||
The port number for daq Server in which daq instrument
|
The port number for daq Server in which daq instrument
|
||||||
communicates with.
|
communicates with.
|
||||||
"""),
|
"""),
|
||||||
Parameter('device_id', kind=str, default='Dev1',
|
Parameter('device_id', kind=str, default='Dev1',
|
||||||
|
global_alias='daq_device_id',
|
||||||
description="""
|
description="""
|
||||||
The ID under which the DAQ is registered with the driver.
|
The ID under which the DAQ is registered with the driver.
|
||||||
"""),
|
"""),
|
||||||
Parameter('v_range', kind=str, default=2.5,
|
Parameter('v_range', kind=str, default=2.5,
|
||||||
|
global_alias='daq_v_range',
|
||||||
description="""
|
description="""
|
||||||
Specifies the voltage range for the SOC voltage channel on the
|
Specifies the voltage range for the SOC voltage channel on the
|
||||||
DAQ (please refer to :ref:`daq_setup` for details).
|
DAQ (please refer to :ref:`daq_setup` for details).
|
||||||
"""),
|
"""),
|
||||||
Parameter('dv_range', kind=str, default=0.2,
|
Parameter('dv_range', kind=str, default=0.2,
|
||||||
|
global_alias='daq_dv_range',
|
||||||
description="""
|
description="""
|
||||||
Specifies the voltage range for the resistor voltage channel
|
Specifies the voltage range for the resistor voltage channel
|
||||||
on the DAQ (please refer to :ref:`daq_setup` for details).
|
on the DAQ (please refer to :ref:`daq_setup` for details).
|
||||||
"""),
|
"""),
|
||||||
Parameter('sample_rate_hz', kind=str, default=10000,
|
Parameter('sample_rate_hz', kind=str, default=10000,
|
||||||
|
global_alias='daq_sampling_rate',
|
||||||
description="""
|
description="""
|
||||||
Specify the sample rate in Hz.
|
Specify the sample rate in Hz.
|
||||||
"""),
|
"""),
|
||||||
Parameter('channel_map', kind=list_of_ints,
|
Parameter('channel_map', kind=list_of_ints,
|
||||||
default=(0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23),
|
default=(0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23),
|
||||||
|
global_alias='daq_channel_map',
|
||||||
description="""
|
description="""
|
||||||
Represents mapping from logical AI channel number to physical
|
Represents mapping from logical AI channel number to physical
|
||||||
connector on the DAQ (varies between DAQ models). The default
|
connector on the DAQ (varies between DAQ models). The default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user