Skip to main content

iseg-nhr

Python versions on PyPI iseg-nhr version on PyPI Code style: black

Python interface for an ISEG NHR high-voltage power supply

Example

from iseg_nhr import NHR, Polarity

psu = NHR("COM3")

polarity = psu.channel0.voltage.polarity
print(polarity)

psu.channel0.voltage.setpoint = 1_000
psu.channel0.on()
print(psu.channel0.voltage.measured)
print(psu.channel0.current.measured)

Implementation

The main NHR class has the following attributes and methods:
NHR

  • channel{i}
    Channel class specifying all options for a specific channel
  • supply
    Supply class containing the supply voltages
  • identity
    *IDN?; model, serial number etc.
  • status_clear()
    *CLS
  • reset
    *RST
  • operation_complete
    *OPC
  • instruction_set
    instruction set used by the module
  • lockout()
    Disable local control of the module
  • local()
    Enable local control of the module
  • control_register
    module control register
  • status_register
    module status register
  • event_register
    module event register
  • event_clear()
    clear the module event register
  • temperature
    module temperature
  • number_channels
    number of module channels
  • firmware_version
    firmware version
  • firmware_release
    firmware release date
  • config
    config mode, either normal or configuration mode
  • config_save
    save current configuration
  • voltages
    return the measured voltage of each channel
  • currents
    return the measured current of each channel
  • setpoints
    return the setpoint voltage of each channel
  • on([0,1])
    turn on channels 0 and 1
  • off([0,1])
    turn off channels 0 and 1

Channel

  • voltage
    Voltage class
  • current
    Current class
  • on_state
    boolean for on state of channel
  • on()
    turn channel on
  • off()
    turn channel off
  • emergency_off()
    turn channel off immidiately, ignoring ramp settings
  • emergency
    boolean for channel emergency
  • emergency_clear
    clear channel emergency
  • event_clear()
    clear channel events
  • control_register
    channel control register
  • status_register
    channel status register
  • event_register
    channel event register
  • polarity
    channel polarity
  • polarity_list
    list of channel polarity options
  • output_mode
    channel output mode
  • output_mode_list
    channel output mode options
  • inhibit
    channel inhibit setting
  • inhibit_options
    channel inhibit options

Voltage

  • ramp
    Ramp class
  • measured
    measured output voltage
  • setpoint
    voltage setpoint
  • limit
    voltage limit
  • maximum
    nominal output voltage
  • maximum
    voltage mode with polarity sign
  • mode_list
    voltage mode options
  • bounds
    output voltage bounds

Current has the same attributes and methods, excluding the setpoint

Ramp

  • speed
    ramp speed in unit/s
  • speed_up
    upward ramp speed in unit/s
  • speed_down
    downward ramp speed in unit/s
  • speed_min
    minimum ramp speed in unit/s
  • speed_max maximum ramp speed in unit/s

Release files for iseg-nhr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iseg-nhr 0.2.0
File Size Uploaded
iseg_nhr-0.2.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iseg-nhr 0.2.0
File Interpreter ABI Platform
iseg_nhr-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size:26.0 kB

Release files / iseg_nhr-0.2.0.tar.gz

Download URL iseg_nhr-0.2.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a683cf1f45a978b1c3208148d877962976bdd54858f1cc41d340f7b6e79be014
BLAKE2b-256 checksum
How to use checksums
ff285e93bd1078fbabad1f39cdbf32feed55cf0717dc2e0a1e8d0fa005703081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Release files / iseg_nhr-0.2.0-py3-none-any.whl

Download URL iseg_nhr-0.2.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54aa695c4ea6dfec1f5831420dd577fc05939bd5e2cd87a9ba853c22dfd11fa8
BLAKE2b-256 checksum
How to use checksums
0fbb91a1dd8a22cd34fab40a2cbc912d11a497ded5a81feab6ab97ae14585018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page