The procedure for requesting AWR support has changed. Please read all about the new AWR product support process.
Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
class AwrMeasurement():
    def __init__(self, measurement: mwo.CMeasurement):
        (source, name, simulator) = self.parse_meas_string(measurement.Name) = name
        self.source = source  # schematic name for example
        self.simulator = simulator
        self.data_type = mwo.mwMeasDataType(measurement.DataType)._name_
        self.plot_dim = measurement.PlotDimension
        self.x_units = mwo.mwUnitType(measurement.UnitType(1))._name_
        self.y_units = mwo.mwUnitType(measurement.UnitType(2))._name_

    def parse_meas_string(cls, s: str) -> Tuple[str, str, str]:
        (source, name) = s.split(':')
        if '.' in source:
            (source, simulator) = source.split('.')
            simulator = ''
        return (source, name, simulator)

Using this you can parse a measurement string using:

Code Block
(source, meas_name, simulator) = AwrMeasurement.parse_meas_string('Pulse Signal.HS:Vtime(PORT_1,1)')

Or create an AwrMeasurement object by passing in a CMeasurement object as in:

Code Block
    m = awrde.Project.Graphs[0].Measurements[0]
    parsed_measurement = AwrMeasurement(m)