Source code for py_dss_interface.models.Bus.BusS
# -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
from py_dss_interface.models.Base import Base
[docs]class BusS(Base):
"""
This interface can be used to read/write certain properties of the active DSS object.
The structure of the interface is as follows:
CStr BUSS(int32_t Parameter, CStr Argument)
This interface returns a string according to the number sent in the variable “parameter”. The parameter can be
one of the following.
"""
[docs] def bus_name(self) -> str:
"""Returns the name of the active bus."""
return (self.dss_obj.BUSS(0)).decode('ascii')