複数のI/Oモジュールから構成されるシステムを表現するためのクラスです。
public var autoUpdate:Boolean
出力ポートを手動で更新する場合はfalseにします。
The default value is true.
samplingInterval:int [read-write]
サンプリング間隔
The default value is 33.
Implementation
public function get samplingInterval():int
public function set samplingInterval(value:int):void
public function IOSystem(configs:Array, host:String = "localhost", portNum:Number = 9000, samplingInterval:int = 33)
Parameters
| configs:Array — Configuration配列
|
| |
| host:String (default = "localhost") — ホスト名
|
| |
| portNum:Number (default = 9000) — ポート番号
|
| |
| samplingInterval:int (default = 33) — サンプリング間隔(ms)
|
public function ioModule(moduleNum:uint):IOModule
moduleNumで指定した番号のI/Oモジュールを取得します。
Parameters
| moduleNum:uint — I/Oモジュールの番号。このIDは、Configuration#moduleIDと同じものを指定します。
|
Returns
See also
public function sendSysex(moduleNum:uint, command:uint, sysexMessage:Array):voidParameters
| moduleNum:uint |
| |
| command:uint |
| |
| sysexMessage:Array |
public function update():void
全ての出力ポートの値を更新します。通常、autoUpdateをfalseに設定して利用します。
See also
Event object type: FunnelErrorEvent
指定したコンフィギュレーションの設定に失敗したとき送出されます。
Event object type: FunnelErrorEvent
エラーが起きたとき送出されます。
Event object type: FunnelEvent
This event will be sent when I2C power pins of an I/O module is ready
Event object type: FunnelEvent
This event will be sent when an I/O module is ready
Event object type: FunnelErrorEvent
I/Oモジュールの再起動に失敗したとき送出されます。
protected static const I2C_POWER_PINS_STARTUP_TIME:uint = 500