- Timestamp:
- 10/23/11 21:40:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r12249 r12254 1313 1313 { 1314 1314 fUpdateTime = val; 1315 1316 if (!IsConnected() || fIsInitializing) 1317 return; 1318 1319 fUpdateTimer.cancel(); 1320 1321 if (fUpdateTime>0) 1322 ScheduleUpdate(fUpdateTime); 1315 1323 } 1316 1324 … … 1679 1687 // -------------------------------------------------------------------- 1680 1688 1689 int SetUpdateInterval(const EventImp &evt) 1690 { 1691 if (!CheckEventSize(evt.GetSize(), "SetUpdateInterval", 2)) 1692 return false; 1693 1694 fBias.SetUpdateInterval(evt.Get<int16_t>()<0 ? 0 : evt.Get<int16_t>()); 1695 1696 return T::GetCurrentState(); 1697 } 1698 1681 1699 int Disconnect() 1682 1700 { … … 1805 1823 ("(Re)connect USB connection to Bias power supply, a new address can be given" 1806 1824 "|tty[string]:new USB address"); 1825 1826 1827 T::AddEvent("SET_UPDATE_INTERVAL", "S:1") 1828 (bind(&StateMachineBias::SetUpdateInterval, this, placeholders::_1)) 1829 ("Set the updat einterval how often the currents are requested" 1830 "|interval[ms]:Update interval in milliseconds"); 1807 1831 1808 1832
Note:
See TracChangeset
for help on using the changeset viewer.