On Fri, Aug 19, 2016 at 03:36:18PM +0000, Mike Meyer wrote:
> I'm a bit confused by the two formatting options for analog ouput - at
> least as implemented by the analog output module.
> 
> The setting is for "digits", and all that's documented are it's values,
> "all" or "spec", without saying what they mean.  While all presumably means
> all relevant digits, it's not clear what "spec" is short for.

Spec is basically what is specified by the vendor (datasheet).
With some hardware, we get more effective digits thru the protocol, than
what the vendor specifies in the datasheet.

See here a patch with a proposed documentation:
https://github.com/aurelj/libsigrok/commit/d707df

> Second, the defaults as set by src/analog:sr_analog_init sets the two
> values both to 0 and the flag indicating they should be used to TRUE,
> resulting in the same default behavior of displaying no digits for them
> both. Most of the hardware devices leave things at this default, which
> seems pretty useless, the exception being agilent-dmm, and hameg-hmo which
> sets encoding->digits to 0 explicitly.

All the drivers were recently converted to this new analog format which
include these new "digits" fields. As this information was not present
in the drivers, they were all set to 0 during the mass conversion.

I've just submitted a patch serie that set correct "digits" value for a
whole bunch of drivers (but still not all of them):
https://github.com/aurelj/libsigrok/commits/analog2

If you care about a driver that is not fixed in my patch serie, feel
free to fix it yourself, and if it is already fixed, it would be nice if
you could test it with your hadware.

Aurel

------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to