Am 28.01.2022 um 17:13 schrieb Uli Huber:

Hi,

I wonder if/how I could pre-assign channels in a decoder to avoid
setting them after selecting the decoder.

While I found this i.e. implemented in the „Parallel“ decoder, I was
unable to transform this to non-sequential channels.

I think you can set the channel names to the optional_chanels tuple of
te decoder. I often use the "uart" decoder with the optional_channels
'rx' and 'tx'. The decoder automatically uses the channels with these names.

Reading the optional_channels of the "parallel" decoder shows the
optional_channel 'clk', 'd0', ..., 'd15','rst'. You can try to name your
channels in that way (case-insensitive).

Corresponding to decoder howto
<https://sigrok.org/wiki/Protocol_decoder_HOWTO#channels_.26_optional_channels>
there could also be a channels property in the decoder. But I didn't
found it neither for "uart" nor "parallel" decoder.

Best regards,
Helge



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

Reply via email to