On Mon, Jul 24, 2017 at 08:03 +0200, KAPLAN Michael  / EVVA Wien wrote:
> 
> I have a question regarding the asix-sigma and pulseview.
> 
> In pulseview, when I set an amount of samples and a frequency,
> for example 1M Samples and 200kHz, and press the Run button,
> there will be 5 seconds of sampling, and everything is fine - I
> can see the samples afterwards.

Inspection of the source code suggests that the driver starts the
acquisition (keeping all data within the hardware, only fetching
it much later), and keeps checking for configured limits (number
of samples, or elapsed time) as well as the hardware's stopping
itself (e.g. due to exceeding the RAM capacity).

These checks will terminate the acquisition, download the samples
into the PC side, and make them available to the internal sigrok
session (where pulseview will render them to screen, or can save
to file on disk, the same applies to sigrok-cli).

> But when I press Run, and then Stop before the 5 seconds are
> over, nothing will be shown.
> 
> Is this a problem of the driver or pulseview or is this by
> design?

It's an implementation detail.  Quick inspection of the driver
(see libsigrok/src/hardware/asix-sigma/api.c) suggests that an
"externally initiated" dev_acquisition_stop() call just stops
checking the device state, but does not result in the hardware
stopping the acquisition, nor downloading the sample data to the
computer.

That's an omission in the current implementation.  You may call
it a bug, as the driver does not support one of the normal use
cases.  As mentioned above, both the GUI (pulseview) as well as
the CLI (sigrok-cli) are affected, since they share the driver's
implementation.


If you can help fix the issue, that would be great.  If not,
you'd have to wait for others to get around to it ... :->  There
are only few people I'm aware of who have access to this device.


virtually yours
Gerhard Sittig
-- 
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.

------------------------------------------------------------------------------
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

Reply via email to