DemoPulserDevice#
Controls the demo pulser device from Python. It simulates a pulser without any hardware; most calls have no effect. This class inherits from MeasmaticDevice.
property max_output_voltage#
Gets the maximum output voltage of the demo pulser in volts.
Returns#
| Type | Description |
|---|---|
| float | The maximum output voltage in volts. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
v_max = pulser.max_output_voltage
property max_pulse_count#
Gets the maximum number of pulses per trigger supported by the demo pulser.
Returns#
| Type | Description |
|---|---|
| int | The maximum pulse count. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
n_max = pulser.max_pulse_count
property min_transition_time#
Gets the minimum pulse transition (rise/fall) time of the demo pulser in seconds.
Returns#
| Type | Description |
|---|---|
| float | The minimum transition time in seconds. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
t_min = pulser.min_transition_time
method check_errors()#
Checks the device for errors. The demo pulser has no error state, so this does nothing.
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.check_errors()
method check_pulse_option()#
Checks that the pulse option is available. The demo pulser performs no check.
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.check_pulse_option()
method output(outputOn: bool)#
Switches the pulser output on or off. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| outputOn | True to switch the output on, False to switch it off. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.output(True)
method pulse_start()#
Starts the pulse sequence. The demo pulser ignores the call.
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.pulse_start()
method set_pulse_amplitude(amplitudeV: float, baseVoltage: float)#
Sets the pulse amplitude and base level in volts. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| amplitudeV | The pulse level in volts. |
| baseVoltage | The base level in volts. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_pulse_amplitude(5.0, 0.0)
method set_pulse_count(pulseCount: int)#
Sets the number of pulses per trigger. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| pulseCount | The number of pulses per trigger. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_pulse_count(10)
method set_pulse_period(pulsePeriod: float)#
Sets the pulse period in seconds. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| pulsePeriod | The pulse period in seconds. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_pulse_period(1e-3)
method set_pulse_transition_time(transTime: float)#
Sets the pulse transition (rise and fall) time in seconds. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| transTime | The transition time in seconds. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_pulse_transition_time(50e-9)
method set_pulse_width(pulseWidthS: float)#
Sets the pulse width in seconds. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| pulseWidthS | The pulse width in seconds. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_pulse_width(100e-6)
method set_trig_delay(trigDelayS: float)#
Sets the trigger delay in seconds. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| trigDelayS | The trigger delay in seconds. |
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_trig_delay(0.0)
method set_trig_source(triggerSource: Any)#
Sets the trigger source of the pulser. The demo pulser ignores the call.
Parameters#
| Name | Description |
|---|---|
| triggerSource | The trigger source of type Atv.Framework.Devices.Enumerations.PulserTriggerSource |
Example#
from Atv.Framework.Devices.Enumerations import PulserTriggerSource
pulser = measmatic.get_device('device-demo-pulser')
pulser.set_trig_source(PulserTriggerSource.Bus)
method wait_completed()#
Waits until the device has completed all pending operations. The demo pulser simply waits 100 ms.
Example#
pulser = measmatic.get_device('device-demo-pulser')
pulser.wait_completed()