Source code for RsSmab.Implementations.Source.Pulm.Train.Hopping.Power

from typing import List

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class PowerCls: """Power commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("power", core, parent)
[docs] def get_points(self) -> int: """SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:POWer:POINts \n Snippet: value: int = driver.source.pulm.train.hopping.power.get_points() \n No command help available \n :return: points: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:PULM:TRAin:HOPPing:POWer:POINts?') return Conversions.str_to_int(response)
[docs] def get_value(self) -> List[float]: """SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:POWer \n Snippet: value: List[float] = driver.source.pulm.train.hopping.power.get_value() \n No command help available \n :return: power: No help available """ response = self._core.io.query_bin_or_ascii_float_list('SOURce<HwInstance>:PULM:TRAin:HOPPing:POWer?') return response
[docs] def set_value(self, power: List[float]) -> None: """SCPI: [SOURce<HW>]:PULM:TRAin:HOPPing:POWer \n Snippet: driver.source.pulm.train.hopping.power.set_value(power = [1.1, 2.2, 3.3]) \n No command help available \n :param power: No help available """ param = Conversions.list_to_csv_str(power) self._core.io.write(f'SOURce<HwInstance>:PULM:TRAin:HOPPing:POWer {param}')