ElmorLabsPMD2Handler

Handler for the ElmorLabs PMD2 power measurement device.

Sensor index → connector (from pmd2-msm.py output tables)

IndexConnectorPG channel
0ATX24 12V2 "in"
1ATX24 5V2 "in"
2ATX24 5VSB2 "in"
3ATX24 3.3V2 "in"
4HPWR11 "out2"
5EPS10 "out1"
6EPS20 "out1"
7PCIE11 "out2"
8PCIE21 "out2"
9PCIE31 "out2"

Constructors

Link copied to clipboard
constructor(meter: PowerMeter)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun assign(observer: ReadingObserver)

Resets the meter state and adds an observer.

Link copied to clipboard
open override fun close()

Close the handler.

Link copied to clipboard

Unassigns this handler and returns & assigns a dummy copy.

Link copied to clipboard
fun id(): String

Shorthand for the meter's ID.

Link copied to clipboard
fun init()

Initialize the handler. Includes the opening of any associated ports and setting port parameters.

Link copied to clipboard
Link copied to clipboard
open fun off(channel: String? = null)

Power on the meter channel. After this call the channel should be powered off.

Link copied to clipboard
open fun on(channel: String? = null)

Power on the meter channel. After this call the channel should be powered on.

Link copied to clipboard
open fun onOff(channel: String? = null)

Toggle the power on the meter channel. After this call the channel should be in reverse state (on <-> off).

Link copied to clipboard
fun start()

Start receiving data.

Link copied to clipboard

Shorthand for the meter's state.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun unassign()

Resets the meter state and adds an observer.