Codebase list lxi-tools / HEAD NEWS
HEAD

Tree @HEAD (Download .tar.gz)

NEWS @HEADraw · history · blame

  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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
=== lxi-tools v2.4 ===



Changes since lxi-tools v2.3:

 * Prefix all lua functions with lxi_

   To avoid conflict with existing lua APIs.



Changes since lxi-tools v2.2:

 * Fix copy of IP and ID

 * Also autocomplete lxi-tools.lxi

 * Update LICENSE



Changes since lxi-tools v2.1:

 * Add support for manually adding instruments

   Manually added instruments are managed via settings in the dconf registry
   so that they can be remembered by the application.

   Manually added instruments will appear with an instrument icon with a
   yellow indicator (indicating that it may or may not be present).

   Automatically discovered instruments will appear with an instrument icon
   with a green indicator (indicating that it is likely present since it
   responded).

   Once added it is possible to edit or remove instruments again via the
   right click menu.

 * Show error in case benchmark fails

 * Make use of new AdwAboutWindow

 * Do not break normal clipboard copy feature

 * Only copy image data to clipboard when image data is available

 * Add lua log feature to command-line tool

 * Add repology packaging status

 * Fix desktop file categories

   Prevent that application might appear more than once in the application menu

 * Rework meson lua dependency check

   To support more distributions which package lua differently.

 * Rework meson readline dependency check

   To support readline installations without pkg-config.

 * Remove internationalization stuff

   There are no plans to support other languages.

 * Rename COPYING -> LICENSE

 * Cleanup date_time()

   Also, use ISO8601 timestamp format.

 * Rename test -> examples

 * Update PSU data log test script

 * Add automation test script (draft)

 * Reduce default timeout values

 * Fix timeout conversion

   Fix so that the printed default timeout values are not different when
   running 'lxi' or 'lxi --help'. Fix also simplifies code.

 * Remove obsolete completion script for snap

 * Use '#pragma once' in all headers

 * Disable natural wrap mode

 * Cleanup circleCI configuration

 * Rename ChangeLog to NEWS

 * Enable gui by default

   Distributions like Ubuntu now have all the components required to build
   lxi-gui so let's enable it by default.

 * Add TODO list

Perry Hung:

 * README: update readme to reflect lecroy support

   Add the LeCroy WavePro ZI-a to the list of tested devices.

 * plugins: lecroy: poll status register until SCDP bit is set

   To avoid racing the device (transferring a file before it's available),
   poll the SCDP bit in the status register until the hardcopy has
   completed.

 * plugins: lecroy make command format consistent

   Use shortened and capitalized forms across all commands for consistency.

 * plugins: lecroy: error check and validate inputs

   Fix some memory safety issues. Add some rudimentary checks and validate
   untrusted input from the device.

 * plugins: implement screenshot for LeCroy WavePRO oscilloscopes

   This changeset adds screenshot support for LeCroy oscilloscopes that
   implement the MAUI LXI interface.

   In principle this should work with other LeCroy telescopes, but I have
   only tested it with the WavePro 7 Zi-A.

Adrian Scripca:

 * Added ability to copy grabbed screenshot to clipboard

Eddie:

 * adds R&S CMW270 to README

werwaswarum:

 * Add R&S ZNL as compatible

   Tested R&S ZNL3. LXI discover and SCPI ok.
   As far as I read the manual screenshoots are only saved to the device or send to a printer.

Walter Stanish:

 * Update Wiki link text; add Wiki section



Changes since lxi-tools v2.0:

 * Remove scpi run commands from file feature

   Retiring this feature as one should use the Lua script feature instead.

 * Fix memory leak in screenshot plugins

 * Add extra features to the SCPI text view context menu

   Add "Clear all" and "Save as.." features.

 * Fix printing of sent SCPI command when using TCP/RAW

   A redundant newline is removed.

 * Improve SCPI send button state change

 * Fix appdata.xml.in

 * Prefix SCPI messages with timestamp, IP, and type

   Allow prefixing SCPI messages with timestamp, IP, and type
   (REQ/RSP). Add preference settings accordingly.

   Prefixing with IP is default.

 * Rename from metainfo to appdata because of meson

 * Update application meta file

 * Update AppData path

 * Fix psu data log test

 * meson: Require dependencies

 * Add doc section to README

Valentin Belot:

 * Fix memory allocation and GUI update outside of main thread (macOS compatibility)



Changes since lxi-tools v1.21:

 * New lxi-gui application with many new features

   Too many changes to list here. See git history for complete list of
   changes.

 * Replace autotools with meson

 * Pass id to screenshot plugins

 * Do not exit when screenshot plugin fails

 * Rename lxi option '-s --script' to -f --file'

 * Add lua clock API

   Add lua clock API for measuring elapsed time:

    * c = clock_new()      - Returns new clock
    * time = clock_read(c) - Returns elapsed time in seconds since first read call
    * clock_reset(c)       - Resets clock time
    * clock_free(c)        - Releases clock handle

   First time clock_read() is called on a new clock it will return a time
   of 0 seconds and the clock will start running.

   This clock API is useful for time stamping data as it is retrieved from
   an instrument.

 * Replace Travis wth CircleCI

   Travis is no longer free for open source projects!

   CircleCI seems to be the new king for quick open source CI.

 * Add Rigol DM3058 to instrument list

Sam Harry Tzavaras:

 * Add screenshot plugin for tek 3000 series

Uli Köhler:

 * Added Rigol DL3021 to list of supported devices

Heiko Jakob:

 * Added screenshot support for Rigol DL3000 series programmable DC load

 * Changed screenshot dg4000 regex to also match dg1000z series

Mete Balci:

 * Added Keysight MSOX 6004A to list of supported device

 * Added Rohde & Schwarz NGE 100 to list of supported devices

   I tested discovery, a few SCPI commands (IDN?, MEAS?, MEAS:CURR?) and
   screenshot with the power supply R&S NGE 103B (NGE100 3-channels model).
   All works fine.

Martino Ferrari:

 * Added Rohde & Schwarz RTM 3004 to list of supported devices

htro:

 * Added Tek MDO3024, 4 Series and 5 Series as compatible



Changes since lxi-tools v1.20:

 * Fix handling of question commands in interactive mode



Changes since lxi-tools v1.19:

 * Add bash completion for snap

 * Update README

   Add tested instrument Keysight AWG 33612A as tested by Timur Aydin.

 * Add const qualifier

 * Update AUTHORS

 * Require Lua 5.1 or newer

 * Include test dir in distribution

 * Update Travis

 * Fix bash completion for run command

 * Update basic-tests.lua

 * Move test directory

 * Add basic Lua tests



Changes since lxi-tools v1.18:

 * Downgrade to Lua 5.2

 * Update Travis configuration

 * Add Lua scripting feature to support automation

   Add run command which makes it possible to run Lua scripts to support
   advanced instrument automation.

   To run a Lua script simply do:
   $ lxi run test.lua

   The following LXI specific Lua functions are added and made available
   for use in the Lua scripts:

   device = connect(ip)
   scpi(device, command)
   scpi_raw(device, command)
   msleep(miliseconds)
   sleep(seconds)
   disconnect(device)

   See src/test/test.lua for a simple Lua script example.

 * Update README

 * Update AUTHORS

 * Improve regex of rs-hmo-rtb screenshot plugin

   Include instruments made with "HAMEG" identifier.

 * README: Add sponsors section

 * lxi-gui: Fix snap build

 * configure: use pkg-config to check for Qt5

 * lxi-gui: Cleanup Qt5 configuration

 * Reconfigure R&S screenshot plugin to BMP

 * Add RTB2004 to list of tested instruments

Dmitri Goutnik:

 * Use QT_SELECT value instead of hardcoded QT version



Changes since lxi-tools v1.17:

 * lxi-gui: Add X-axis title to data recorder chart

 * lxi-gui: Fix data recorder chart colors and csv export

 * lxi-gui: Add SCPI 1999.0 commands

 * lxi-gui: Add data recorder save data feauture

   Add a save button which allows to save recorded data to file in CSV
   format.

 * lxi: Increase default discover mDNS timeout

 * lxi-gui: Optimize data recorder plotting

 * lxi-gui: Fix arm snap build

 * lxi-gui: Print machine type during qmake build

 * lxi-gui: Remove *OPT? SCPI command

 * lxi-gui: Use elapsed real time in data recorder

 * lxi-gui: Print SCPI command requests

 * Add screenshot support for RTB 2000

 * Cleanup timeout handling, etc.

 * lxi-gui: Reduce minimum window size

 * Add support for adding custom Qt qmake arguments

   Add QMAKE_ARGUMENTS flag which allows to pass on arguments to qmake when
   building lxi-gui.

 * lxi-gui: Make sure to call QT5 qmake



Changes since lxi-tools v1.16:

 * lxi-gui: Add input dialog for *ESE and *SRE commands

 * lxi-gui: Fix qmake compile flags

 * lxi-gui: Start with SCPI page

 * Add configure check for Qt5Charts

 * lxi-gui: Cleanup

   Name UI elements accordingly

 * lxi-gui: Add screenshot live view

 * Update README screenshot

 * lxi-gui: Add ID/IP instrument table header

 * lxi-gui: Tag as BETA

 * Update README

   Introduce lxi-gui and include screenshot.

 * Link QT5 Charts manually

   To avoid build issue with snap.

 * lxi-gui: Add data recorder feature

 * lxi-gui: Add settings

 * lxi-gui: Add QT5 source files

 * lxi-gui: Introduce responsive layout

   The lxi-gui application can now automatically resize to fit any window
   size.

 * lxi-gui: Add 'Open in browser' right-click feature

 * lxi-gui: Add IEEE 488.2 Common Commands

 * lxi-gui: Add about details

 * lxi-gui: Add screenshot feature

 * lxi-gui: Add benchmark feature

 * Split features into separate files

 * Update README

 * Update lxi-gui

 * Add keysight-dmm screenshot plugin

   This plugin supports Keysight Truevolt digital multimeters.

 * Set default discover timeout to 1 s

 * Add experimental QT5 GUI

   Can be enabled using configure option --enable-lxi-gui

   Requires QT 5.0.0 or newer.

 * Cleanup

 * Update Travis



Changes since lxi-tools v1.15:

 * Update AUTHORS

 * Convert tabs to spaces

 * Remove experimental label from keysight-ivx plugin

   Tested with MSO-X 3024T by ralphrmartin from EEVBlog forum.

 * Fix keysight-iv2000x plugin

   Fix header strip and change image format to BMP. Improve regex.

 * Fix image format for rigol-dg4000 plugin

 * Update completion script

 * Cleanup

Dmitri Goutnik:

 * Make code clang friendly



Changes since lxi-tools v1.14:

 * Update man page

 * Add support for using raw/TCP in benchmark mode

   Add the option to run benchmark using raw/TCP. For example:

   $ lxi benchmark --address 10.0.0.42 --port 5555 --raw

   Also, cleanup all port handling code and update documentation
   accordingly.

 * Decrease timeout for discover to 2 s



Changes since lxi-tools v1.13:

 * Make screenshot plugin only support Rigol DM3068

   Rigol DM3068 is the only DM3000 series digital multimeter that seems to
   have screenshot support.

 * Fix entering interactive mode

   Regardless of using --interactive a SCPI command was still required to
   be provided to enter interactive mode.

 * Update AUTHORS

 * Remove experimental label from Siglent plugins

   Thanks to Siglent who helped fix and test all the screenshot plugins for
   their instruments.

 * Cleanup screenshot plugins

 * Consolidate Rigol DSA plugins into one

 * Update README and man page

 * Support writing screenshot image to stdout

   To write screenshot image to stdout simply use '-' as the output
   filename. This allows to pipe the screenshot image directly to other
   tools for image processing.

   For example, using imagemagick to automatically convert captured
   screenshot image to JPG:

    $ lxi screenshot -a 10.0.0.42 - | convert - screenshot.jpg

 * Cleanup Siglent screenshot plugins

 * Update siglent-ssa3000x plugin

 * Add siglent-sdg plugin

 * Add siglent-sdm3000 plugin

 * Move siglent-sds out of experimental

 * Extend Siglent plugin to include SDS2000X



Changes since lxi-tools v1.12:

 * Update README

 * Update SSA3000X capture command

 * Add completion for benchmark command

 * Update AUTHORS

 * Fix get_device_id()

   This function was missing a call to lxi_disconnect() which resulted in
   some instruments being left hanging when capturing screenshots.
   Instruments that presumable only allow one active connection.

 * Add benchmark feature

   This benchmark feature is useful if you want to compare the VXI-11
   request/response performance of your instruments.

   By default the benchmark sends 100 SCPI ID requests ("*IDN?" commands)
   to the instrument. For each request it waits for and reads the response.
   When done the resulting request rate is printed.

 * Fix screenshot command when using plugin autodetection

   The wrong timeout value was passed when trying to autodetect which
   screenshot plugin to use.

 * Cleanup

 * Fix Rohde & Schwarz HMO 1000 screenshot plugin

   Fix plugin so that it does not strip off the PNG header of the PNG image
   stream.

   Also, the source files and functions of the plugin is now named more
   explicitly according to the name of the instrument series (HMO 1000).

 * Fix Siglent SSA3000 screenshot plugin



Changes since lxi-tools v1.11:

 * Update to new URL

 * Add snap status

 * Fix redirection of output to file

 * Update README

 * Cleanup configure.ac

Jakub Wilk:

 * Use HTTPS in the configure script



Changes since lxi-tools v1.10:

 * Update README

 * Update man page

 * Update AUTHORS

 * Expand tested instruments list

 * Rename screenshot plugin rigol-1000 -> rigol-1000z

 * Add various Rigol screenshot plugins

   Add the following Rigol screenshot plugins:

   rigol-dg4000   Rigol DG4000 series function generator
   rigol-dm3000   Rigol DM3000 series digital multimeter
    rigol-dp800   Rigol DP800 series power supply
   rigol-dsa800   Rigol DSA800 series spectrum analyzer
   rigol-dsa700   Rigol DSA700 series spectrum analyzer

   The code is added on behalf of PeDre from the EEVBlog forum.

 * Add authors section in README

 * Add README.md to prettify GitHub page

   The original README is still preserved because it is more readable when
   not reading it via GitHub.

Jakub Wilk:

 * Strip trailing spaces

 * Fix typo

 * Fix grammar and typos



Changes since lxi-tools v1.9:

 * Add support for mDNS/DNS-SD discovery

   Add "--mdns" option which enables the discover command to search for LXI
   devices/services using mDNS/DNS-SD.

 * Fix Siglent screenshot plugins

   Write correct response buffer to file. Improve .regex match expression.



Changes since lxi-tools v1.8:

 * Update README

 * Fix newlines when redirecting to file or terminal

 * Rename --dump-hex to --hex

 * Fix missing error message when no SCPI command defined

 * Update man page

 * Remove --dump-file option

   The correct way to dump response to file is to use pipe output
   redirection. For example:

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

   This way it is possible to dump any binary response to file.

 * Fix missing error message when no IP address defined

 * Print errors to stderr

 * Cleanup Siglent SDS1000 plugin name

 * Add Siglent SSA 3000X screenshot plugin

 * Cleanup script examples

 * Correct default SCPI raw/TCP port

   By default use port 5025 as described here:
   http://www.lxistandard.org/About/LXI-Protocols.aspx

   If a different port is needed use the '--raw-port' option.

   Apparently Rigol is not using the recommended port for raw SCPI
   commands.

 * Update descriptions of the plugin options



Changes since lxi-tools v1.7:

 * Update README

 * Add Siglent SDS 1000 screenshot plugin



Changes since lxi-tools v1.6:

 * Update README

 * Cleanup

 * Update .regex for Tektronix plugin

 * Update .regex for R&S plugin

 * Update .regex for Keysight plugin

 * Update man page

 * Embed instrument IP address in screenshot filename

   This helps identify screenshot files when capturing screenshots from
   multiple instruments.

   It also allows simplifying the APIs used by the screenshot plugins.

 * Change option '--model' to '--plugin'

   Lets remove any model vs. plugin confusion and only deal with plugin
   names. Each plugin includes support for one or more instruments models
   as described in the plugin description.

 * Add automatic loading of screenshot plugin feature

   If no screenshot plugin is specified the tool will automatically try to
   select the best plugin by matching the instruments ID string against the
   regular expressions defined in each plugin.

   Each screenshot plugin defines a .regex string entry containing space
   separated regular expressions. Each regular expression is matched
   against the instrument ID string. The plugin with most matches is
   selected.

   Note: This mechanism is slightly slower than manually specifying which
   screenshot plugin because it needs to retrieve the instruments ID string
   first.

 * Improve description of Rigol plugins

 * Fix Rigol 2000 screenshot plugin

   Remove trailing newline in received image data.

 * Add screenshot plugin for Rigol 2000 series

   Also, make existing Rigol plugin only apply for 1000z series.



Changes since lxi-tools v1.5:

 * Add date-time stamp to screenshot filename

 * Improve command handling

   In case of a misspelled command the tool would misleadingly
   respond: "Error: No IP address specified"

   With this fix, it now responds: "Error: Unknown command"

 * Update README

 * Added screenshot plugin for Tektronix 2000 series scopes

 * Improve scpi response output

 * Add --raw and --raw-port options to scpi command

   One can now use choose to use raw/TCP instead of VXI11 when firing SCPI
   commands. Simply append the --raw option like so:

   lxi scpi --raw --address 192.168.0.42 "*IDN?"

   By default raw/TCP port 5555 is used but it can be changed using the
   --raw-port <port> option.

   Warning: Using raw/TCP is faster than VXI11 but does not provide any
   timeout/control mechanisms so if your command somehow stalls it will
   stall forever.

 * Use new lxi_connect() function

 * Cleanup

 * Make screenshot filename optional

   In case no screenshot filename is provided the tool will write the
   screenshot image to an automatically resolved and incremented filename
   on the form screenshot-###.<format>. For example, screenshot-000.png,
   screenshot-001.png, etc.

 * Improve screenshot model listing

 * Increase default timeout for screenshot command

   Transferring screenshot image data takes time so lets increase the
   timeout so we do not easily interrupt a good but slow transfer.

 * Collapse Rigol screenshot plugin

   Support all Rigol oscilloscope models via one model name.

 * Add screenshot support for Keysight IV 2000 X

 * Cleanup plugins

 * Add screenshot support for R&S HMO1000 series

 * Add screenshot support for Rigol 2000/4000

 * Create directory for screenshot plugins



Changes since lxi-tools v1.4:

 * Remove -Og flag

   Not supported by older gcc versions.

 * Fix various bugs in script and interactive mode



Changes since lxi-tools v1.3:

 * Add screenshot feature to lxi tool

   The old rigol_1000z_screenshot tool is retired in favor of a screenshot feature
   in the lxi tool. A new lxi command 'screenshot' is added and also a small
   screenshot plugin framework which makes it easy to add new screenshot plugins
   for new instruments.

   Currently there is only a screenshot plugin for Rigol 1000Z series
   oscilloscopes.

 * Update README



Changes since lxi-tools v1.2:

 * Added AUTHORS file

 * Use new lxi_connect() function

 * Reconfigure default timeout to 3 seconds



Changes since lxi-tools v1.1:

 * Increase default timeout value for lxi tool

   Increase the default timeout value for the lxi tool from 1 to 5 seconds

 * Fix timeout for Rigol screenshot tool

   Timeout is increased to avoid failure to capture screenshot

 * Fix typo

 * Cleanup test script

 * Fix crash in rigol_1000z_screenshot tool

   Add error handling to avoid crashing when connecting remote device fails.



Changes since lxi-tools v1.0:

 * Fix missing src/bash-completion/lxi

   An automake rule was fixed to make sure that the file
   src/bash-completion/lxi is included in the distributed tarball.

 * Update README



lxi-tools v1.0:

 * First release (stable)