Tek370#
Controls a Tektronix 370 curve tracer from Python. This class inherits from MeasmaticDevice.
method get_output_status()#
Queries whether the outputs of the curve tracer are enabled.
Returns#
| Type | Description |
|---|---|
| bool | True if the outputs are enabled, otherwise False . |
Example#
tracer = measmatic.get_device('device-tek370')
enabled = tracer.get_output_status()
method get_raw_waveform(index: int)#
Reads the current curve from the device as unscaled raw integer points.
Parameters#
| Name | Description |
|---|---|
| index | The curve index. The value is currently not evaluated by the device class. |
Returns#
| Type | Description |
|---|---|
| Any | The raw curve as a .NET List<Atv.Framework.Mathematics.DPoint> ; each point has X and Y in device units. |
Example#
tracer = measmatic.get_device('device-tek370')
points = tracer.get_raw_waveform(0)
method get_scaled_and_averaged_waveform()#
Reads the current curve, scales it to physical units (volts on X, amperes on Y) using the curve parameters of the device, and averages the Y values of points with identical X values.
Returns#
| Type | Description |
|---|---|
| Any | The curve as a .NET List<Atv.Framework.Mathematics.DPoint> without duplicate X values. |
Example#
tracer = measmatic.get_device('device-tek370')
points = tracer.get_scaled_and_averaged_waveform()
method get_scaled_waveform()#
Reads the current curve and scales it to physical units using the curve parameters of the device.
Returns#
| Type | Description |
|---|---|
| Any | The scaled curve as a .NET List<Atv.Framework.Mathematics.DPoint> . |
Example#
tracer = measmatic.get_device('device-tek370')
points = tracer.get_scaled_waveform()
method get_step_gen_waveforms(steps: int)#
Reads the current scaled curve and splits it into one curve per step generator step. The voltage values are smoothed with a median filter and the curve is split at the voltage maxima.
Parameters#
| Name | Description |
|---|---|
| steps | The number of step generator steps; up to steps + 1 curves are returned. |
Returns#
| Type | Description |
|---|---|
| Any | The curves as a .NET List<List<Atv.Framework.Mathematics.DPoint>> . |
Example#
tracer = measmatic.get_device('device-tek370')
curves = tracer.get_step_gen_waveforms(5)
method identify()#
Queries the identification string of the curve tracer ( ID? ).
Returns#
| Type | Description |
|---|---|
| str | The identification string returned by the device. |
Example#
tracer = measmatic.get_device('device-tek370')
idn = tracer.identify()
method measure(measureType: Any)#
Starts a measurement (sweep) on the curve tracer.
Parameters#
| Name | Description |
|---|---|
| measureType | The measure type of type Atv.Framework.Devices.CurveTracer.Tek370.MeasureType |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.measure(Tek370.MeasureType.Single)
method reset()#
Resets the curve tracer by re-initializing it ( INIT ).
Example#
tracer = measmatic.get_device('device-tek370')
tracer.reset()
method set_base_emitter_conifguration(baseEmitterConfiguration: Any)#
Sets the base/emitter configuration of the device under test. The method name contains a typo in the name ( conifguration ) that is kept for compatibility.
Parameters#
| Name | Description |
|---|---|
| baseEmitterConfiguration | The configuration of type Atv.Framework.Devices.CurveTracer.Tek370.BaseEmitterConfiguration |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_base_emitter_conifguration(Tek370.BaseEmitterConfiguration.BSgen)
method set_collector_polarity(collectorPolarity: Any)#
Sets the polarity and mode of the collector supply.
Parameters#
| Name | Description |
|---|---|
| collectorPolarity | The polarity of type Atv.Framework.Devices.CurveTracer.Tek370.CollectorPolarity |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_collector_polarity(Tek370.CollectorPolarity.PNormal)
method set_horizontal_div(horizontalDiv: Any)#
Sets the horizontal (collector voltage) scale per division, from 50 mV to 500 V.
Parameters#
| Name | Description |
|---|---|
| horizontalDiv | The scale of type Atv.Framework.Devices.CurveTracer.Tek370.HorizontalDiv |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_horizontal_div(Tek370.HorizontalDiv.U_1V)
method set_left_right_standby_switch(mode: Any)#
Selects the active device-under-test socket (left or right) or standby.
Parameters#
| Name | Description |
|---|---|
| mode | The switch mode of type Atv.Framework.Devices.CurveTracer.Tek370.LeftRightSwitchMode |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_left_right_standby_switch(Tek370.LeftRightSwitchMode.Left)
method set_max_peak_power_watts(maxPeakPowerWatts: Any)#
Sets the maximum peak power of the collector supply, from 80 mW to 220 W.
Parameters#
| Name | Description |
|---|---|
| maxPeakPowerWatts | The power limit of type Atv.Framework.Devices.CurveTracer.Tek370.MaxPeakPowerWatts |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_max_peak_power_watts(Tek370.MaxPeakPowerWatts.P_10W)
method set_max_peak_volts(maxPeakVolts: Any)#
Sets the maximum peak voltage of the collector supply, from 16 V to 2000 V.
Parameters#
| Name | Description |
|---|---|
| maxPeakVolts | The voltage limit of type Atv.Framework.Devices.CurveTracer.Tek370.MaxPeakVolts |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_max_peak_volts(Tek370.MaxPeakVolts.U_80V)
method set_step_gen_amplitude(stepGenCurrentAmplitude: Any)#
Sets the step generator amplitude per step in current mode, from 1 uA to 200 mA.
Parameters#
| Name | Description |
|---|---|
| stepGenCurrentAmplitude | The amplitude of type Atv.Framework.Devices.CurveTracer.Tek370.StepGenCurrentAmplitude |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_amplitude(Tek370.StepGenCurrentAmplitude.I_1mA)
method set_step_gen_amplitude(stepGenVoltageAmplitude: Any)#
Sets the step generator amplitude per step in voltage mode, from 50 mV to 2 V.
Parameters#
| Name | Description |
|---|---|
| stepGenVoltageAmplitude | The amplitude of type Atv.Framework.Devices.CurveTracer.Tek370.StepGenVoltageAmplitude |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_amplitude(Tek370.StepGenVoltageAmplitude.U_500mV)
method set_step_gen_current_limit(stepGenCurrentLimit: Any)#
Sets the current limit of the step generator in voltage mode, from 20 mA to 2 A.
Parameters#
| Name | Description |
|---|---|
| stepGenCurrentLimit | The limit of type Atv.Framework.Devices.CurveTracer.Tek370.StepGenCurrentLimit |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_current_limit(Tek370.StepGenCurrentLimit.I_100mA)
method set_step_gen_inverter(invert: bool)#
Switches the polarity inversion of the step generator on or off.
Parameters#
| Name | Description |
|---|---|
| invert | True to invert the step generator output, False for normal polarity. |
Example#
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_inverter(True)
method set_step_gen_mode(stepGenMode: Any)#
Selects whether the step generator provides current or voltage steps.
Parameters#
| Name | Description |
|---|---|
| stepGenMode | The mode of type Atv.Framework.Devices.CurveTracer.Tek370.StepGenMode |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_mode(Tek370.StepGenMode.Voltage)
method set_step_gen_multiplier(multiplier: bool)#
Switches the step generator amplitude multiplier on or off.
Parameters#
| Name | Description |
|---|---|
| multiplier | True to enable the multiplier, False to disable it. |
Example#
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_multiplier(False)
method set_step_gen_offset(offset: float)#
Sets the step generator offset. Valid range is 0 ... 10.
Parameters#
| Name | Description |
|---|---|
| offset | The step generator offset in the range 0 ... 10, as sent to the device ( STPGEN OFFSET ). |
Example#
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_offset(0.0)
method set_step_gen_pulse_mode(stepGenPulseMode: Any)#
Sets the pulse mode of the step generator.
Parameters#
| Name | Description |
|---|---|
| stepGenPulseMode | The pulse mode of type Atv.Framework.Devices.CurveTracer.Tek370.StepGenPulseMode |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_pulse_mode(Tek370.StepGenPulseMode.Off)
method set_step_gen_steps(steps: int)#
Sets the number of steps of the step generator. Valid range is 0 ... 10.
Parameters#
| Name | Description |
|---|---|
| steps | The number of steps (0 ... 10). |
Example#
tracer = measmatic.get_device('device-tek370')
tracer.set_step_gen_steps(5)
method set_variable_collector_supply(collectorSupply: float)#
Sets the variable collector supply as a percentage of the maximum peak voltage. Valid range is 0 ... 100.
Parameters#
| Name | Description |
|---|---|
| collectorSupply | The collector supply in percent of the peak voltage (0 ... 100). |
Example#
tracer = measmatic.get_device('device-tek370')
tracer.set_variable_collector_supply(50.0)
method set_vertical_div(verticalDiv: Any)#
Sets the vertical (collector current) scale per division, from 1 uA to 200 mA.
Parameters#
| Name | Description |
|---|---|
| verticalDiv | The scale of type Atv.Framework.Devices.CurveTracer.Tek370.VerticalDiv |
Example#
from Atv.Framework.Devices.CurveTracer import Tek370
tracer = measmatic.get_device('device-tek370')
tracer.set_vertical_div(Tek370.VerticalDiv.I_1mA)