I had a few problems using pulseview/libsigrok with my MSO1104z, trying to decode the capture of analog channels from the memory buffer. The patch file has the following changes.
. There was a bug, when retrieving 2 analog channels (and probably other combinations), the first channel would complete, but the second (last) would stop after the first block. The code incorrectly terminated the transfer. . Add transfer_block_size to device series table, and change DSO1000z from 30k to 250k. This is to allow faster transfers. I removed ACQ_BUFFER_SIZE and ACQ_BLOCK_SIZE and made them both the new variable. I'm not sure if that will break anything. . Turn off beep when beginning a transfer, then turn it on again when complete. The scope would beep twice for each block transferred. . Query the number of samples from the scope, rather than transfer everything. When retrieving past the end of the sample memory, errors would appear on the scope screen. . Change the behaviour of memory mode - this now just reads the memory from the scope that has already captured something ie it doesn't do a "Run" before acquiring. I did this because retrieving the memory depth/sample count was very unreliable. . Stop read digital channels multiple times - the code is already smart enough to know the digital data comes in 2 groups, D0-D7, and D8-D15, but it transfers the data again for each channel. Eg if D0,D1,D2 are enabled, repeats the transfer 3 times and appends the data to the capture, when it already has the data. This was done for memory reading only (live is still unsupported) My motivation for this it to work around the MSO1104z's crappy protocol decoder. The scope has a 24M sample memory, but only decodes what is visible on the screen. Using sigrok/pulseview, I can now load and decode the whole capture. Feel free to accept/reject the changes. Thanks, Frank
0001-Modifications-to-make-memory-mode-work-with-MSO1104z.patch
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel