bin/read_trace

Mon, 25 Feb 2008 19:50:49 +0100

author
David Douard <david.douard@logilab.fr>
date
Mon, 25 Feb 2008 19:50:49 +0100
changeset 54
5c1a312830e7
parent 40
1bbea188a7e5
permissions
-rwxr-xr-x

An AbstractGPIBDevice and the Command should now behave quite OK ie. one can type d.MyCommand and it will return the value (either from the cache or after having asked it to the device), and use d.FRS = 10000 to send the command "FRS 10000 Hz" to the device transparently.

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

mercurial