From b227ad1b0cf4f378e73d0d1182b7f299d1aa3730 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Wed, 28 Mar 2012 08:30:52 +0000 Subject: [PATCH] test function changed a bit git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@166 951219d9-93cf-4727-9268-0efd64621fa3 --- .../slsDetector/slsDetectorCommand.cpp | 6 ++-- .../slsDetector/slsDetectorUtils.cpp | 32 +++++++++++++++---- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp index 5a66ad955..f18fede31 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp @@ -372,7 +372,7 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) { descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdDigiTest; i++; - descrToFuncMap[i].m_pFuncName="reg_rw"; // + descrToFuncMap[i].m_pFuncName="reg"; // descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdRegister; i++; @@ -2591,10 +2591,10 @@ string slsDetectorCommand::helpRegister(int narg, char *args[], int action) { ostringstream os; if (action==PUT_ACTION || action==HELP_ACTION) { - os << "reg_rw addr val \n writes the register addr with the value val"<< std::endl; + os << "reg addr val \n writes the register addr with the value val"<< std::endl; } if (action==GET_ACTION || action==HELP_ACTION) { - os << "reg_rw addr \n reads the register addr"<< std::endl; + os << "reg addr \n reads the register addr"<< std::endl; } return os.str(); diff --git a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp index 1c87655c5..6f207057d 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp @@ -2968,25 +2968,41 @@ float slsDetectorUtils::getCurrentProgress() { int slsDetectorUtils::testFunction(int times) { int i,count=0; runStatus s; + char controlval[1000]; + char statusval[1000]; int nchans = getTotalNumberOfChannels(); short int dataVals[nchans]; for(i=0;i