diff --git a/src/ansys/aedt/core/visualization/report/emi.py b/src/ansys/aedt/core/visualization/report/emi.py index 78e23655a62..ab4acc3b747 100644 --- a/src/ansys/aedt/core/visualization/report/emi.py +++ b/src/ansys/aedt/core/visualization/report/emi.py @@ -29,6 +29,7 @@ """ + from ansys.aedt.core.generic.general_methods import generate_unique_name from ansys.aedt.core.generic.general_methods import pyaedt_function_handler from ansys.aedt.core.visualization.report.common import CommonReport @@ -53,6 +54,8 @@ def __init__(self, app, setup_name, expressions=None): self._emission = "CE" self.overlap_rate = 95 self.band = "0" + self.rbw = "0" + self.rbw_factor = "0" self.primary_sweep = "Freq" @property @@ -88,6 +91,36 @@ def band(self): def band(self, value): self._legacy_props["context"]["band"] = value + @property + def rbw(self): + """RBW attached to the EMI receiver. + + Returns + ------- + str + RBW setting. + """ + return self._legacy_props["context"].get("RBW", None) + + @rbw.setter + def rbw(self, value): + self._legacy_props["context"]["RBW"] = value + + @property + def rbw_factor(self): + """RBW Factor attached to the EMI receiver. + + Returns + ------- + str + RBW Factor setting. + """ + return self._legacy_props["context"].get("RBW_factpr", None) + + @rbw_factor.setter + def rbw_factor(self, value): + self._legacy_props["context"]["RBW_factor"] = value + @property def emission(self): """Emission test. @@ -188,7 +221,10 @@ def _context(self): str(self.overlap_rate), "RBW", False, - "9000Hz", + str(self.rbw), + "RBWFactor", + False, + str(self.rbw_factor), "SIG", False, "0",