Commit 8e2f7cb2 authored by Laurent Claustre's avatar Laurent Claustre

Updated test prg for future cmake integration

parent 180162a2
......@@ -2,7 +2,7 @@
# python version
#from Lima.Maxipix.MpxAcq import MpxAcq
#C++ version
from Lima.Maxipix import Maxipix
from Lima import Maxipix
from Lima.Core import DebParams
from Lima import Core
import time
......@@ -13,16 +13,7 @@ import time
#DebParams.setModuleFlags(Ac0xffffb7)
# this was for python version
#mpx = MpxAcq(0);
#p = mpx.getPriamAcq()
#mpx.setPath('/users/blissadm/local/maxipix/tpxatl25')
#mpx.loadConfig('tpxatl25')
#hwint = mpx.getInterface()
# this is with C++ version
cam = Maxipix.Camera(0,'/users/blissadm/local/maxipix/tpxatl25', 'tpxatl25', True)
cam = Maxipix.Camera(0,'../../config', 'mydet', True)
hwint = Maxipix.Interface(cam)
control = Core.CtControl(hwint)
......
......@@ -27,7 +27,7 @@ int main() {
} else {
cout << "Unable to open file";
}
std::string fname = "./tpxatl25.cfg";
std::string fname = "../../mydet.cfg";
INIReader reader(fname);
if (reader.ParseError() < 0) {
std::cout << "I/O error while reading file." << std::endl;
......
......@@ -25,8 +25,8 @@ int main()
//DebParams::setTypeFlags(DebParams::AllFlags);
//DebParams::setFormatFlags(DebParams::AllFlags);
string path = "/users/blissadm/local/maxipix/tpxatl25/";
string filename = "tpxatl25";
string path = "../../config";
string filename = "mydet";
m_camera = new Camera(0, path, filename, true);
m_interface = new Interface(*m_camera);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment