Ignore:
Timestamp:
01/13/11 11:56:40 (14 years ago)
Author:
ogrimm
Message:
Amplitude calibration information stored in file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADctrl.cc

    r10099 r10101  
    55#include <stdio.h>
    66#include <readline/history.h>
     7#include <string>
    78
    89#include "FAD.h"
    910
    10 const char READLINE_HIST_FILE[] = "/tmp/.history.FADctrl";
     11using namespace std;
    1112
     13const string READLINE_HIST_FILE = string(getenv("HOME"))+"/.history_FADctrl";
    1214void OpenOtherSockets();
    1315
     
    2224 
    2325  // Load history buffer
    24   read_history(READLINE_HIST_FILE);
     26  read_history(READLINE_HIST_FILE.c_str());
    2527
    2628  system("clear");
     
    7375  DimClient::sendCommand(SERVER_NAME"/Command", "dwrite on");
    7476  DimClient::sendCommand(SERVER_NAME"/Command", "roi all 1024");
    75   sleep (1);
    7677
    77   //EmptySockets(SocketDescriptor, 8, 750000L);
    7878  M.PrintMessage("Finished initalizing all boards\n");
    7979 
     
    100100 
    101101  // Save history buffer 
    102   int Ret = write_history(READLINE_HIST_FILE);
    103   if (Ret != 0 ) printf("Error writing history file to '%s' (%s)\n", READLINE_HIST_FILE, strerror(Ret));
     102  int Ret = write_history(READLINE_HIST_FILE.c_str());
     103  if (Ret != 0 ) printf("Error writing history file to '%s' (%s)\n", READLINE_HIST_FILE.c_str(), strerror(Ret));
    104104
    105105  // Terminate thread for other sockets 
Note: See TracChangeset for help on using the changeset viewer.