Hi Martin,

today was a holiday over here so I managed to finish putting the sample
memory stuff for the DS2000 series into the unified driver.

It is now possible to select data sources "Live", "Memory" (and
"Segmented").

Sample memory depth is for now fixed at 14K/7K samples, this needs to be
made configurable later.

The driver has now "gained" dependencies between settings, i.e. we can
only set sample memory depth after we know how many channels are active.
The same is true for the DS1xx2 series as far as I understand. No idea
if this may cause problems for pulseview later.

The code is a bit of a hairball for now, I tried to not touch any DS1xx2
code and keep the code paths separate. I hope a lot of the code can be
unified to keep it readable.

I also think we need to more clearly delineate the overall structure of
driving the device. By that I mean it should be made obvious where the
device as a whole is set up, where capturing of one set of data frames
is set up and where reading data from one channel is handled. I tried to
structure my new code along this way, have a look if it looks sensible.

Also have a look at the names I gave the new stuff, e.g. I'm not
especially happy with the protocol designators but couldn't come up with
something better.

I also amended the trigger waiting. I tested it for a bit and it turned
out that for the wrong conditions 9 out of every 10 data frames were
duplicate data. So for timebases to fast to read the trigger status it
now just sleeps for about the sweep time, this should cut down on the
amount of duplicate data.

I think it should work reasonably well in practice because only crazy
people like me look at a 0.1Hz signal with a 20ms/div timebase,
everybody else probably want's to actually see their signal. ;-)

Patches follow as replies to this mail.


Enjoy,

MGri

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to