def METHOD_NAME(self):
    """Initialize digital outputs of CP7452 cpci board.
    Connects to the host and for each of the DIGITAL_OUTS nodes which are turned on, write the value to the digital output.
    """
    import os
    from MDSplus import Uint32
    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):
        do_nid = self.__getattr__('digital_outs_do%d' % (i,))
        if do_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/DO%d\\\",\\\"r+\\\"); write(_lun,\\\"%x\\\"); fclose(_lun)")' % (
                    board, i, int(Uint32(do_nid.record.data()).data()))
                if debug:
                    print(exp)
                Data.execute(exp)
            except Exception as e:
                print("Error outputing to DO%d\n\t%s" % (i, str(e),))
    return 1