Draw an automata and export to excel