Hello,

> I'm doing a first attempt at writing a decoder to capture reads from an
> EPROM and need to decode address and data. This will be quite a few pins.
> Is it possible to suggest default locations/names for each pin? When I run
> the hantek 4032 logic analyzer, the pins are labelled A0 - A15 and B0 -
> B15. It would be good to be able to have default values within the decoder
> so I don't have to enter this each time I start a new session in PulseView.
> Or, is this possible to configure within PulseView in any way?

You could configure the protocol decoder once and save the session
configuration to a file. That way, you can restore those settins whenever
you need.

https://sigrok.org/doc/pulseview/unstable/manual.html#_other_features


> I'm starting from the 'parallel' decoder. When I select that with data from
> the Hantek, no pin is preselected (they are all '-'). On the other hand,
> when I import raw binary data where pins are labelled 0 - 31,  D0 - D7 are
> assigned to 0 - 7. Is this by chance only or can it be controlled?

PulseView tries to guess the assignment based on the signal names. A0 will
never match with D0 whereas 0 does as the string "0" is a subset of "D0".


> When building a decoder, it would be great to be able to run it in a debug
> mode. Is this possible in any way? I have only PulseView installed now, but
> could install sigrok-cli also if that would simplify things - any
> suggestions appreciated!

You can certainly use sigrok-cli to develop PDs and I know that some people
do just that. It's probably most useful to cut specific parts from your
acquired data and save them to .sr files that you can feed through sigrok-
cli.

Alternatively, you can use print() statements in your PD which then will
show up in the log output within PV (and on the console if you're on
Linux/OSX).


> Looking at the wiki Protocol decoder API/Queries, there are several
> references to the API v2, but where can documentation about that be found?

I'm assuming you mean the "works as in v2" remarks. Those refer to 
https://sigrok.org/wiki/Protocol_decoder_API which documents those parts.
Thanks for the hint, I'll make it clearer.

Regards,
 -Soeren



> 
> Regards,
>   Staffan
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel



_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to