def METHOD_NAME(self, buff):
    if self.params['address'].val == 'LabJack U3':
        code = ("from psychopy.hardware import labjacks\n"
                "%(name)s = labjacks.U3()\n"
                "%(name)s.status = None\n"
                % self.params)
        buff.writeIndentedLines(code)
    elif self.params['address'].val == 'USB2TTL8':
        code = ("from psychopy.hardware import labhackers\n"
                "%(name)s = labhackers.USB2TTL8()\n"
                "%(name)s.status = None\n"
                % self.params)
        buff.writeIndentedLines(code)
    else:
        code = ("%(name)s = parallel.ParallelPort(address=%(address)s)\n" %
                self.params)
        buff.writeIndented(code)