File: README

package info (click to toggle)
lxi-tools 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 572 kB
  • sloc: ansic: 1,913; cpp: 762; makefile: 77; sh: 18
file content (250 lines) | stat: -rw-r--r-- 9,301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250

=== lxi-tools ===


1. Introduction

    lxi-tools is a collection of open source software tools that enables
    control of LXI compatible instruments such as modern oscilloscopes, power
    supplies, spectrum analyzers etc.

    All features are consolidated in the 'lxi' application which provides a
    simple commandline interface to discover LXI instruments, send SCPI
    commands, and capture screenshots from supported LXI instruments.

    Also provided is a GUI application which provide some of the features of
    the commandline tool.

    lxi-tools rely on liblxi for all communication.


2. Usage

2.1 lxi-gui (BETA)

               (See screenshot images/lxi-gui-beta.png)

    The lxi-gui application provides some of the same features as the
    commandline tool but presents them in a GUI frontend.


2.2 lxi

    The commandline interface of the lxi application is described in the output
    from 'lxi --help':

     Usage: lxi [--version] [--help] <command> [<args>]

       -v, --version                        Display version
       -h, --help                           Display help

     Commands:
       discover [<options>]                 Search for LXI devices
       scpi [<options>] <scpi-command>      Send SCPI command
       screenshot [<options>] [<filename>]  Capture screenshot
       benchmark [<options>]                Benchmark

     Discover options:
       -t, --timeout <seconds>              Timeout (default: 3)
       -m, --mdns                           Search via mDNS/DNS-SD

     Scpi options:
       -a, --address <ip>                   Device IP address
       -p, --port <port>                    Use port (default: VXI11: 111, RAW: 5025)
       -t, --timeout <seconds>              Timeout (default: 3)
       -x, --hex                            Print response in hexadecimal
       -i, --interactive                    Enter interactive mode
       -s, --script <filename>              Run script file
       -r, --raw                            Use raw/TCP

     Screenshot options:
       -a, --address <ip>                   Device IP address
       -t, --timeout <seconds>              Timeout (default: 15)
       -p, --plugin <name>                  Use screenshot plugin by name
       -l, --list                           List available screenshot plugins

     Benchmark options:
       -a, --address <ip>                   Device IP address
       -p, --port <port>                    Use port (default: VXI11: 111, RAW: 5025)
       -t, --timeout <seconds>              Timeout (default: 3)
       -c, --count <count>                  Number of request messages (default: 100)
       -r, --raw                            Use raw/TCP


2.2.1 Example - Discover LXI devices on available networks

     $ lxi discover
     Searching for LXI devices - please wait...

     Broadcasting on interface lo
     Broadcasting on interface eth0
         Found "RIGOL TECHNOLOGIES,DS1104Z,DS1ZA1234567890,00.04.03.SP2" on address 10.42.1.20
         Found "RIGOL TECHNOLOGIES,DP831,DP8F1234567890,00.01.14" on address 10.42.1.67
     Broadcasting on interface wlan0

     Found 2 devices


2.2.2 Example - Send SCPI command to an instrument

     $ lxi scpi --address 10.42.1.20 "*IDN?"
     RIGOL TECHNOLOGIES,DS1104Z,DS1ZA1234567890,00.04.03

    To dump response to file simply do:

     $ lxi scpi --address 10.42.1.20 "*IDN?" > response.txt


2.2.3 Example - Capture screenshot from a Rigol 1000z series oscilloscope:

     $ lxi screenshot --address 10.42.1.20 --plugin rigol-1000z
     Saved screenshot image to screenshot_10.42.1.20_2017-11-11_13:45:47.png

     Or using plugin autodetection simply:

     $ lxi screenshot --address 10.42.1.20
     Loaded rigol-1000 screenshot plugin
     Saved screenshot image to screenshot_10.42.1.20_2017-11-11_13:46:02.png


2.2.4 Example - Capture screenshot and convert it to any image format

   By default the format of the captured screenshot image is dictated by which
   screenshot plugin and instrument are in play. However, it is possible to
   write the screenshot image to stdout and pipe it directly to other tools for
   image processing.

   For example, use ImageMagicks convert tool to automatically convert
   screenshot image to JPG:

    $ lxi screenshot --address 10.42.1.20 - | convert - screenshot.jpg


2.2.5 Example - List available screenshot plugins

     $ lxi screenshot --list
                 Name   Description
         keysight-ivx   Keysight InfiniVision 2000X/3000X series oscilloscope
          rigol-1000z   Rigol DS/MSO 1000z series oscilloscope
           rigol-2000   Rigol DS/MSO 2000 series oscilloscope
         rigol-dg4000   Rigol DG 4000 series function generator
         rigol-dm3000   Rigol DM 3000 series digital multimeter
          rigol-dp800   Rigol DP 800 series power supply
            rigol-dsa   Rigol DSA 700/800 series spectrum analyzer
           rs-hmo1000   Rohde & Schwarz HMO 1000 series oscilloscope (experimental)
      siglent-sdm3000   Siglent SDM 3000/3000X series digital multimeter
          siglent-sdg   Siglent SDG 1000X/2000X/6000X series waveform generator
          siglent-sds   Siglent SDS 1000X/2000X series oscilloscope
     siglent-ssa3000x   Siglent SSA 3000X series spectrum analyzer
       tektronix-2000   Tektronix DPO/MSO 2000 series oscilloscope (experimental)


2.2.6 Example - Benchmark instrument request/response performance

     $ lxi benchmark --address 10.42.1.20
     Benchmarking by sending 100 ID requests. Please wait...
     Result: 24.7 requests/second


3. Installation

    The latest release version can be downloaded from https://lxi-tools.github.io

3.1 Installation from release tarball

    Install steps:

     $ ./configure
     $ make
     $ make install

    Note: lxi-tools depends on liblxi so you need to go install liblxi first.


3.2 Installation using package

    lxi-tools comes prepackaged for various GNU/Linux distributions. Visit
    https://lxi-tools.github.io to see list of supported distributions.


4. Tested instruments

    The commandline lxi tool is tested to work successfully with the following
    LXI compatible instruments:

     Instrument                           Working features

     Keysight Technologies AWG 33612A     (discover+scpi+screenshot)
     Keysight Technologies DMM 34461A     (discover+scpi+screenshot)
     Keysight Technologies MSO-X 3024T    (discover+scpi+screenshot)
     Rigol Technologies DG4062            (discover+scpi+screenshot)
     Rigol Technologies DG4102            (discover+scpi+screenshot)
     Rigol Technologies DG4162            (discover+scpi+screenshot)
     Rigol Technologies DP831             (discover+scpi+screenshot)
     Rigol Technologies DP832             (discover+scpi+screenshot)
     Rigol Technologies DM3068            (discover+scpi+screenshot)
     Rigol Technologies DS1104Z           (discover+scpi+screenshot)
     Rigol Technologies DS2302            (discover+scpi+screenshot)
     Rigol Technologies DSA815            (discover+scpi+screenshot)
     Rigol Technologies MSO1104Z          (discover+scpi+screenshot)
     Rigol Technologies MSO2302A          (discover+scpi+screenshot)
     Rohde & Schwarz HMC 8012             (discover+scpi+screenshot)
     Rohde & Schwarz HMC 8043             (discover+scpi+screenshot)
     Rohde & Schwarz HMO 1202             (discover+scpi+screenshot)
     Rohde & Schwarz HMO 3054             (scpi+screenshot)
     Rohde & Schwarz RTB 2004             (discover+scpi+screenshot)
     Siglent Technologies SDG1032X        (discover+scpi+screenshot)
     Siglent Technologies SDG2122X        (discover+scpi+screenshot)
     Siglent Technologies SDG6052         (discover+scpi+screenshot)
     Siglent Technologies SDS1202X-E      (discover+scpi+screenshot)
     Siglent Technologies SDS1204X-E      (discover+scpi+screenshot)
     Siglent Technologies SDS2304X        (discover+scpi+screenshot)
     Siglent Technologies SDM3045X        (discover+scpi+screenshot)
     Siglent Technologies SDM3055         (discover+scpi+screenshot)
     Siglent Technologies SDM3065X        (discover+scpi+screenshot)
     Siglent Technologies SPD3303X-E      (scpi)
     Siglent Technologies SSA3032X        (discover+scpi+screenshot)

    Note: Feel free to add your instrument(s) to the list via GitHub pull
    request or simply create a GitHub issue reporting your instrument(s) and
    which features work.


5. Contributing

    lxi-tools is open source. If you want to help out with the project please
    join in.

    All contributions (bug reports, code, doc, ideas, etc.) are welcome.

    Please use the github issue tracker and pull request features.

    Also, if you find this free open source software useful please consider
    making a donation: https://www.paypal.me/lundmar


6. Website

    Visit https://lxi-tools.github.io


7. License

    This code is released under BSD-3, commonly known as the 3-clause (or
    "modified") BSD license.


8. Authors

    Created by Martin Lund <martin.lund@keep-it-simple.com>

    See the AUTHORS file for full list of authors.


9. Sponsors

    A thank you to the following sponsors that have donated test equipment to
    support the lxi-tools open source effort:

     * KIKUSUI Electronics Corp.