|
|
|
@ -414,7 +414,7 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*! \page config
|
|
|
|
|
- <b>flags [flag]</b> sets/gets the readout flags to mode. Options: none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, unknown. Used for MYTHEN and EIGER only. \c Returns \c (string). put takes one string and \c returns concatenation of all active flags separated by spaces.
|
|
|
|
|
- <b>flags [flag]</b> sets/gets the readout flags to mode. Options: none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, overflow, nooverflow, unknown. Used for MYTHEN and EIGER only. \c Returns \c (string). put takes one string and \c returns concatenation of all active flags separated by spaces.
|
|
|
|
|
*/
|
|
|
|
|
descrToFuncMap[i].m_pFuncName="flags";
|
|
|
|
|
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdAdvanced;
|
|
|
|
@ -6016,6 +6016,10 @@ string slsDetectorCommand::cmdAdvanced(int narg, char *args[], int action) {
|
|
|
|
|
flag=DIGITAL_ONLY;
|
|
|
|
|
else if (sval=="analog_digital")
|
|
|
|
|
flag=ANALOG_AND_DIGITAL;
|
|
|
|
|
else if (sval=="overflow")
|
|
|
|
|
flag=SHOW_OVERFLOW;
|
|
|
|
|
else if (sval=="nooverflow")
|
|
|
|
|
flag=NOOVERFLOW;
|
|
|
|
|
else
|
|
|
|
|
return string("could not scan flag ")+string(args[1]);
|
|
|
|
|
}
|
|
|
|
@ -6044,6 +6048,10 @@ string slsDetectorCommand::cmdAdvanced(int narg, char *args[], int action) {
|
|
|
|
|
strcat(answer,"digital " );
|
|
|
|
|
if (retval & ANALOG_AND_DIGITAL)
|
|
|
|
|
strcat(answer,"analog_digital ");
|
|
|
|
|
if (retval & SHOW_OVERFLOW)
|
|
|
|
|
strcat(answer,"overflow ");
|
|
|
|
|
if (retval & NOOVERFLOW)
|
|
|
|
|
strcat(answer,"nooverflow ");
|
|
|
|
|
if(strlen(answer))
|
|
|
|
|
return string(answer);
|
|
|
|
|
|
|
|
|
@ -6148,7 +6156,7 @@ string slsDetectorCommand::helpAdvanced(int narg, char *args[], int action) {
|
|
|
|
|
if (action==PUT_ACTION || action==HELP_ACTION) {
|
|
|
|
|
|
|
|
|
|
os << "extsig:i mode \t sets the mode of the external signal i. can be \n \t \t \t off, \n \t \t \t gate_in_active_high, \n \t \t \t gate_in_active_low, \n \t \t \t trigger_in_rising_edge, \n \t \t \t trigger_in_falling_edge, \n \t \t \t ro_trigger_in_rising_edge, \n \t \t \t ro_trigger_in_falling_edge, \n \t \t \t gate_out_active_high, \n \t \t \t gate_out_active_low, \n \t \t \t trigger_out_rising_edge, \n \t \t \t trigger_out_falling_edge, \n \t \t \t ro_trigger_out_rising_edge, \n \t \t \t ro_trigger_out_falling_edge" << std::endl;
|
|
|
|
|
os << "flags mode \t sets the readout flags to mode. can be none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, unknown" << std::endl;
|
|
|
|
|
os << "flags mode \t sets the readout flags to mode. can be none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, overlow, nooverflow, unknown." << std::endl;
|
|
|
|
|
|
|
|
|
|
os << "programfpga f \t programs the fpga with file f (with .pof extension)." << std::endl;
|
|
|
|
|
os << "resetfpga f \t resets fpga, f can be any value" << std::endl;
|
|
|
|
@ -6161,9 +6169,8 @@ string slsDetectorCommand::helpAdvanced(int narg, char *args[], int action) {
|
|
|
|
|
|
|
|
|
|
os << "extsig:i \t gets the mode of the external signal i. can be \n \t \t \t off, \n \t \t \t gate_in_active_high, \n \t \t \t gate_in_active_low, \n \t \t \t trigger_in_rising_edge, \n \t \t \t trigger_in_falling_edge, \n \t \t \t ro_trigger_in_rising_edge, \n \t \t \t ro_trigger_in_falling_edge, \n \t \t \t gate_out_active_high, \n \t \t \t gate_out_active_low, \n \t \t \t trigger_out_rising_edge, \n \t \t \t trigger_out_falling_edge, \n \t \t \t ro_trigger_out_rising_edge, \n \t \t \t ro_trigger_out_falling_edge" << std::endl;
|
|
|
|
|
|
|
|
|
|
os << "flags \t gets the readout flags. can be none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, unknown" << std::endl;
|
|
|
|
|
os << "flags \t gets the readout flags. can be none, storeinram, tot, continous, parallel, nonparallel, safe, digital, analog_digital, overflow, nooverflow, unknown" << std::endl;
|
|
|
|
|
os << "led \t returns led status (0 off, 1 on)" << std::endl;
|
|
|
|
|
os << "flags \t gets the readout flags. can be none, storeinram, tot, continous, parallel, nonparallel, safe, unknown" << std::endl;
|
|
|
|
|
os << "powerchip \t gets if the chip has been powered on or off" << std::endl;
|
|
|
|
|
os << "auto_comp_disable \t Currently not implemented. gets if the automatic comparator diable mode is enabled/disabled" << std::endl;
|
|
|
|
|
|
|
|
|
|