This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

IO-Warrior

    The IO-Warrior is a family of USB I/O boards by Code Mercenaries, which provide a number of digital I/O pins. mAirList supports the IO-Warrior 24, 28, 28L, 40, 56 and 100.

    Each pin can be used as an input, to trigger remote control commands, or as an output, controlled by a script.

    Configuration

    In the configuration app or Control Panel, go to Remote Control and add an interface of type IO-Warrior (USB category).

    Device

    On the Device tab, click Select Device… and choose your IO-Warrior from the list of connected devices. This will fill in the Vendor/Product ID, Serial Number and Path fields.

    When a Path is set, mAirList will open exactly this device (i.e. the device connected to this particular USB port). Clear the Path field to identify the device by its vendor/product ID and serial number instead, so it is still found when plugged into a different USB port.

    Commands

    The Commands tab lists all pins of the device. The pins are named P<port>.<bit>, e.g. P0.3 for bit 3 of port 0, followed by a consecutive number in parentheses.

    For each pin, enter the command to execute when the input goes On and Off, respectively. Click a cell to edit the command.

    The inputs are active-low: A pin is considered On when it is connected to ground (e.g. through a switch or relay contact), and Off otherwise.

    Outputs

    The pins can also be used as outputs, e.g. to drive an LED or a relay, from a background script:

    IOWarriorRemote(0).SetPin(3, true);
    

    The first parameter of IOWarriorRemote is the index of the IO-Warrior interface (0 for the first one, if you have more than one configured). The first parameter of SetPin is the pin number, counted from 0 (P0.0 = 0, P1.0 = 8, etc.); the second parameter switches the output on (pulled to ground) or off. While a pin is switched on as an output, it will not trigger any input commands.