ctb bug fix: slow adcs incorrect mv read out, needed clk down and usleep before reading

This commit is contained in:
2020-02-27 09:16:22 +01:00
parent 90acd51389
commit 8c8032dc69
6 changed files with 21 additions and 14 deletions

View File

@ -1400,7 +1400,7 @@ std::string CmdProxy::SlowAdc(int action) {
os << cmd << ' ';
if (action == defs::HELP_ACTION) {
os << "[n_channel (0-7 for channel|8 for temperature)]\n\t[Ctb] Slow "
"ADC channel."
"ADC channel in mV or °C."
<< '\n';
} else if (action == defs::GET_ACTION) {
if (args.size() != 1) {
@ -1416,7 +1416,7 @@ std::string CmdProxy::SlowAdc(int action) {
} else {
auto t = det->getSlowADC(
static_cast<defs::dacIndex>(nchan + defs::SLOW_ADC0), {det_id});
os << OutString(t) << '\n';
os << OutString(t) << " mV\n";
}
} else if (action == defs::PUT_ACTION) {
throw sls::RuntimeError("cannot put");