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
Add Siglent SDS 1000 screenshot plugin
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 to simplify 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.
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"
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 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
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-###.. 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.