Wed, 18 Mar 2009 00:26:27 +0100
many improvements:
- in gpibcontroler system (it begins to work fine),
- add HP3456A description module,
- add an almost empty HP8904A description module,
- add forgotten files (tests, mockups)
79 | 1 | # This program is free software; you can redistribute it and/or modify it under |
2 | # the terms of the GNU General Public License as published by the Free Software | |
3 | # Foundation; either version 2 of the License, or (at your option) any later | |
4 | # version. | |
5 | # | |
6 | # This program is distributed in the hope that it will be useful, but WITHOUT | |
7 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
8 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details | |
9 | # | |
10 | # You should have received a copy of the GNU General Public License along with | |
11 | # this program; if not, write to the Free Software Foundation, Inc., | |
12 | # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
13 | """ Copyright (c) 2007-2009 David Douard (Paris, FRANCE). | |
14 | http://www.logilab.org/project/pygpibtoolkit -- mailto:david.douard@logilab.fr | |
15 | ||
16 | """ | |
17 | import mx.DateTime as dt | |
18 | ||
19 | from pygpibtoolkit.pygpib import Constants, Command | |
20 | from pygpibtoolkit.pygpib import Mode, ModeCommand | |
21 | from pygpibtoolkit.pygpib import WriteOnlyMode | |
22 | from pygpibtoolkit.gpibcontroller import AbstractGPIBDevice, deviceRegister | |
23 | ||
24 | ||
25 | ||
26 | class HP8904Device(AbstractGPIBDevice): | |
27 | _accepts = ["^(?P<model>HP *8904A).*$",] | |
28 | _idn = "ID" | |
29 | ||
30 | def __init__(self, idn, address, controller): | |
31 | super(HP8904Device, self).__init__(idn, address, controller) | |
32 | ||
33 | ||
34 | deviceRegister.register_manager(HP8904Device) |