- Timestamp:
- 04/01/11 09:27:43 (14 years ago)
- Location:
- fact/FADctrl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADBoard.cc
r10263 r10279 23 23 Status.Update.tv_sec = -1; 24 24 Port = ServerPort; 25 25 Status.Frequency = 0; 26 Status.BoardID = 0; 27 26 28 Name = new char [Server.size()+1]; // Name in permanent memory for DIM service 27 29 strcpy(Name, Server.c_str()); … … 49 51 DIM_Status = new DimService((ID.str()+"Status").c_str(), (char *) ""); 50 52 DIM_ID = new DimService((ID.str()+"BoardID").c_str(), (char *) "S", NULL, 0); 53 DIM_Frequency = new DimService((ID.str()+"Frequency").c_str(), Status.Frequency); 51 54 DIM_Temp = new DimService((ID.str()+"Temperature").c_str(), (char *) "F", NULL, 0); 52 55 DIM_DAC = new DimService((ID.str()+"DAC").c_str(), (char *) "S", NULL, 0); … … 54 57 55 58 // Create thread that connects and receives data 56 SetStatus("Trying to connect ");59 SetStatus("Trying to connect..."); 57 60 58 61 if ((Ret = pthread_create(&Thread, NULL, (void * (*)(void *)) LaunchThread,(void *) this)) != 0) { … … 82 85 delete DIM_Status; 83 86 delete DIM_ID; 87 delete DIM_Frequency; 84 88 delete DIM_Temp; 85 89 delete DIM_DAC; … … 510 514 LastUpdate = time(NULL); 511 515 516 if (PrevStatus.Frequency != Status.Frequency) DIM_Frequency->updateService(); 517 512 518 if (memcmp(PrevStatus.Temp, Status.Temp, sizeof(Status.Temp)) != 0) { 513 519 DIM_Temp->updateService(Status.Temp, sizeof(Status.Temp)); -
fact/FADctrl/FADBoard.h
r10262 r10279 28 28 int Socket; 29 29 pthread_mutex_t Mutex; 30 DimService *DIM_Name, *DIM_Status, *DIM_ID, *DIM_ Temp, *DIM_ROI, *DIM_DAC;30 DimService *DIM_Name, *DIM_Status, *DIM_ID, *DIM_Frequency, *DIM_Temp, *DIM_ROI, *DIM_DAC; 31 31 32 32 void ReadLoop(); -
fact/FADctrl/History.txt
r10263 r10279 20 20 29/3/2011 Added Status message service for each board (removed several console messages in turn) 21 21 Limited update rate of slow control data to 1 second or interval set by 'update' 22 1/4/2011 Added DIM frequency service
Note:
See TracChangeset
for help on using the changeset viewer.