This commit is contained in:
2022-11-08 10:25:12 +01:00
parent 16e9b272c7
commit 4a95ee8362
6 changed files with 68 additions and 60 deletions

View File

@ -2562,8 +2562,9 @@ std::string CmdProxy::AdcVpp(int action) {
if (action == defs::HELP_ACTION) {
os << "[dac or mV value][(optional unit) mV] \n\t[Ctb][Moench] Vpp of "
"ADC.\n\t 0 -> 1V ; 1 -> 1.14V ; 2 -> 1.33V ; 3 -> 1.6V ; 4 -> 2V. "
"\n\tAdvanced User function!\n"
"ADC.\n\t 0 -> 1V ; 1 -> 1.14V ; 2 -> 1.33V ; 3 -> 1.6V ; 4 -> "
"2V. "
"\n\tAdvanced User function!\n"
<< '\n';
return os.str();
}
@ -2593,8 +2594,7 @@ std::string CmdProxy::AdcVpp(int action) {
} else if (args.size() > 2 || args.size() < 1) {
WrongNumberOfParameters(1);
}
det->setADCVpp(StringTo<int>(args[0]), mV,
std::vector<int>{det_id});
det->setADCVpp(StringTo<int>(args[0]), mV, std::vector<int>{det_id});
os << args[0] << (mV ? " mV\n" : "\n");
} else {
throw RuntimeError("Unknown action");