Files
python3-damaris/src/damaris/experiments/dac.py
T
markusro 6abb338c4a
Build Debian Packages / build (bookworm, debian12) (push) Successful in 13m3s
Build Debian Packages / build (trixie, debian13) (push) Successful in 13m46s
Build Debian Packages / build (bullseye, debian11) (push) Has been cancelled
move to a more standard python packaging structure
2026-04-07 17:09:10 +02:00

13 lines
258 B
Python

#import math
"""
This module holds everything connected with the DAC and PFG
"""
def conv(I_out=0):
"""
converts the demanded Output current in Integer
"""
V_dac=I_out/50.0
dac_value=-(V_dac-0.00983)/1.81413e-5
return int(dac_value)