fixed set dac problem for eiger

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@816 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d 2014-04-02 13:11:47 +00:00
parent 73261a3071
commit 58d3de174f
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ const char* dac_names[16] = {"SvP","Vtr","Vrf","Vrs","SvN","Vtgstv","Vcmp_ll","V
/** Ian, the setdac and getdac should take float if it takes only V and not mV*/
int eiger_nexposures = 1;
int EigerGetNumberOfExposures(){return eiger_nexposures;}
float eiger_exposuretime = 1;

View File

@ -153,9 +153,9 @@ int setDAC(enum detDacIndex ind, int val, int imod){
printf("Getting dac %d: %s\n",ind, iname);
//#endif
if(val >= 0)
EigerSetDAC(iname,val/1000);
EigerSetDAC(iname,val);
return (EigerGetDAC(iname)*1000);
return EigerGetDAC(iname);
}