merge changes from the 0.1 preparatio branch
[totalopenstation.git] / tops_serial_IO.py
blobe636d729b8dd36df5023d2adca2759a8f00c407d
1 #! /usr/bin/env python
2 # -*- coding: utf-8 -*-
3 # filename: interactive.py
4 # Copyright 2008 Stefano Costa <steko@iosa.it>
5 # Under the GNU GPL 3 License
7 from models import *
10 station = zeiss_elta_r55.ModelConnector('/dev/ttyUSB0')
11 station.open_conn()
13 # start from the device...
14 a = raw_input("Press ENTER when download has finished\n")
15 # wait until finished!
17 result = station.download()
18 print result
20 e = open('interactive_download.txt', 'w')
21 e.write(result)
22 e.close()