AtvHighVoltageSource#
Controls the ATV 12-channel high-voltage source from Python. This class inherits from MeasmaticDevice.
property channels#
The measurement channels (high-voltage channels) of the device.
Returns#
| Type | Description |
|---|---|
| Any | The channels as a .NET IEnumerable<IDeviceChannel> . |
Example#
hv = measmatic.get_device('device-atv-hv')
for channel in hv.channels:
print(channel.name)
property number_of_channels#
The number of channels of the device.
Returns#
| Type | Description |
|---|---|
| int | The number of channels. |
Example#
hv = measmatic.get_device('device-atv-hv')
count = hv.number_of_channels
method enable_interlock_detection(state: bool)#
Enables or disables the interlock detection of the source.
Parameters#
| Name | Description |
|---|---|
| state | True enables the interlock detection, False disables it. |
Example#
hv = measmatic.get_device('device-atv-hv')
hv.enable_interlock_detection(True)
method enable_short_circuit_detection(state: bool)#
Enables or disables the short circuit detection of the source.
Parameters#
| Name | Description |
|---|---|
| state | True enables the short circuit detection, False disables it. |
Example#
hv = measmatic.get_device('device-atv-hv')
hv.enable_short_circuit_detection(True)
method get_interlock_state()#
Queries the interlock state of the source.
Returns#
| Type | Description |
|---|---|
| bool | The interlock state flag reported by the device. |
Example#
hv = measmatic.get_device('device-atv-hv')
triggered = hv.get_interlock_state()
method get_output_state()#
Returns the output state of all channels, as last switched through the channel objects.
Returns#
| Type | Description |
|---|---|
| bool | One entry per channel, True if the output of the channel is on. |
Example#
hv = measmatic.get_device('device-atv-hv')
states = hv.get_output_state()
method get_short_circuit_detection_limit()#
Queries the limit of the short circuit detection.
Returns#
| Type | Description |
|---|---|
| float | The short circuit detection limit as reported by the device. |
Example#
hv = measmatic.get_device('device-atv-hv')
limit = hv.get_short_circuit_detection_limit()
method get_short_circuit_state()#
Queries the short circuit state of the source.
Returns#
| Type | Description |
|---|---|
| bool | The short circuit state flag reported by the device. |
Example#
hv = measmatic.get_device('device-atv-hv')
short_circuit = hv.get_short_circuit_state()
method is_interlock_open()#
Queries whether the interlock is open.
Returns#
| Type | Description |
|---|---|
| bool | True if the interlock is open, otherwise False . |
Example#
hv = measmatic.get_device('device-atv-hv')
is_open = hv.is_interlock_open()
method output_all_off()#
Switches off the outputs of all channels.
Example#
hv = measmatic.get_device('device-atv-hv')
hv.output_all_off()
method reset()#
Resets the device to its initial state.
Example#
hv = measmatic.get_device('device-atv-hv')
hv.reset()
method reset_interlock_state()#
Resets the interlock state of the source.
Example#
hv = measmatic.get_device('device-atv-hv')
hv.reset_interlock_state()
method reset_short_circuit_state()#
Resets the short circuit state of the source.
Example#
hv = measmatic.get_device('device-atv-hv')
hv.reset_short_circuit_state()
method set_short_circuit_detection_limit(limit: float)#
Sets the limit of the short circuit detection. The valid range is 0 to 1.0.
Parameters#
| Name | Description |
|---|---|
| limit | The limit of the short circuit detection. |
Example#
hv = measmatic.get_device('device-atv-hv')
hv.set_short_circuit_detection_limit(0.5)