FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 2285 of file biasctrl.cc.

References Configuration::AddOptions(), and po_bool().

Referenced by main().

2286 {
2287  po::options_description control("BIAS control options");
2288  control.add_options()
2289  ("no-dim,d", po_bool(), "Disable dim services")
2290  ("dev", var<string>(), "Device address of USB port to bias-power supply")
2291  ("quiet,q", po_bool(true), "Disable printing contents of all received messages (except dynamic data) in clear text.")
2292  ("dummy-mode", po_bool(), "Dummy mode - SetAllChannels prints info instead of sending new values.")
2293  ("ramp-delay", var<uint16_t>(15), "Delay between the answer of one ramping step and sending the next ramp command to all channels in milliseconds.")
2294  ("ramp-step", var<uint16_t>(46), "Maximum step in DAC counts during ramping (Volt = DAC*90/4096)")
2295  ("update-interval", var<uint32_t>(3000), "Interval between two current requests in milliseconds")
2296  ("sync-delay", var<uint16_t>(500), "Delay between sending the inital 0's after a newly established connection to synchronize the output stream in milliseconds")
2297  ("volt-max-abs", var<float>(75), "Absolte upper limit for the voltage (in Volts)")
2298  ("volt-max-rel", var<float>(3.5), "Relative upper limit for the voltage w.r.t. the G-APD reference voltage (in Volts)")
2299  ("bias-map-file", var<string>(), "File with nominal and offset voltages for each channel.")
2300  ("bias-database", var<string>(), "")
2301  ("emergency-limit", var<uint16_t>(2200), "A current limit in ADC counts which, if exceeded, will initiate an emergency shutdown (0=off)")
2302  ;
2303 
2304  conf.AddOptions(control);
2305 }
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
po::typed_value< bool > * po_bool(bool def=false)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: