Solutions for implementation challenges
This is a list of less common challenges, their solutions, and example instruments.
Small numbers (<1e-5) are shown as 0 with
%f. If an instrument understands exponential notation, you can use
%g, which switches between floating point and exponential format, depending on the exponent.
Communication protocol issues
The instrument answers every message, even a setting command. You can set the setting’s
check_set_errors = Trueparameter and redefine
check_set_errors()to read an answer, see
Binary, frame-based communication, see
All replies have the same length, see
The device generates garbage messages at startup, cluttering the buffer, see
An instrument and its channel need to override values, but it has to use the correct ask method as well, see