Changeset 14299 for trunk/FACT++
- Timestamp:
- 08/01/12 17:40:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/agilentctrl.cc
r14293 r14299 34 34 35 35 protected: 36 37 38 virtual void UpdateVolt(float, const vector<float>&)39 {40 }41 42 virtual void UpdateCur(float, const vector<float>&)43 {44 }45 46 36 47 37 … … 104 94 105 95 // int status=-1; 106 float time=0;107 96 108 97 string buffer; … … 191 180 if (b) 192 181 { 193 PostMessage("outp on\n" ,8);182 PostMessage("outp on\n"); 194 183 } 195 184 else 196 185 { 197 PostMessage("outp off\n" ,9);186 PostMessage("outp off\n"); 198 187 } 199 188 } … … 215 204 private: 216 205 217 DimDescribedService fDimVolt; 218 DimDescribedService fDimCurr; 219 220 221 void Update(DimDescribedService &svc, vector<float> data, float time) const 222 { 223 data.insert(data.begin(), time); 206 DimDescribedService fDim; 207 208 void Update(DimDescribedService &svc, vector<float> data) const 209 { 224 210 svc.Update(data); 225 211 } 226 212 227 void UpdateVolt(float time, const vector<float> &volt) 228 { 229 Update(fDimVolt, volt, time); 230 } 231 232 void UpdateCur(float time, const vector<float> &curr) 233 { 234 Update(fDimCurr, curr, time); 235 } 236 237 213 void UpdateDim(const vector<float> &data) 214 { 215 Update(fDim, data); 216 } 217 238 218 239 219 public: 240 220 ConnectionDimAgilent(ba::io_service& ioservice, MessageImp &imp) : 241 221 ConnectionAgilent(ioservice, imp), 242 fDimVolt ("AGILENT_CONTROL/VOLTAGE", 243 "F:1;F:1", 244 "|t[s]:Agilent uptime" 245 "|fact_supply[V]: FACT supply voltage"), 246 fDimCurr("AGILENT_CONTROL/CURRENT", "F:1;F:1", 247 "|t[s]:FSC uptime" 248 "|fact_current_consumption[A]: current consumed by the FACT camera") 222 fDim("AGILENT_CONTROL/DATA", "F:1;F:1", 223 "|U[V]: FACT supply voltage" 224 "|I[A]: current consumed by the FACT camera") 249 225 { 250 226 // nothing happens here.
Note:
See TracChangeset
for help on using the changeset viewer.