Skip to main content

Python interface for an ISEG NHR high-voltage power supply

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iseg-nhr-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

iseg_nhr-0.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file iseg-nhr-0.1.1.tar.gz.

File metadata

  • Download URL: iseg-nhr-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Windows/10

File hashes

Hashes for iseg-nhr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5d180c2061745d042f05c3c57bf85505ded1b81b319b48f903bbd3e872dfaf42
MD5 c8a0bf62638ab95418d3789d4a3819e6
BLAKE2b-256 b53567074e63d558ce1be5204978797cd98257ab55160513edec95e5f7f09ed5

See more details on using hashes here.

File details

Details for the file iseg_nhr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iseg_nhr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Windows/10

File hashes

Hashes for iseg_nhr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92d6a40e6fcb0b1fb28b969ae1c63b7b3537f5dc38a94e8d8ea899f4706251db
MD5 68094e708492735512eeea1349ef0bb9
BLAKE2b-256 0fe34b16810f4c0f1749cd348b5eee1d0e92ec309e599ca8756ef2cf2f6f0d96

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page