On Wed, Apr 14, 2010 at 06:38:26PM +0200, pieter.heremans wrote:
> hey bert & all,

Hi Pieter,

 
> i did quick hack (don't trust my code - i don't have an overview yet
> of how things really work) -- it works for me in cli mode
> 
> but not in the gui -- seems 'source_cb_add' is not implemented in the
> gui ?

Not yet, the GUI is not yet fully functional, I'm working on fixing
that. Expect improvements soonish.


> am i right, or is there another way to get the data in ?

You can load a file (any file really), it will be interpreted as
binary 8-channel logic analyzer output (each byte denotes 8 signal
values).

But as mentioned above, the UI is not too useful yet, zoom and scroll
don't yet work properly either (partially yes, but it needs fixing).


 
> --- /dev/null
> +++ b/libsigrok/hardware/dummy/dummy.c
> @@ -0,0 +1,355 @@
> +/*
> + * This file is part of the sigrok project.
> + *
> + * Copyright (C) 2010 Bert Vermeulen <[email protected]>

That should be

Copyright (C) 2010 Pieter Heremans <[email protected]>

rather, I think, as you wrote the code.


> +#define NUM_PROBES                           32
> +#define TRIGGER_TYPES                        "01"

Such a demo driver would be useful indeed. I haven't been thinking much
about how to properly implement it, but maybe some kind of Python script
integration would be useful (similar to the Python protocol decoder
scripts we'll have). That would allow us to write small Python scripts
to generate any kind of sample data on-the-fly (I2C, SPI, whatever)
with certain characteristics and timings etc.

The "dummy" (or "demo") driver should then be able to provide any
configurable number of channels, configurable samplerates, etc. so that
the Python scripts can generate the various demo sample streams.

That's for later though, for now I think a simple C code implementation
of an I2C or SPI stream or similar in the dummy.c file should be fine. We'll
generalize that later, when the Python integration is more usable
(that's being heavily worked on right now, there's no real stable API
or anything yet).


Cheers, Uwe.
-- 
http://www.hermann-uwe.de  | http://www.randomprojects.org
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to