bin/read_state

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.

#!/usr/bin/python

import sys, os
try:
    from pygpibtoolkit.HP3562A.state_decoder import main
except ImportError:
    sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
    from pygpibtoolkit.HP3562A.state_decoder import main
main()

mercurial