updated commands generation

This commit is contained in:
maliakal_d 2024-01-11 18:03:34 +01:00
parent daec0dc389
commit b69e053bb4
2 changed files with 49 additions and 48 deletions

View File

@ -2703,8 +2703,8 @@ dr:
function_alias: dr function_alias: dr
help: "[value]\n\tDynamic Range or number of bits per pixel in detector.\n\t[Eiger]\ help: "[value]\n\tDynamic Range or number of bits per pixel in detector.\n\t[Eiger]\
\ Options: 4, 8, 12, 16, 32. If set to 32, also sets clkdivider to 2, else to\ \ Options: 4, 8, 12, 16, 32. If set to 32, also sets clkdivider to 2, else to\
\ 0.\n\t[Mythen3] Options: 8, 16, 32\n\t[Jungfrau][Moench][Gotthard][Ctb][Mythen3][Gotthard2]\ \ 0.\n\t[Mythen3] Options: 8, 16, 32\n\t[Jungfrau][Moench][Gotthard][Ctb][Mythen3][Gotthard2][Xilinx\
\ 16" \ Ctb] 16"
infer_action: true infer_action: true
template: true template: true
drlist: drlist:
@ -3970,8 +3970,8 @@ framesl:
store_result_in_t: true store_result_in_t: true
command_name: framesl command_name: framesl
function_alias: framesl function_alias: framesl
help: "\n\t[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb] Number of frames\ help: "\n\t[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb][Xilinx Ctb] Number\
\ left in acquisition. \n\t[Gotthard2] only in continuous auto mode." \ of frames left in acquisition. \n\t[Gotthard2] only in continuous auto mode."
infer_action: true infer_action: true
template: true template: true
frametime: frametime:
@ -4703,8 +4703,8 @@ hardwareversion:
store_result_in_t: true store_result_in_t: true
command_name: hardwareversion command_name: hardwareversion
function_alias: hardwareversion function_alias: hardwareversion
help: "\n\t[Jungfrau][Gotthard2][Myhten3][Gotthard][Ctb][Moench] Hardware version\ help: "\n\tHardware version of detector. \n\t[Eiger] Hardware version of front FPGA\
\ of detector. \n\t[Eiger] Hardware version of front FPGA on detector." \ on detector."
infer_action: true infer_action: true
template: true template: true
highvoltage: highvoltage:
@ -5730,9 +5730,9 @@ patfname:
store_result_in_t: true store_result_in_t: true
command_name: patfname command_name: patfname
function_alias: patfname function_alias: patfname
help: "\n\t[Ctb][Mythen3] Gets the pattern file name including path of the last\ help: "\n\t[Ctb][Mythen3][Xilinx Ctb] Gets the pattern file name including path\
\ pattern uploaded. Returns an empty if nothing was uploaded or via a server default\ \ of the last pattern uploaded. Returns an empty if nothing was uploaded or via\
\ file" \ a server default file"
infer_action: true infer_action: true
template: true template: true
patioctrl: patioctrl:
@ -5826,7 +5826,8 @@ patlimits:
store_result_in_t: false store_result_in_t: false
command_name: patlimits command_name: patlimits
function_alias: patlimits function_alias: patlimits
help: "[start addr] [stop addr] \n\t[Ctb][Mythen3] Limits of complete pattern" help: "[start addr] [stop addr] \n\t[Ctb][Mythen3][Xilinx Ctb] Limits of complete\
\ pattern"
infer_action: true infer_action: true
patloop: patloop:
actions: actions:
@ -5899,8 +5900,8 @@ patloop:
store_result_in_t: false store_result_in_t: false
command_name: patloop command_name: patloop
function_alias: patloop function_alias: patloop
help: "[0-6] [start addr] [stop addr] \n\t[Ctb][Mythen3] Limits of the loop level\ help: "[0-6] [start addr] [stop addr] \n\t[Ctb][Mythen3][Xilinx Ctb] Limits of the\
\ provided.\n\t[Mythen3] Level options: 0-3 only." \ loop level provided.\n\t[Mythen3] Level options: 0-3 only."
infer_action: true infer_action: true
patloop0: patloop0:
actions: actions:
@ -6145,8 +6146,8 @@ patmask:
store_result_in_t: false store_result_in_t: false
command_name: patmask command_name: patmask
function_alias: patmask function_alias: patmask
help: "[64 bit mask]\n\t[Ctb][Mythen3] Selects the bits that will have a pattern\ help: "[64 bit mask]\n\t[Ctb][Mythen3][Xilinx Ctb] Selects the bits that will have\
\ mask applied to the selected patmask for every pattern." \ a pattern mask applied to the selected patmask for every pattern."
infer_action: true infer_action: true
template: true template: true
patnloop: patnloop:
@ -6209,8 +6210,8 @@ patnloop:
store_result_in_t: false store_result_in_t: false
command_name: patnloop command_name: patnloop
function_alias: patnloop function_alias: patnloop
help: "[0-6] [n_cycles] \n\t[Ctb][Mythen3] Number of cycles of the loop level provided.\n\ help: "[0-6] [n_cycles] \n\t[Ctb][Mythen3][Xilinx Ctb] Number of cycles of the loop\
\t[Mythen3] Level options: 0-3 only." \ level provided.\n\t[Mythen3] Level options: 0-3 only."
infer_action: true infer_action: true
patnloop0: patnloop0:
actions: actions:
@ -6422,8 +6423,8 @@ patsetbit:
store_result_in_t: false store_result_in_t: false
command_name: patsetbit command_name: patsetbit
function_alias: patsetbit function_alias: patsetbit
help: "[64 bit mask]\n\t[Ctb][Mythen3] Sets the mask applied to every pattern to\ help: "[64 bit mask]\n\t[Ctb][Mythen3][Xilinx Ctb] Sets the mask applied to every\
\ the selected bits." \ pattern to the selected bits."
infer_action: true infer_action: true
template: true template: true
patternX: patternX:
@ -6448,8 +6449,8 @@ patternX:
store_result_in_t: false store_result_in_t: false
command_name: pattern command_name: pattern
function_alias: pattern function_alias: pattern
help: "[fname]\n\t[Mythen3][Ctb] Loads ASCII pattern file directly to server (instead\ help: "[fname]\n\t[Mythen3][Ctb][Xilinx Ctb] Loads ASCII pattern file directly to\
\ of executing line by line)" \ server (instead of executing line by line)"
infer_action: true infer_action: true
patternstart: patternstart:
actions: actions:
@ -6532,8 +6533,8 @@ patwait:
store_result_in_t: false store_result_in_t: false
command_name: patwait command_name: patwait
function_alias: patwait function_alias: patwait
help: "[0-6] [addr] \n\t[Ctb][Mythen3] Wait address for loop level provided. \n\t\ help: "[0-6] [addr] \n\t[Ctb][Mythen3][Xilinx Ctb] Wait address for loop level provided.\
[Mythen3] Level options: 0-3 only." \ \n\t[Mythen3] Level options: 0-3 only."
infer_action: true infer_action: true
patwait0: patwait0:
actions: actions:
@ -6769,8 +6770,8 @@ patwaittime:
store_result_in_t: false store_result_in_t: false
command_name: patwaittime command_name: patwaittime
function_alias: patwaittime function_alias: patwaittime
help: "[0-6] [n_clk] \n\t[Ctb][Mythen3] Wait time in clock cycles for the loop provided.\n\ help: "[0-6] [n_clk] \n\t[Ctb][Mythen3][Xilinx Ctb] Wait time in clock cycles for\
\t[Mythen3] Level options: 0-3 only." \ the loop provided.\n\t[Mythen3] Level options: 0-3 only."
infer_action: true infer_action: true
patwaittime0: patwaittime0:
actions: actions:
@ -6998,8 +6999,8 @@ patword:
store_result_in_t: false store_result_in_t: false
command_name: patword command_name: patword
function_alias: patword function_alias: patword
help: "[step or address] [64 bit mask]\n\t[Ctb][Mythen3] 64 bit pattern at address\ help: "[step or address] [64 bit mask]\n\t[Ctb][Mythen3][Xilinx Ctb] 64 bit pattern\
\ of pattern memory.\n\t[Ctb] read is same as executing pattern" \ at address of pattern memory.\n\t[Ctb] read is same as executing pattern"
infer_action: true infer_action: true
pedestalmode: pedestalmode:
actions: actions:
@ -9438,8 +9439,8 @@ savepattern:
store_result_in_t: false store_result_in_t: false
command_name: savepattern command_name: savepattern
function_alias: savepattern function_alias: savepattern
help: "\n\t[Ctb][Mythen3] Saves pattern to file (ascii). \n\t[Ctb] Also executes\ help: "\n\t[Ctb][Mythen3][Xilinx Ctb] Saves pattern to file (ascii). \n\t[Ctb] Also\
\ pattern." \ executes pattern."
infer_action: true infer_action: true
template: true template: true
scan: scan:
@ -11229,8 +11230,8 @@ timing:
store_result_in_t: false store_result_in_t: false
command_name: timing command_name: timing
function_alias: timing function_alias: timing
help: "[auto|trigger|gating|burst_trigger]\n\tTiming Mode of detector.\n\t[Jungfrau][Moench][Gotthard][Ctb][Gotthard2]\ help: "[auto|trigger|gating|burst_trigger]\n\tTiming Mode of detector.\n\t[Jungfrau][Moench][Gotthard][Ctb][Gotthard2][Xilinx\
\ [auto|trigger]\n\t[Mythen3] [auto|trigger|gating|trigger_gating]\n\t[Eiger]\ \ Ctb] [auto|trigger]\n\t[Mythen3] [auto|trigger|gating|trigger_gating]\n\t[Eiger]\
\ [auto|trigger|gating|burst_trigger]" \ [auto|trigger|gating|burst_trigger]"
infer_action: true infer_action: true
template: true template: true
@ -11459,8 +11460,8 @@ triggersl:
store_result_in_t: true store_result_in_t: true
command_name: triggersl command_name: triggersl
function_alias: triggersl function_alias: triggersl
help: "\n\t[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb] Number of triggers\ help: "\n\t[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb][Xilinx Ctb] Number\
\ left in acquisition. Only when external trigger used." \ of triggers left in acquisition. Only when external trigger used."
infer_action: true infer_action: true
template: true template: true
trimbits: trimbits:

View File

@ -3516,7 +3516,7 @@ std::string Caller::dr(int action) {
Dynamic Range or number of bits per pixel in detector. Dynamic Range or number of bits per pixel in detector.
[Eiger] Options: 4, 8, 12, 16, 32. If set to 32, also sets clkdivider to 2, else to 0. [Eiger] Options: 4, 8, 12, 16, 32. If set to 32, also sets clkdivider to 2, else to 0.
[Mythen3] Options: 8, 16, 32 [Mythen3] Options: 8, 16, 32
[Jungfrau][Moench][Gotthard][Ctb][Mythen3][Gotthard2] 16 )V0G0N" [Jungfrau][Moench][Gotthard][Ctb][Mythen3][Gotthard2][Xilinx Ctb] 16 )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -5242,7 +5242,7 @@ std::string Caller::framesl(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: framesl" << std::endl; os << "Command: framesl" << std::endl;
os << R"V0G0N( os << R"V0G0N(
[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb] Number of frames left in acquisition. [Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb][Xilinx Ctb] Number of frames left in acquisition.
[Gotthard2] only in continuous auto mode. )V0G0N" [Gotthard2] only in continuous auto mode. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -6039,7 +6039,7 @@ std::string Caller::hardwareversion(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: hardwareversion" << std::endl; os << "Command: hardwareversion" << std::endl;
os << R"V0G0N( os << R"V0G0N(
[Jungfrau][Gotthard2][Myhten3][Gotthard][Ctb][Moench] Hardware version of detector. Hardware version of detector.
[Eiger] Hardware version of front FPGA on detector. )V0G0N" [Eiger] Hardware version of front FPGA on detector. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -7668,7 +7668,7 @@ std::string Caller::patfname(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patfname" << std::endl; os << "Command: patfname" << std::endl;
os << R"V0G0N( os << R"V0G0N(
[Ctb][Mythen3] Gets the pattern file name including path of the last pattern uploaded. Returns an empty if nothing was uploaded or via a server default file )V0G0N" [Ctb][Mythen3][Xilinx Ctb] Gets the pattern file name including path of the last pattern uploaded. Returns an empty if nothing was uploaded or via a server default file )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -7771,7 +7771,7 @@ std::string Caller::patlimits(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patlimits" << std::endl; os << "Command: patlimits" << std::endl;
os << R"V0G0N([start addr] [stop addr] os << R"V0G0N([start addr] [stop addr]
[Ctb][Mythen3] Limits of complete pattern )V0G0N" [Ctb][Mythen3][Xilinx Ctb] Limits of complete pattern )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -7824,7 +7824,7 @@ std::string Caller::patloop(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patloop" << std::endl; os << "Command: patloop" << std::endl;
os << R"V0G0N([0-6] [start addr] [stop addr] os << R"V0G0N([0-6] [start addr] [stop addr]
[Ctb][Mythen3] Limits of the loop level provided. [Ctb][Mythen3][Xilinx Ctb] Limits of the loop level provided.
[Mythen3] Level options: 0-3 only. )V0G0N" [Mythen3] Level options: 0-3 only. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -8047,7 +8047,7 @@ std::string Caller::patmask(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patmask" << std::endl; os << "Command: patmask" << std::endl;
os << R"V0G0N([64 bit mask] os << R"V0G0N([64 bit mask]
[Ctb][Mythen3] Selects the bits that will have a pattern mask applied to the selected patmask for every pattern. )V0G0N" [Ctb][Mythen3][Xilinx Ctb] Selects the bits that will have a pattern mask applied to the selected patmask for every pattern. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -8110,7 +8110,7 @@ std::string Caller::patnloop(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patnloop" << std::endl; os << "Command: patnloop" << std::endl;
os << R"V0G0N([0-6] [n_cycles] os << R"V0G0N([0-6] [n_cycles]
[Ctb][Mythen3] Number of cycles of the loop level provided. [Ctb][Mythen3][Xilinx Ctb] Number of cycles of the loop level provided.
[Mythen3] Level options: 0-3 only. )V0G0N" [Mythen3] Level options: 0-3 only. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -8325,7 +8325,7 @@ std::string Caller::patsetbit(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patsetbit" << std::endl; os << "Command: patsetbit" << std::endl;
os << R"V0G0N([64 bit mask] os << R"V0G0N([64 bit mask]
[Ctb][Mythen3] Sets the mask applied to every pattern to the selected bits. )V0G0N" [Ctb][Mythen3][Xilinx Ctb] Sets the mask applied to every pattern to the selected bits. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -8388,7 +8388,7 @@ std::string Caller::pattern(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patternX" << std::endl; os << "Command: patternX" << std::endl;
os << R"V0G0N([fname] os << R"V0G0N([fname]
[Mythen3][Ctb] Loads ASCII pattern file directly to server (instead of executing line by line) )V0G0N" [Mythen3][Ctb][Xilinx Ctb] Loads ASCII pattern file directly to server (instead of executing line by line) )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }
@ -8468,7 +8468,7 @@ std::string Caller::patwait(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patwait" << std::endl; os << "Command: patwait" << std::endl;
os << R"V0G0N([0-6] [addr] os << R"V0G0N([0-6] [addr]
[Ctb][Mythen3] Wait address for loop level provided. [Ctb][Mythen3][Xilinx Ctb] Wait address for loop level provided.
[Mythen3] Level options: 0-3 only. )V0G0N" [Mythen3] Level options: 0-3 only. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -8679,7 +8679,7 @@ std::string Caller::patwaittime(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patwaittime" << std::endl; os << "Command: patwaittime" << std::endl;
os << R"V0G0N([0-6] [n_clk] os << R"V0G0N([0-6] [n_clk]
[Ctb][Mythen3] Wait time in clock cycles for the loop provided. [Ctb][Mythen3][Xilinx Ctb] Wait time in clock cycles for the loop provided.
[Mythen3] Level options: 0-3 only. )V0G0N" [Mythen3] Level options: 0-3 only. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -8893,7 +8893,7 @@ std::string Caller::patword(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: patword" << std::endl; os << "Command: patword" << std::endl;
os << R"V0G0N([step or address] [64 bit mask] os << R"V0G0N([step or address] [64 bit mask]
[Ctb][Mythen3] 64 bit pattern at address of pattern memory. [Ctb][Mythen3][Xilinx Ctb] 64 bit pattern at address of pattern memory.
[Ctb] read is same as executing pattern )V0G0N" [Ctb] read is same as executing pattern )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -12328,7 +12328,7 @@ std::string Caller::savepattern(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: savepattern" << std::endl; os << "Command: savepattern" << std::endl;
os << R"V0G0N( os << R"V0G0N(
[Ctb][Mythen3] Saves pattern to file (ascii). [Ctb][Mythen3][Xilinx Ctb] Saves pattern to file (ascii).
[Ctb] Also executes pattern. )V0G0N" [Ctb] Also executes pattern. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
@ -14727,7 +14727,7 @@ std::string Caller::timing(int action) {
os << "Command: timing" << std::endl; os << "Command: timing" << std::endl;
os << R"V0G0N([auto|trigger|gating|burst_trigger] os << R"V0G0N([auto|trigger|gating|burst_trigger]
Timing Mode of detector. Timing Mode of detector.
[Jungfrau][Moench][Gotthard][Ctb][Gotthard2] [auto|trigger] [Jungfrau][Moench][Gotthard][Ctb][Gotthard2][Xilinx Ctb] [auto|trigger]
[Mythen3] [auto|trigger|gating|trigger_gating] [Mythen3] [auto|trigger|gating|trigger_gating]
[Eiger] [auto|trigger|gating|burst_trigger] )V0G0N" [Eiger] [auto|trigger|gating|burst_trigger] )V0G0N"
<< std::endl; << std::endl;
@ -15134,7 +15134,7 @@ std::string Caller::triggersl(int action) {
if (action == slsDetectorDefs::HELP_ACTION) { if (action == slsDetectorDefs::HELP_ACTION) {
os << "Command: triggersl" << std::endl; os << "Command: triggersl" << std::endl;
os << R"V0G0N( os << R"V0G0N(
[Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb] Number of triggers left in acquisition. Only when external trigger used. )V0G0N" [Gotthard][Jungfrau][Moench][Mythen3][Gotthard2][Ctb][Xilinx Ctb] Number of triggers left in acquisition. Only when external trigger used. )V0G0N"
<< std::endl; << std::endl;
return os.str(); return os.str();
} }