6.3.90.900
Apollo Art PEx Power Control
Jan Dvořák <mordae@anilinux.org>
(require pex) | package: pex |
This library allows for full control of PEx devices from Apollo Art. These devices provide power switching and fading capabilities and are typically installed in large, intelligent rooms.
1 Interface
syntax
Type of the bank% class.
Collection of relays and faders on a single bus.
constructor
path : Path-String id : Positive-Integer Connect to the bus using a serial port device on given path and scan bank with given id for any relays or faders.Execute a raw PEx BUS command. Please refer to the manual for more information.
method
(send a-bank list-relays) → (Listof Positive-Integer)
List identifiers of relays found on the bus, within given bank.
method
(send a-bank list-faders) → (Listof Positive-Integer)
List identifiers of faders found on the bus, within given bank.
method
id : Positive-Integer Return an object representing specified relay.
method
id : Positive-Integer Return an object representing specified fader.
syntax
Type of the relay% class.
Represents a single relay switch from given bank.
constructor
bank : (Instance Bank%) id : Positive-Integer
method
(send a-relay get-status) → String
Retrieve internal relay status string.Retrieve relay power status.Modify relay power status.
syntax
Type of the fader% class.
Represents a single fader from given bank.
constructor
bank : (Instance Bank%) id : Positive-Integer
method
(send a-fader get-status) → String
Retrieve internal fader status string.Get fader power level ranging from 0 to 99.
method
(send a-fader set-level! level) → Void
level : Natural Set fader power level ranging from 0 to 99. Larger level is treated as 99.
method
(send a-fader fade-to-level! level) → Void
level : Natural Fade power level from current value to the new level with duration of one second.Fader may ignore some values inside the range, so experiment and learn what values work for your system. It is generally not possible to fade out to 0. You need to fade out to e.g. 20 and then (send a-fader set-level! 0).