Source code for RsSmbv.Implementations.Source.Bb.Arbitrary.Waveform.Catalog

from typing import List

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CatalogCls: """Catalog commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("catalog", core, parent)
[docs] def get_length(self) -> int: """SCPI: [SOURce<HW>]:BB:ARBitrary:WAVeform:CATalog:LENGth \n Snippet: value: int = driver.source.bb.arbitrary.waveform.catalog.get_length() \n Reads out the files with extension *.wv in the default directory and returns the number of waveform files in this directory. The default directory is set using command method RsSmbv.MassMemory.currentDirectory. \n :return: length: integer Number of waveform files in default directory Range: 0 to INT_MAX """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:WAVeform:CATalog:LENGth?') return Conversions.str_to_int(response)
[docs] def get_value(self) -> List[str]: """SCPI: [SOURce<HW>]:BB:ARBitrary:WAVeform:CATalog \n Snippet: value: List[str] = driver.source.bb.arbitrary.waveform.catalog.get_value() \n Reads out the files extension *.wv in the default directory. \n :return: catalog: string Returns a list of the file names separated by commas """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:WAVeform:CATalog?') return Conversions.str_to_str_list(response)