Mon, 04 Jun 2018 22:28:05 +0200
[plotter] add a --mockup option to the demo main function
63
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
1 | .. -*- coding: utf-8 -*- |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
2 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
3 | Features |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
4 | ======== |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
5 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
6 | - Control GPIB devices using cheap Prologix_ USB-GPIB devices using a |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
7 | "high" level API; some other GPIB backends could be implemented, but |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
8 | I for now only have a Prologix USB bundle... |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
9 | |
91
f2a8f688dbc0
project moved to bitbucket
David Douard <david.douard@logilab.fr>
parents:
73
diff
changeset
|
10 | - A simple (and incomplete) GPIB plotter is available. |
63
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
11 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
12 | - Infrastructure to "easily" create description of a specific test |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
13 | equipment. |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
14 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
15 | Known test equipment |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
16 | ==================== |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
17 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
18 | For now, the following test equipment have been (partially) |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
19 | implemented: |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
20 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
21 | - HP 3562A/3563A Dynamic Signal Analyzer |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
22 | - Simple GPIB plotter |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
23 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
24 | The devices I should implement soon (well, ASAP): |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
25 | |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
26 | - HP 8904A Signal Synthetizer |
67
e6340960fcbe
updated introduction doc
David Douard <david.douard@logilab.fr>
parents:
63
diff
changeset
|
27 | - HP 3456A Meter |
63
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
28 | |
72 | 29 | ======= |
30 | Tools | |
31 | ======= | |
32 | ||
33 | For the sake of testing these tools, some example files are proposed | |
34 | in the `example` directory. | |
35 | ||
36 | `examples/hpgl_plots` are examples of HPGL files (resulting from | |
37 | plotting from my HP3562A). | |
38 | ||
39 | `examples/datablocks` are examples of HP3562A state, trace and coords | |
40 | datablocks dumped. | |
41 | ||
42 | The `mockup` mode of the tools presented below are using these files | |
43 | as data source. | |
44 | ||
45 | ||
46 | GUI Tools | |
47 | ========= | |
48 | ||
49 | qgpibplotter | |
50 | ------------ | |
51 | ||
52 | This is a little app to emulate a GPIB HPGL plotter. | |
53 | ||
54 | Once started, one can load and display a previously saved HPGL file | |
55 | (using the File menu). | |
56 | ||
57 | However, the main usage is to use it as a passive device on the GPIB | |
58 | bus (default address is 5, but this may be configured in user | |
59 | preferences). There is a main "On Line" button which can be in out | |
60 | out. When "online", it will receive plots from every device on the | |
61 | GPIB bus performing plot commands. | |
62 | ||
63 | There is "test" mode, in which a fake GPIB connection will be used | |
64 | instead of the real one. So is one want to see *qgpibplotter* in | |
65 | action, just run it with the ``-m`` option (mockup). Type | |
66 | ||
67 | qgpibplotter -h | |
68 | ||
69 | for details. | |
70 | ||
71 | q3562 | |
72 | ----- | |
73 | ||
74 | This a small GUI application that allow to easily retrieve state, trace | |
75 | and coord datablocks from a HP3562A/HP3563A device (see HP manuals of | |
76 | these devices for details). | |
77 | ||
78 | There is "test" mode, in which a fake GPIB connection will be used | |
79 | instead of the real one. So is one want to see *qgpibplotter* in | |
80 | action, just run it with the ``-m`` option (mockup). Type | |
81 | ||
82 | q3562 -h | |
83 | ||
84 | for details. | |
85 | ||
86 | Command line tools | |
87 | ================== | |
88 | ||
89 | gpib_detect | |
90 | ----------- | |
91 | ||
92 | Simple GPIB device detector. The computer GPIB device is configured so | |
93 | it is the Controller In Charge on the GPIB bus. It takes a while | |
73
2645ef311424
small cleanups and doc update
David Douard <david.douard@logilab.fr>
parents:
72
diff
changeset
|
94 | (several seconds) to run the retection procedure. |
2645ef311424
small cleanups and doc update
David Douard <david.douard@logilab.fr>
parents:
72
diff
changeset
|
95 | |
2645ef311424
small cleanups and doc update
David Douard <david.douard@logilab.fr>
parents:
72
diff
changeset
|
96 | Once complete, it will simply display the list of devices found on the |
2645ef311424
small cleanups and doc update
David Douard <david.douard@logilab.fr>
parents:
72
diff
changeset
|
97 | bus, with a decription of the device (if available, ie. if it replies |
2645ef311424
small cleanups and doc update
David Douard <david.douard@logilab.fr>
parents:
72
diff
changeset
|
98 | to the IDN? command, which is not the case of older devices). |
72 | 99 | |
100 | dump_datablock | |
101 | -------------- | |
102 | ||
103 | Retrieve a datablock from a HP3562A/HP3563A device. The datablock can | |
104 | be the state, trace or coord datablock, and it can use the ASCII, | |
105 | BINARY or ANSI dumping mode. The resulting data are saved in a file. | |
106 | ||
107 | read_XXX | |
108 | -------- | |
109 | ||
110 | These 3 tools can be used to display a datablock previously dumped in | |
91
f2a8f688dbc0
project moved to bitbucket
David Douard <david.douard@logilab.fr>
parents:
73
diff
changeset
|
111 | a file (using *dump_datablock*). |
72 | 112 | |
113 | ||
114 | .. | |
115 | .. | |
63
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
116 | |
91
f2a8f688dbc0
project moved to bitbucket
David Douard <david.douard@logilab.fr>
parents:
73
diff
changeset
|
117 | .. _pygpibtoolkit: https://bitbucket.org/dddouard/pygpibtoolkit |
63
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
118 | .. _Prologix: http://www.prologix.com |
1c0d92f95115
added doc (almost empty) files
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
119 | .. _Python: http://www.python.org |