Skip to content

LCC25 controller voltage precision mismatch with instrument specifications #450

@Gregocact

Description

@Gregocact

Hello everyone,

The LCC25 controller supports voltage tuning down to 1 mV, but the current code uses format_code="{:.1f}" for voltage-related properties. This means when you set a voltage like 1.234 V, the instrument actually gets 1.2 V due to the formatting, which loses precision.
I changed the format_code to {:.3f} in my local copy, and it works as expected with the instrument receiving and displaying the full precision it supports. It’s a pretty small change, but it made some issues in an experiment we were performing.
I can open a PR with the fix if that’s helpful. Just let me know!

Cheers and thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions