mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
filter and cds gain, burst and continuous value to asic changed, bug fix to scanning function addresses in server_funcs.c
This commit is contained in:
@ -283,7 +283,7 @@
|
||||
WrongNumberOfParameters(0); \
|
||||
} \
|
||||
auto t = det->GETFCN(DAC_INDEX, mv, {det_id}); \
|
||||
os << OutString(t) << (!args.empty() ? " mv\n" : "\n"); \
|
||||
os << OutString(t) << (!args.empty() ? " mv\n" : "\n"); \
|
||||
} else if (action == slsDetectorDefs::PUT_ACTION) { \
|
||||
bool mv = false; \
|
||||
if (args.size() == 2) { \
|
||||
@ -835,6 +835,8 @@ class CmdProxy {
|
||||
{"vetophoton", &CmdProxy::VetoPhoton},
|
||||
{"vetoref", &CmdProxy::VetoReference},
|
||||
{"burstmode", &CmdProxy::BurstMode},
|
||||
{"cdsgain", &CmdProxy::cdsgain},
|
||||
{"filter", &CmdProxy::filter},
|
||||
{"currentsource", &CmdProxy::currentsource},
|
||||
{"timingsource", &CmdProxy::timingsource},
|
||||
{"veto", &CmdProxy::veto},
|
||||
@ -1119,10 +1121,6 @@ class CmdProxy {
|
||||
"ns|us|ms|s]\n\t[Jungfrau][Gotthard][Mythen3][Gotthard2][Ctb]["
|
||||
"Moench] Delay after trigger");
|
||||
|
||||
TIME_COMMAND(burstperiod, getBurstPeriod, setBurstPeriod,
|
||||
"[duration] [(optional unit) ns|us|ms|s]\n\t[Gotthard2] Burst "
|
||||
"period. Only in burst mode and auto timing mode.");
|
||||
|
||||
GET_COMMAND(framesl, getNumberOfFramesLeft,
|
||||
"\n\t[Gotthard][Jungfrau][Mythen3][Gotthard2][CTB][Moench] "
|
||||
"Number of frames left in acquisition."
|
||||
@ -1906,6 +1904,18 @@ class CmdProxy {
|
||||
"timing mode and burst mode. Use timing command to set timing mode and "
|
||||
"burstmode command to set burst mode.");
|
||||
|
||||
TIME_COMMAND(burstperiod, getBurstPeriod, setBurstPeriod,
|
||||
"[duration] [(optional unit) ns|us|ms|s]\n\t[Gotthard2] Burst "
|
||||
"period. Only in burst mode and auto timing mode.");
|
||||
|
||||
INTEGER_COMMAND(cdsgain, getCDSGain, setCDSGain, StringTo<bool>,
|
||||
"[0, 1]\n\t[Gotthard2] Enable or disable CDS gain. Default "
|
||||
"is disabled.");
|
||||
|
||||
INTEGER_COMMAND(
|
||||
filter, getFilter, setFilter, StringTo<int>,
|
||||
"[0|1|2|3]\n\t[Gotthard2] Set filter resistor. Default is 0.");
|
||||
|
||||
INTEGER_COMMAND(currentsource, getCurrentSource, setCurrentSource,
|
||||
StringTo<int>,
|
||||
"[0, 1]\n\t[Gotthard2] Enable or disable current source. "
|
||||
|
@ -1305,6 +1305,22 @@ void Detector::setBurstMode(defs::burstMode value, Positions pos) {
|
||||
pimpl->Parallel(&Module::setBurstMode, pos, value);
|
||||
}
|
||||
|
||||
Result<bool> Detector::getCDSGain(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getCDSGain, pos);
|
||||
}
|
||||
|
||||
void Detector::setCDSGain(bool value, Positions pos) {
|
||||
pimpl->Parallel(&Module::setCDSGain, pos, value);
|
||||
}
|
||||
|
||||
Result<int> Detector::getFilter(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getFilter, pos);
|
||||
}
|
||||
|
||||
void Detector::setFilter(int value, Positions pos) {
|
||||
pimpl->Parallel(&Module::setFilter, pos, value);
|
||||
}
|
||||
|
||||
Result<bool> Detector::getCurrentSource(Positions pos) const {
|
||||
return pimpl->Parallel(&Module::getCurrentSource, pos);
|
||||
}
|
||||
|
@ -1534,6 +1534,18 @@ void Module::setBurstMode(slsDetectorDefs::burstMode value) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Module::getCDSGain() { return sendToDetector<int>(F_GET_CDS_GAIN); }
|
||||
|
||||
void Module::setCDSGain(bool value) {
|
||||
sendToDetector(F_SET_CDS_GAIN, static_cast<int>(value), nullptr);
|
||||
}
|
||||
|
||||
int Module::getFilter() { return sendToDetector<int>(F_GET_FILTER); }
|
||||
|
||||
void Module::setFilter(int value) {
|
||||
sendToDetector(F_SET_FILTER, value, nullptr);
|
||||
}
|
||||
|
||||
bool Module::getCurrentSource() {
|
||||
return sendToDetector<int>(F_GET_CURRENT_SOURCE);
|
||||
}
|
||||
|
@ -375,6 +375,10 @@ class Module : public virtual slsDetectorDefs {
|
||||
void setVetoReference(const int gainIndex, const int value);
|
||||
burstMode getBurstMode();
|
||||
void setBurstMode(burstMode value);
|
||||
bool getCDSGain();
|
||||
void setCDSGain(bool value);
|
||||
int getFilter();
|
||||
void setFilter(int value);
|
||||
bool getCurrentSource();
|
||||
void setCurrentSource(bool value);
|
||||
slsDetectorDefs::timingSourceType getTimingSource();
|
||||
|
Reference in New Issue
Block a user