While working on the DSO112A back end (whichI'd still appreciate feedback on), I noticed that I couldn't use any of those nifty decoders on it. I was looking at a signal, and knew it was PWM. So I decided to apply the PWM decoder to it and see ... well, nothing, because the PWM decoder won't work on it, because it's analog.
Looking through the decoders, none of them seem to work on analog values. Based on the source there's no way to get analog inputs to a decoder, so this isn't a surprise. Or at least not as surprising as there being no way to get them to a decoder. I can think of at least three useful functions that decoders could provide. Minimally, take an analog value and transform it into a logic value. This is liable to be easier than changing devices or inputs or reconfiguring the input to be logic so you can apply a logic decoder. Especially if you don't have any kind of logic analyzer. Frequency, providing the period and frequency of each cycle in the data. Probably available from the 'scope, but there doesn't seem to be an easy way to get it in sigrok. Waveform characteristics, providing min, max, avg, peak-to-peak and rms values for each cycle. Same comment as above. So did I miss something, and there are ways to do these things? If not, anyone have either objections or interest in such being added to the decoders library7
------------------------------------------------------------------------------
_______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

