Changeset 12270
- Timestamp:
- 10/25/11 19:51:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r12254 r12270 55 55 int16_t fRampTime; 56 56 57 uint 16_t fUpdateTime;57 uint32_t fUpdateTime; 58 58 uint16_t fSyncTime; 59 59 … … 504 504 case kResetChannels: 505 505 case kCmdRead: 506 HandleReceivedData(fBuffer, bytes_received, command, send_counter); 506 507 fWaitingForAnswer = false; 507 HandleReceivedData(fBuffer, bytes_received, command, send_counter);508 508 return; 509 509 … … 620 620 621 621 if (!is_open()) 622 return; 623 624 if (fUpdateTime==0) 622 625 return; 623 626 … … 1310 1313 // ------------------------------------------------------------------- 1311 1314 1312 void SetUpdateInterval(uint 16_t val)1315 void SetUpdateInterval(uint32_t val) 1313 1316 { 1314 1317 fUpdateTime = val; … … 1689 1692 int SetUpdateInterval(const EventImp &evt) 1690 1693 { 1691 if (!CheckEventSize(evt.GetSize(), "SetUpdateInterval", 2))1692 return false; 1693 1694 fBias.SetUpdateInterval(evt.Get<int 16_t>()<0 ? 0 : evt.Get<int16_t>());1694 if (!CheckEventSize(evt.GetSize(), "SetUpdateInterval", 4)) 1695 return false; 1696 1697 fBias.SetUpdateInterval(evt.Get<int32_t>()<0 ? 0 : evt.Get<uint32_t>()); 1695 1698 1696 1699 return T::GetCurrentState(); … … 1825 1828 1826 1829 1827 T::AddEvent("SET_UPDATE_INTERVAL", " S:1")1830 T::AddEvent("SET_UPDATE_INTERVAL", "I:1") 1828 1831 (bind(&StateMachineBias::SetUpdateInterval, this, placeholders::_1)) 1829 1832 ("Set the updat einterval how often the currents are requested" … … 1997 2000 fBias.SetRampStep(step); 1998 2001 fBias.SetRampTime(time); 1999 fBias.SetUpdateInterval(conf.Get<uint 16_t>("update-interval"));2002 fBias.SetUpdateInterval(conf.Get<uint32_t>("update-interval")); 2000 2003 fBias.SetSyncDelay(conf.Get<uint16_t>("sync-delay")); 2001 2004 … … 2076 2079 ("ramp-time", var<uint16_t>(15), "Delay between the answer of one ramping step and sending the next ramp command to all channels in milliseconds.") 2077 2080 ("ramp-step", var<uint16_t>(46), "Maximum step in DAC counts during ramping (Volt = DAC*90/4096)") 2078 ("update-interval", var<uint 16_t>(3000), "Interval between two current requests in milliseconds")2081 ("update-interval", var<uint32_t>(3000), "Interval between two current requests in milliseconds") 2079 2082 ("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") 2080 2083 ("volt-max-abs", var<float>(75), "Absolte upper limit for the voltage (in Volts)")
Note:
See TracChangeset
for help on using the changeset viewer.