def slitpos(wheelPosition):
    """
    This function finds the slit position in x and y for given wheel position
    """
    #definition file (the original not the symbolic link)
    file = '/home/software/setupfiles/ALFOSC/slitpos.def'
    data = open(file, 'r').readlines()

    #just for help
    x, y = -1, -1

    #finds the right position and coordinates
    for line in data:
        pos, x, y = line.strip().split()
        if int(pos) == int(wheelPosition): break
    return x, y