- Timestamp:
- 09/02/11 09:37:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r11940 r11943 173 173 ostringstream msg; 174 174 msg << hex << setfill('0'); 175 msg << "Initial answer received: ";176 msg << " 0x" << setw(2) << (int)answer[0];177 msg << " 0x" <<setw(2) << (int)answer[1];178 msg << " 0x" << setw(2) << (int)answer[2];175 msg << "Initial answer received: 0x"; 176 msg << setw(2) << (int)answer[2]; 177 msg << setw(2) << (int)answer[1]; 178 msg << setw(2) << (int)answer[0]; 179 179 Message(msg); 180 180 … … 1398 1398 T::AddEvent("DISCONNECT", kConnected, kAtReference) 1399 1399 (bind(&StateMachineBias::Disconnect, this)) 1400 ("disconnect from ethernet");1400 ("disconnect from USB"); 1401 1401 1402 1402 T::AddEvent("RECONNECT", "O", kDisconnected, kConnected, kAtReference) 1403 1403 (bind(&StateMachineBias::Reconnect, this, placeholders::_1)) 1404 ("(Re)connect ethernet connection to FTM, a new address can be given"1405 "| [host][string]:new ethernet address in the form <host:port>");1404 ("(Re)connect USB connection to Bias power supply, a new address can be given" 1405 "|tty[string]:new USB address"); 1406 1406 1407 1407 … … 1445 1445 T::AddEvent("STOP", kConnected, kRamping, kAtReference, kOverCurrent) 1446 1446 (Wrapper(bind(&ConnectionBias::RampStop, &fBias))) 1447 (" ");1447 ("Stop an on-going ramping"); 1448 1448 1449 1449 T::AddEvent("START", kConnected, kOverCurrent) 1450 1450 (Wrapper(bind(&ConnectionBias::RampStart, &fBias))) 1451 (" ");1451 ("Start a ramping if no ramping is in progress and if reference values differ from current voltages"); 1452 1452 1453 1453 … … 1455 1455 T::AddEvent("PRINT_CURRENTS") 1456 1456 (Wrapper(bind(&ConnectionBias::PrintA, &fBias))) 1457 (" ");1457 ("Print a table with all current read back with the last request operation"); 1458 1458 T::AddEvent("PRINT_VOLTAGES") 1459 1459 (Wrapper(bind(&ConnectionBias::PrintV, &fBias))) 1460 (" ");1460 ("Print a table with all voltages (current and reference voltages as currently in memory)"); 1461 1461 T::AddEvent("PRINT_GAPD_REFERENCE_VOLTAGES") 1462 1462 (Wrapper(bind(&ConnectionBias::PrintGapd, &fBias))) 1463 (" ");1463 ("Print the G-APD reference values obtained from file"); 1464 1464 1465 1465 … … 1489 1489 } 1490 1490 1491 ~StateMachineBias() { T::Warn(" Implement rampming at shutdown!"); }1491 ~StateMachineBias() { T::Warn("TODO: Implement rampming at shutdown!"); } 1492 1492 1493 1493 int EvalOptions(Configuration &conf) … … 1605 1605 ("no-dim,d", po_bool(), "Disable dim services") 1606 1606 ("dev", var<string>("FTE00FOH"), "Device address of USB port to bias-power supply") 1607 ("quiet,q", po_bool(), "Disable printing contents of all received messages (except dynamic data) in clear text.")1608 ("ramp-time", var<uint16_t>(15), " ")1609 ("ramp-step", var<uint16_t>(46), " ")1610 ("update-interval", var<uint16_t>(3000), " ")1611 ("sync-delay", var<uint16_t>(333), " ")1612 ("volt-max", var<float>(75), " ")1607 ("quiet,q", po_bool(), "Disable printing contents of all received messages (except dynamic data) in clear text.") 1608 ("ramp-time", var<uint16_t>(15), "Delay between the answer of one ramping steps and sending the next ramp command to all channels in milliseconds.") 1609 ("ramp-step", var<uint16_t>(46), "Maximum step in DAC counts during ramping (Volt = DAC*90/4096)") 1610 ("update-interval", var<uint16_t>(3000), "Interval between two current requests in milliseconds") 1611 ("sync-delay", var<uint16_t>(333), "Delay between sending the inital 0's after a newly established connection to synchronize the output stream in milliseconds") 1612 ("volt-max", var<float>(75), "Upper limit for the voltage which can be applied in Volts") 1613 1613 ; 1614 1614 // FIXME: Make sure ramping / request and commands are
Note:
See TracChangeset
for help on using the changeset viewer.