def cbToEngUnits(board, gain, value): global _usbhandler device = _get_device(board) pmdgain = gain_str2pmd[gain] if gain.startswith("BIP"): # differential result = PMD.volts_FS(pmdgain, value) else: result = PMD.volts_SE(value) return result
def cbToEngUnits(board, gain, value): global _usbhandler device = _get_device(board) pmdgain = gain_str2pmd[gain] if gain.startswith('BIP'): # differential result = PMD.volts_FS(pmdgain, value) else: result = PMD.volts_SE(value) return result