def METHOD_NAME(self):
    """Stores the digital input values into the tree.
    Connects to the host and for each of the DIGITAL_INS nodes which are turned on, read the digital input and store the value in the node.
    """
    import os
    debug = os.getenv("DEBUG_DEVICES")
    try:
        host = str(self.node.record.data())
    except:
        host = 'local'
    if Data.execute('mdsconnect($)', host) == 0:
        raise Exception("Error connecting to host: "+host)
    board = int(self.board.record)
    for i in range(4):
        di_nid = self.__getattr__('digital_ins_di%d' % (i, 1))
        if di_nid.on:
            try:
                exp = 'MdsValue("_lun=fopen(\\\"/sys/module/cp7452_drv/parameters/format\\\",\\\"r+\\\"); write(_lun,\\\"1\\\"); fclose(_lun);'
                exp = exp + \
                    '_lun=fopen(\\\"/dev/cp7452.%d/DI%d\\\",\\\"r\\\"); _ans=read(_lun); fclose(_lun),_ans")' % (
                        board, i)
                if debug:
                    print(exp)
                value = eval('0x'+str(Data.execute(exp)))
                di_nid.record = value
            except Exception as e:
                print("Error inputting from DI%d\n\t%s" % (i, str(e),))
    return 1