InstroPSU#
- class InstroPSU(
- name: str | None = None,
- driver: PSUDriverBase | None = None,
- num_channels: int | None = None,
- publishers: list[Publisher] | None = None,
- config: PSUConfig | dict | Path | str | None = None,
- autostart: bool = False,
- **kwargs,
Bases:
InstrumentPower-supply instrument. Methods return Measurement/Command for publishing.
Initialize an InstroPSU.
Provide either
configordriver/num_channelstogether, not both.- Parameters:
name – Channel-name prefix for published data. Falls back to
config.device.namewhenconfigis given.driver –
Concrete PSU driver; owns its own transport:
psu = InstroPSU( name="main", driver=BK9115("USB0::0xFFFF::0x9115::SN::INSTR"), num_channels=1, )
num_channels – Number of output channels on this PSU.
publishers – Publishers that receive emitted Measurement/Command data. Combined with any publishers declared in
config.config – A
PSUConfig, a dict, or a path to a JSON config file.autostart – When True, open the connection and start background polling.
**kwargs – Default tags applied to every emitted Measurement/Command. Pass
dataset_rid="<rid>"to auto-create a NominalCorePublisher (uses the on-disk ‘default’ Nominal credential).
Attributes
Seconds between background daemon iterations (0 = no wait). |
|
Return an insertion-ordered snapshot of all published channel names. |
Methods
Append |
|
Register a publisher to receive this instrument's Measurement/Command data. |
|
Set the current limit, then the voltage, then the output state on |
|
Clear every latched protection trip on |
|
Disconnect from the device. |
|
Replace all daemon functions with a single |
|
Return the most recent |
|
Measure the current (amperes) flowing through |
|
Query the configured current-limit setpoint (amperes) on |
|
Query whether |
|
Query whether the output on |
|
Query whether overcurrent protection is enabled on |
|
Query the overcurrent protection threshold (amperes) on |
|
Query whether overcurrent protection has tripped on |
|
Query the overvoltage protection trip delay (seconds) on |
|
Query whether overvoltage protection is enabled on |
|
Query the overvoltage protection threshold (volts) on |
|
Query whether overvoltage protection has tripped on |
|
Query whether remote sense is enabled on |
|
Return the most recent sample for |
|
Measure the voltage (volts) sensed at |
|
Query the configured voltage setpoint (volts) on |
|
Establish connection to the device. |
|
Enable or disable the output on |
|
Fan |
|
Set the current limit (amperes) on |
|
Enable or disable overcurrent protection on |
|
Set the overcurrent protection threshold (amperes) on |
|
Set the overvoltage protection trip delay (seconds) on |
|
Enable or disable overvoltage protection on |
|
Set the overvoltage protection threshold (volts) on |
|
Enable or disable remote sense on |
|
Set the output voltage (volts) on |
|
Start the background daemon thread. |
|
Signal the background daemon to stop and join it. |