Source code for RsCmwGprfGen.Implementations.Source.Sequencer.Apool.Waveform
from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class WaveformCls:
"""Waveform commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("waveform", core, parent)
[docs]
def get_all(self) -> List[str]:
"""SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:APOol:WAVeform:ALL \n
Snippet: value: List[str] = driver.source.sequencer.apool.waveform.get_all() \n
Queries the names of the ARB files in the file pool. \n
:return: waveform: string Comma-separated list of strings One string per file, from index 0 to index n
"""
response = self._core.io.query_str('SOURce:GPRF:GENerator<Instance>:SEQuencer:APOol:WAVeform:ALL?')
return Conversions.str_to_str_list(response)
[docs]
def get(self, index: int) -> str:
"""SCPI: SOURce:GPRF:GENerator<Instance>:SEQuencer:APOol:WAVeform \n
Snippet: value: str = driver.source.sequencer.apool.waveform.get(index = 1) \n
Queries the name of the ARB file with the specified <Index>. \n
:param index: integer
:return: waveform: string File name (without path) ."""
param = Conversions.decimal_value_to_str(index)
response = self._core.io.query_str(f'SOURce:GPRF:GENerator<Instance>:SEQuencer:APOol:WAVeform? {param}')
return trim_str_response(response)