Python interface for an ISEG NHR high-voltage power supply
Project description
iseg-nhr
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 channelsupply
Supply
class containing the supply voltagesidentity
*IDN?; model, serial number etc.status_clear()
*CLSreset
*RSToperation_complete
*OPCinstruction_set
instruction set used by the modulelockout()
Disable local control of the modulelocal()
Enable local control of the modulecontrol_register
module control registerstatus_register
module status registerevent_register
module event registerevent_clear()
clear the module event registertemperature
module temperaturenumber_channels
number of module channelsfirmware_version
firmware versionfirmware_release
firmware release dateconfig
config mode, either normal or configuration modeconfig_save
save current configurationvoltages
return the measured voltage of each channelcurrents
return the measured current of each channelsetpoints
return the setpoint voltage of each channelon([0,1])
turn on channels 0 and 1off([0,1])
turn off channels 0 and 1
Channel
voltage
Voltage
classcurrent
Current
classon_state
boolean for on state of channelon()
turn channel onoff()
turn channel offemergency_off()
turn channel off immidiately, ignoring ramp settingsemergency
boolean for channel emergencyemergency_clear
clear channel emergencyevent_clear()
clear channel eventscontrol_register
channel control registerstatus_register
channel status registerevent_register
channel event registerpolarity
channel polaritypolarity_list
list of channel polarity optionsoutput_mode
channel output modeoutput_mode_list
channel output mode optionsinhibit
channel inhibit settinginhibit_options
channel inhibit options
Voltage
ramp
Ramp
classmeasured
measured output voltagesetpoint
voltage setpointlimit
voltage limitmaximum
nominal output voltagemaximum
voltage mode with polarity signmode_list
voltage mode optionsbounds
output voltage bounds
Current
has the same attributes and methods, excluding the setpoint
Ramp
speed
ramp speed in unit/sspeed_up
upward ramp speed in unit/sspeed_down
downward ramp speed in unit/sspeed_min
minimum ramp speed in unit/sspeed_max
maximum ramp speed in unit/s
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
iseg_nhr-0.1.1-py3-none-any.whl
(10.6 kB
view hashes)