Products > Test Equipment
Open source lxi-tools v2.0 released
RoGeorge:
A very first test I would try would be to change the format of the screenshot, from the oscilloscope settings (if MSO5000 has such option, try BMP, PNG whatever MSO5000 has).
If you want to properly debug, install Wireshark and look at the LAN data packets sent by the v1.21, then compare that with what SCPI commands the GUI version sends (and the answer from the oscilloscope) while trying to get a screenshot.
WaveyDipole:
RoGeorge, checking the display format was my first idea but I can find no option to change that on the scope. The only display setting there seems to be is to turn the HDMI display on and off and to set its resolution. I don't see any settings to change the format of the image data sent via SCPI. Of course, this may be possible even if via SCPI comands so I will check the manual.
The Wireshark capture was a good idea and I have done a capture of network traffic during a screen grab for each of the two versions. A cursory glance shows that both versions:
send - *IDN?
receive - RIGOL TECHNOLOGIES 5074,serial number,00.01.03.00.03
send - display:data? on,0,png
after which comes the image data.
RoGeorge:
Not over SCPI, IIRC the setting is the one for when saving it on a USB drive. Probably at page 349 of 372 (I've searched for 'jpg' inside the pdf, I didn't read properly so please double check, I don't have a MSO5000):
https://www.rigol-uk.co.uk/pdf/Rigol-MSO5000-User-Guide.pdf
So both the GUI and the command line are using the same SCPI?
--- Code: ---:display:data? on,0,png
--- End code ---
If yes, then it should work. Try setting the image format to PNG in oscilloscope. I don't know what to advice more without digging in the sources, sorry.
If you think you found a bug, please post it on github, so the devs will try to fix it.
LATER EDIT:
------------------
By looking at the programming guide for MSO5000, it says the returned format for the SCPI command ':display:data?' is BMP, and doesn't show the additional parameters 'on, 0, png', see page 88 of 282 in https://int.rigol.com/Images/MSO5000ProgrammingGuideEN_tcm7-4051.pdf
Yet you say the download screen works from the old command line 'lxi' but not from GUI, though both GUI and the command line are sending the same SCPI command. That's contradictory, maybe you hit a bug, don't know what to advice further. :-//
Ask lundmar here, or open a bug on github https://github.com/lxi-tools/lxi-tools
WaveyDipole:
Thanks. I also had a poke around in the programming manuals for both the DS1054Z and the MSO5000. The DS1054Z manual contains a little more detail and shows the format of the image header. Both oscilloscopes are returning similar bitmap (BMP) headers, the only difference being is that the data length on the MSO5000 is larger since its screen has a higher resolution. I suspect that the 'on,0,png' parameter is just ignored by the scope.
The MSO5000 has several format options for saving data to USB including *.png, *.bmp, *.jpg and *.tif. By default, *.png is selected.
To confirm, yes, the download screen works from the old CLI command 'lxi' but not from the new version 2.4 GUI, though both GUI and the command line are sending the same SCPI command. I agree this sounds contradictory so I have now logged an issue for this at lundmar's GitHub repository as suggested.
RoGeorge:
Yes, the TMC format is standard to exchange binary with SCPI (which otherwise are plain text messages). TMC header stays the same even between different brands.
I doubt an incorrect SCPI will be ignored, but it could be an undocumented format of the command, or an incomplete programming guide (it happened before with my DS1054Z).
So, have you tested with each image format (by changing the image format in the oscilloscope), and none of the bmp/png/jpg/whatever format is understood by the GUI screen capture?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version