Collection of power controller related functions
Methods
(static) disablePowerMonitor()
Stops monitoring power
(static) enablePowerMonitor(logname)
Continuously monitors power and writes monitored data to a file.
Example
logger.create('power', 'power.log')
powerController.enablePowerMonitor(index, 'power')
Parameters:
Name | Type | Description |
---|---|---|
logname |
string | Log descriptor name for a logger. |
(static) init(manufactureropt, options)
Initializes Power Controller
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
manufacturer |
string |
<optional> |
'auto'
|
power controller manufacturer. Available power controller manufacturers:
|
|||||||||||||||
options |
powerController.GenericOptions | powerController.ArdentOptions | powerController.QamaestroOptions | power controller options The following options are common across all power controllers: Properties
|
(static) powerCycle(optionsopt)
Turns off and on the attached device.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Power cycle options Properties
|
(static) powerOff(optionsopt)
Turns off the attached device using the attached power controller.
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Power off options Properties
|
(static) powerOn(optionsopt)
Turns on the attached device using the attached power controller.
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Power on options Properties
|
(static) uninit()
Uninitializes the power controller
Type Definitions
ArdentOptions
Properties:
Name | Type | Description |
---|---|---|
options.interfaceNumber |
Number | USB interface number |
options.serial |
String | USB serial number. Typically starts with PMU-V2. |
options.baudRate |
String | serial port baud rate. Typically 115200. |
options.model |
String | power controller model Support Models:
|
Type:
- Object
GenericOptions
Properties:
Name | Type | Description |
---|---|---|
options.onScript |
String | Power on script path. This path is relative to the current script path. |
options.offScript |
String | Power off script path. This path is relative to the current script path. |
Type:
- Object
QamaestroOptions
Properties:
Name | Type | Description |
---|---|---|
options.interfaceNumber |
Number | USB interface number |
options.serial |
String | USB serial number. Typically starts with IOB-PORT. |
options.baudRate |
String | serial port baud rate. Typically 115200. |
Type:
- Object