bin/dump_datablock

Mon, 25 Feb 2008 18:38:27 +0100

author
David Douard <david.douard@logilab.fr>
date
Mon, 25 Feb 2008 18:38:27 +0100
changeset 53
8e32c806fcdd
parent 40
1bbea188a7e5
permissions
-rwxr-xr-x

Major refactoring in progress. Build the toolkit around a GPIB controller which have a communication thread with the devices. Every device is an instance of a class that describes the device model and registers itself to the controller.

14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
1 #!/usr/bin/python
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
2
40
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
3 import sys, os
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
4 try:
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
5 from pygpibtoolkit.HP3562A.dump_datablock import main
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
6 except ImportError:
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
7 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
1bbea188a7e5 refactoring: moved everything of the library to a "pygpibtoolkit" module.
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
8 from pygpibtoolkit.HP3562A.dump_datablock import main
14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
9 main()

mercurial