Skip to content

Return value of u3.voltageToDACBits() #11

@teletoby

Description

@teletoby

If I use u3.voltageToDACBits() on my U3-HVs with 0.0 volts as argument I get slightly negative values due to some calibration errors. When I afterwards feed the bits value to the getFeedback function, the U3-HV set the corresponding DAC output to a value close to maximal voltage, which I understand but which also is a bit counter-intuitive. Wouldn't it be a better idea to cap the output value of the function voltageToDACBits to 0x0000 if the result of the conversion is smaller than 0 or to 0xFFFF if the results value is larger?

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