Changeset 10813 for fact/FADctrl
- Timestamp:
- 05/25/11 12:14:42 (14 years ago)
- Location:
- fact/FADctrl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FAD.cc
r10757 r10813 656 656 657 657 // Other data 658 PrintMessage("Frequency %.2f GHz Phase shift %d PLL lock %d %d %d %d\n", S.Frequency,S.PhaseShift, S.Lock[0], S.Lock[1], S.Lock[2], S.Lock[3]);658 PrintMessage("Frequency %.2f GHz (%s) Phase shift %d PLL lock %d %d %d %d\n", S.Frequency, S.RefClk_low ? "too low":"OK", S.PhaseShift, S.Lock[0], S.Lock[1], S.Lock[2], S.Lock[3]); 659 659 PrintMessage("DENABLE %d DWRITE %d SPI_clk %d DCM_lock %d DCM_ready %d\n", S.denable, S.dwrite, S.spi_clk, S.DCM_lock, S.DCM_ready); 660 660 PrintMessage("DAC %d %d %d %d %d %d %d %d\n", S.DAC[0], S.DAC[1], S.DAC[2], S.DAC[3], S.DAC[4], S.DAC[5], S.DAC[6], S.DAC[7] ); … … 1121 1121 1122 1122 // Print to console 1123 if (Text[strlen(Text)-1] == '\n') printf("\r"); // Overwrite prompt1123 //if (Text[strlen(Text)-1] == '\n') printf("\r"); // Overwrite prompt 1124 1124 printf("%s", Text); 1125 1125 fflush(stdout); 1126 if (Text[strlen(Text)-1] =='\n') rl_on_new_line(); // New prompt1126 if (Text[strlen(Text)-1] == '\n') rl_on_new_line(); 1127 1127 1128 1128 // Send to DIM text service -
fact/FADctrl/FADBoard.cc
r10757 r10813 508 508 Status.denable = (bool) ( ntohs(Header->PLLLCK) & (1<<11) ); 509 509 Status.dwrite = (bool) ( ntohs(Header->PLLLCK) & (1<<10) ); 510 Status.DCM_lock = (bool) ( ntohs(Header->PLLLCK) & (1<<9) ); 511 Status.DCM_ready = (bool) ( ntohs(Header->PLLLCK) & (1<<8) ); 512 Status.spi_clk = (bool) ( ntohs(Header->PLLLCK) & (1<<7) ); 510 Status.DCM_lock = (bool) ( ntohs(Header->PLLLCK) & (1<<7) ); 511 Status.DCM_ready = (bool) ( ntohs(Header->PLLLCK) & (1<<6) ); 512 Status.spi_clk = (bool) ( ntohs(Header->PLLLCK) & (1<<5) ); 513 Status.RefClk_low = (bool) ( ntohs(Header->PLLLCK) & (1<<8) ); 513 514 514 515 // Extract temperatures (MSB indicates if temperature is positive or negative) -
fact/FADctrl/FADBoard.h
r10757 r10813 67 67 bool DCM_ready; 68 68 bool spi_clk; 69 69 bool RefClk_low; 70 70 71 uint16_t ROI[NChips][NChannels]; 71 72 uint16_t DAC[NDAC]; -
fact/FADctrl/FADctrl.cc
r10186 r10813 42 42 43 43 while (!M.ExitRequest) { 44 Command = readline(" \rFADctrl> ");45 44 Command = readline("FADctrl> "); 45 46 46 // Check for interruption by signal 47 47 if (Command == NULL) continue; -
fact/FADctrl/History.txt
r10757 r10813 29 29 Added cleanup handler to thread in FADBoard class to ensure mutex is unlocked when thread 30 30 cancelled 31 25/5/2011 dcm_lock and dcm_ready bits were incorrectly evaluated.
Note:
See TracChangeset
for help on using the changeset viewer.