minor / disable some warning errors - docs

parent f63d4d4a
......@@ -718,6 +718,10 @@
RelativePath="..\..\..\..\setId"
>
</File>
<File
RelativePath="..\..\..\..\doc\test_py.txt"
>
</File>
<File
RelativePath="..\..\..\..\src\unused.txt"
>
......
#=====================================================
import sys,os,glob
import PyTango
import weakref
import itertools
import numpy
import struct
import time
import re
from Lima import Core
from Lima import Pco
#=====================================================
#setFormatFlags(0x31) -> dateTime function fileLine
#setFormatFlags(0x30) -> function fileLine
from Lima import Core,Pco
Core.DebParams.setFormatFlags(0x30)
Core.DebParams.setTypeFlags(0xff)
Core.DebParams.setModuleFlags(0xffff)
Core.DebParams.setFormatFlags(Core.DebFmtFileLine)
Core.DebParams.setModuleFlags(Core.DebModCamera)
Core.DebParams.setTypeFlags(Core.DebTypeAlways)
cam = Pco.Camera("")
ifc = Pco.Interface(cam)
ct = Core.CtControl(ifc)
acq = ct.acquisition()
sav = ct.saving()
img = ct.image()
#======================
# img.getMode()
# img.setMode( xxx )
>>> img.HardOnly
0
>>> img.SoftOnly
1
>>> img.HardAndSoft
2
#======================
ifc.getNbAcquiredFrames()
ifc.getNbHwAcquiredFrames()
ifc.getStatus()
acq.getTriggerMode()
acq.getTriggerModeList()
acq.setAcqExpoTime(.1)
acq.setAcqNbFrames(100)
ct.prepareAcq()
ct.startAcq()
ifc.getNbAcquiredFrames()
ifc.getNbHwAcquiredFrames()
ct.stopAcq()
acq.getAcqExpoTime(.1)
acq.getAcqMode()
acq.getLatencyTime()
ct.prepareAcq()
ct.startAcq()
acq.getAcqExpoTime()
ifc.getNbHwAcquiredFrames()
ifc.getNbAcquiredFrames()
ct.stopAcq()
......@@ -875,7 +875,7 @@ int BufferCtrlObj::_xferImag()
errPco, dwStatusDll, dwStatusDrv,
sBufNr, eventRet, dwFrameIdx, iLoopsPolled, msTimeout);
DEB_ALWAYS()
DEB_WARNING()
<<"\n" << msg
<< m_cam->_PcoCheckError(__LINE__, __FILE__, dwStatusDrv, error)
<< m_cam->_sprintComment(false, fnId, "[PCO_GetBufferStatus]", "[ERROR]");
......
......@@ -1388,12 +1388,12 @@ unsigned long Camera::_pco_GetNumberOfImagesInSegment_MaxCalc(int segmentPco)
if(!_isCameraType(Dimax | Pco2k | Pco4k)) {
DEB_ALWAYS() << "ERROR camera not valid for this function: " << _getCameraType();
//DEB_WARNING() << "ERROR camera not valid for this function: " << _getCameraType();
return 0;
}
if((segmentPco <1) ||(segmentPco > PCO_MAXSEGMENTS)) {
DEB_ALWAYS() << "ERROR in the segment: " << DEB_VAR1(segmentPco);
DEB_ALWAYS() << "ERROR invalid segment: " << DEB_VAR1(segmentPco);
return 0;
}
......
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