|
req = self._http_request(sv_reqests[self.channel]+str(voltage)) |
Here, the desired voltage is sent to the device. To do this, the floating point number is converted into a string.
This works fine for large enough numbers. They will be formatted into something like 0.0000123.
If the number becomes sufficiently small though, it will be converted into scientific notation: 3.12...e-12
It looks like the ControlByWeb device does not parse the e-12 and sets a voltage of 3.12... Volts, which causes excessive heating.
A potential fix would set a fixed format of the number, forbidding scientific notation.
Otherwise, P should not be lower than 1e-5
tip/devices/ControlByWeb_X-317.py
Line 71 in e3f69e3
Here, the desired voltage is sent to the device. To do this, the floating point number is converted into a string.
This works fine for large enough numbers. They will be formatted into something like
0.0000123.If the number becomes sufficiently small though, it will be converted into scientific notation:
3.12...e-12It looks like the ControlByWeb device does not parse the
e-12and sets a voltage of3.12...Volts, which causes excessive heating.A potential fix would set a fixed format of the number, forbidding scientific notation.
Otherwise, P should not be lower than 1e-5