Commit fba4a367 authored by Laurent Claustre's avatar Laurent Claustre

Merge branch 'master' of github.com:esrf-bliss/Lima-camera-pco

parents 06bd4739 a782449d
......@@ -9,3 +9,4 @@
*.tmp
PcoGitVersion.*
[0-9]*
*.cpp.*
@echo off
rem =======================================================================
rem the install directory (from blissinstaller) must be in c:\blissadm\pco\
rem it can be renamed for tests or different versions.
rem the actual name must be used as 1st parameter
rem the 2nd parameter is the personal name of the server
rem the 3rd parameter is the IP of the pc (used for ORBendPoint)
rem =======================================================================
rem %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\lima_pco_ds.bat"" install pco4k 160.103.35.39
rem %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\lima_pco_ds.bat"" install-ok
rem if not exist "%~dp0bin\vcvars32.bat" goto missing
rem call "%~dp0bin\vcvars32.bat"
rem goto doit
@echo on
c:
cd "C:\Program Files\Microsoft Visual Studio 9.0\VC\"
if not exist ".\bin\vcvars32.bat" goto missing
call ".\bin\vcvars32.bat"
goto doit
:missing
echo The specified configuration type is missing. The tools for the
echo configuration might not be installed.
pause
goto :eof
:doit
c:
@echo on
cd c:\blissadm\lima\pco\%1
cd c:\blissadm\pco\%1
python LimaCCDs.py %2 -ORBendPoint giop:tcp:%3:
pause
:eof
@echo off
rem %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\lima_pco_ds.bat"" install pco4k 160.103.35.39
rem %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\lima_pco_ds.bat"" install-ok
rem if not exist "%~dp0bin\vcvars32.bat" goto missing
rem call "%~dp0bin\vcvars32.bat"
rem goto doit
@echo on
c:
cd "C:\Program Files\Microsoft Visual Studio 9.0\VC\"
if not exist ".\bin\vcvars32.bat" goto missing
call ".\bin\vcvars32.bat"
goto doit
:missing
echo The specified configuration type is missing. The tools for the
echo configuration might not be installed.
pause
goto :eof
:doit
c:
@echo on
cd c:\blissadm\lima\pco\%1
python LimaCCDs.py %2 -ORBendPoint giop:tcp:%3:
pause
:eof
This diff is collapsed.
#!/bin/sh
REMDIR="/segfs/bliss/projects/LIMA/build/depot_win/win32_vc9/pco"
REMHOST="blissadm@bestia"
LOCDIR="/c/blissadm/git/pco/Lima/install"
REMDIR="/segfs/bliss/projects/LIMA/build/depot_win/win_vc9/pco"
REMHOST="blissadm@lid00a"
#LOCDIR="/c/blissadm/git/pco/Lima/install"
LOCDIR="../../install"
TMPDIR="/t/rhoms1"
LOG="./doc/VERSION.log"
DT=`date +"%Y-%m-%d_%H%M%S"`
INSTALL="install-${DT}"
INSTALLBETA="install-beta"
echo ${INSTALL} > ${LOCDIR}/INSTALL_VERSION.txt
......@@ -16,6 +18,7 @@ scp -r ${LOCDIR}/ ${REMHOST}:${REMDIR}/${INSTALL}
cp -r ${LOCDIR}/ ${TMPDIR}/${INSTALL}
cp -r ${LOCDIR}/ ${TMPDIR}/${INSTALLBETA}
{
echo
......@@ -24,6 +27,7 @@ echo "scp: copied local directory to segfs and /tmp_14_days:"
echo "from: [${LOCDIR}/]"
echo " to: [${REMHOST}:${REMDIR}/${INSTALL}]"
echo " to: [${TMPDIR}/${INSTALL}]"
echo " to: [${TMPDIR}/${INSTALLBETA}]"
echo
} > ${LOG}.bck.bck
......
This diff is collapsed.
......@@ -4,6 +4,186 @@
#===================================================
#===================================================
#===================================================
# 2016/05/19
# blissinstaller package
#===================================================
temporary patch on the core to fix the max lim of mem in
accumulation mode
------------------------ control/src/CtAccumulation.cpp ------------------------
index 99e11b4..262d1b3 100644
@@ -528,6 +528,10 @@ void CtAccumulation::prepare()
m_saturated_images.clear();
CtBuffer *buffer = m_ct.buffer();
buffer->getNumber(m_buffers_size);
+
+ //----- patch for acc mode 32 bit - 16
+ if(m_buffers_size > 10) m_buffers_size /= 2;
+
CtAcquisition *acquisition = m_ct.acquisition();
int acc_nframes;
acquisition->getAccNbFrames(acc_nframes);
#===================================================
# 2016/05/18
# pco 4000 camera / usb2 - FRAME RATE
#===================================================
- in the case of pco 4000, the size is 4008*2672, pco 2000 is (2048*2048)
so it will take about 50 * (4008*2672)/(2048*2048) = 128 ms to transfer the image to the DDR.
- the transfer with usb2 will be about 480 Mbps -> 48 MB/s
- the image size is (4008*2672) * 2 = 21418752B -> 446 ms (usb comm)
- so the complete image transfer will be at 21.418752/(.446 + .128) = 37 MB/s -> 1.74 fps
* dwSerialNumber[2094]
* wCamType[260] wCamSubType[0] [PCO 4000]
* wInterfaceType[3] [USB]
VS configuration: platform[x64] configuration[Release]
PCO SDK version: file[sc2_cam.dll] ver[1,18,0,316 /Increv: 399 / Date: 2014/10/01 17:03:28]
* ADC wADCOperation[2] wNumADCsDESC[2]
* pixelRate[32000000](32 MHz)
* imgSize[10709376 px][21418752 B][20.4265 MB]
* bitsPerPix[14] bytesPerPix[2]
* cocRunTime[0.202467] (s) frameRate[4.93907] (fps)
* imgSize[21418752 B] totSize[2141875200 B][2042.65 MB] xferSpeed[38.2741 MB/s][1.87375 fps]
* nrImgRequested0[100] nrImgRequested[100] nrImgAcquired[100] nrImgRecorded[101] maxImgCount[250]
* ... usTicks[6][52813.752] (ms) (PCO_GetImageEx / API total execTime)
* msImgCoc[202] fps[4.94] msTout[26320] msTotal[74043]
* msExposure[100] msDelay[0]
#===================================================
# 2016/04/13
# pco 2000 camera - FRAME RATE
#===================================================
nrFrames[100]
exp[0.001] delay[0] (s)
roi PCO X(1,2048) Y(1,2048) size(2048,2048)
ADC: working[2]
pixel rate: 40000000 Hz
cocRunTime: 0.0682261 s
frameRate: 14.6571 f/s
- sequence mode recording
that is
- record in the cam memory
- when it finishes, transfer the images to lima
- the record phase is ok
rec[6980] ms <- recording time 101 * coc = 0.0682261 OK
cocRunTime: 0.0682261 s
frameRate: 14.6571 f/s
- the framerate of the acquisition in the cam memory, is NOT the final framerate of the
readout!
the transfer speed from the camera to lima is low, similar the one you
reported
xfer[31561] <- 31.5 s -> about 3 frames/s (!!!)
the GigE connection is ok. i get with GigECalib V1,4,0,50
Test succeeded with a maxium datathoughput of 68 MB/sec
the net speed is 68 instead of 100 MB/s, because it takes about 50ms to
transfer the img to the ddr, and 80ms the transmission at 100 MB/s,
that is the eth link has a net duty of about 80/130 -> 0.61 -> 61 MB/s
-> 68 MB/s
the image of 2048*2048 is about 8MB -> 8 images/s, associated to the
GigE communication ...
i tested the time of the API call, that is, counting the time just
between before/after the call PCO_GetImageEx
* ... usTicks[5][31112.084] (ms) (PCO_GetImageEx only)
and the rest of time, copy to lima and lima processing is
* ... usTicks[7][315.822] (ms) (xfer to lima / total execTime)
that is the GigE reduces the speed from about 14.6 f/s to 8 but the api
reduces this to about 3.1
#===================================================
# 2016/04/01
# from Paul / id17
#===================================================
Yes, the server crashes, and then has to be restarted, and the frame corresponding to the crash is exactly at
64Gb. the error message on the windows machine is linked to the memory saturation.
If the size of the complete scan is lower, then it works fine, but 64 Gb is a rather small size for a scan
with half-acquisition.
We are currently doing an experiment on ID17 with the PCO edge. (new 64 bits version)
We had series of crashes, they happen when the size of the scan is more than 64 Gb.
During the scan, the memory is constantly increasing and is released only at the end
once it reaches the total RAM (64Gb) everything crashes.
- the fix of the memory in the 32b release / core 1.3 2014/03/07
was changed
- Manu included this during setup
def ftomoccdsetup '{
# buffer max memory
_limapar_set(ccd_name, "buffer_max_memory", ccd_maxmem)
- included the property mem_factor (0 -100) in the pco device
- test
---------------
timestamp: 2016/04/01 16:31:52
computer name: ISG-PCO2K2
user name: opid00
VS configuration: platform[x64] configuration[Release]
=================================================
mem_factor: org[70] req[50] now[50]
=================================================
---------------
#===================================================
# 2015-09-10 18:18:10
# 4d5d8a8e401ac445911fd86d22adb7442b68d8fd
# Tags: pco-win64-1.4.1
#===================================================
# including the platform and the configuration
#===================================================
PreprocessorDefinitions= VS_PLATFORM=$(PlatformName);VS_CONFIGURATION=$(ConfigurationName);
liblimapco -> properties -> c/c++ -> preprocessor -> preprocessor definitions:
VS_PLATFORM=$(PlatformName)
VS_CONFIGURATION=$(ConfigurationName)
the macro $(PlatformName) is Win32 or x64
the macro $(ConfigurationName) is Release_Win7_Sync or Release
PreprocessorDefinitions= VS_PLATFORM=$(PlatformName);VS_CONFIGURATION=$(ConfigurationName);
the preprocessor change these values to strings:
#define Win32 "Win32"
#define x64 "x64"
#define Release_Win7_Sync "Release_Win7_Sync"
#define Release "Release"
then we can use in:
sprintf_s(infoBuff, bufCharCount, "platform[%s] configuration[%s]",
VS_PLATFORM,
VS_CONFIGURATION);
#===================================================
# 2015/06/22
- changed the repository for lima/win
......@@ -143,41 +323,60 @@ On 22/06/2015 16:49
# c:\Users\homsrego\git\pco\Lima> <---
#------------------------------------------------------------------------
************************************************
*** after test OK -> git commit -a
*** setId (header is modified with the new hash)
*** compile again
************************************************
- first copy config.inc_default to config.inc
-- limabase
limabase
Lima>
- configure config.inc
COMPILE_CORE=1
COMPILE_PCO=1
- go to third-party\Processlib\sip
-- limaproc
-- cd sip
R:\dserver\classes\ccd\pco_rh\Lima\third-party\Processlib\sip>
limaproc
cd sip
Lima\third-party\Processlib\sip>
- then run
Lima\third-party\Processlib\sip>python configure.py
Lima\third-party\Processlib\sip>
- then run (?)
Lima\third-party\Processlib\sip>nmake clean
- then run
Lima\third-party\Processlib\sip>nmake
python configure.py
nmake clean
nmake
- then go back to Lima
-- limabase
R:\dserver\classes\ccd\pco_rh\Lima>
Lima\third-party\Processlib\sip>
limabase
Lima>
- then run
Lima>python windowsSipCompilation.py --config
python windowsSipCompilation.py --config
- then run
Lima>python windowsSipCompilation.py
python windowsSipCompilation.py
- then run
Lima>python windowsInstall.py
-- Lima>limacpins
python windowsInstall.py
limacpins
********************************************************************************************
*** delete /tmp_14_days/rhoms1/install-beta
*** cpInstall - copy install to
*** /tmp_14_days/rhoms1/install-beta
*** /tmp_14_days/rhoms1/install-DT
*** blissadm@lid00a:/segfs/bliss/projects/LIMA/build/depot_win/win_vc9/pco/install-DT
********************************************************************************************
********************************************************************************************
blissdb:
cd /segfs/bliss/projects/LIMA/build/depot_win/win_vc9/pco
mkdir pco-win64-1.4.5
cp -r install-2016-03-31_134518/ pco-win64-1.4.5/install
********************************************************************************************
#===============================================================================
# For Linux platform, It's manage by the master Makefile
......@@ -206,6 +405,24 @@ $ ./setId
#----------------------------------------------------------------------------
#===============================================================================
# debug flags
#===============================================================================
0x31 -> dateTime function fileLine
0x30 -> function fileLine
enum DebFormat {
DebFmtDateTime = 1 << 0,
DebFmtThread = 1 << 1,
DebFmtModule = 1 << 2,
DebFmtObj = 1 << 3,
DebFmtFunct = 1 << 4,
DebFmtFileLine = 1 << 5,
DebFmtType = 1 << 6,
DebFmtIndent = 1 << 7,
DebFmtColor = 1 << 8,
};
#===============================================================================
# git / config
#===============================================================================
......
......@@ -96,8 +96,8 @@ typedef int tPvErr;
{ \
if(__err__){ \
char ___buff___[ERRMSG_SIZE+1]; \
sprintf_s(___buff___, ERRMSG_SIZE, "=== %s PcoError[x%08x][%s]", __msg__, m_pcoData->pcoError, m_pcoData->pcoErrorMsg); \
DEB_TRACE() << ___buff___; \
sprintf_s(___buff___, ERRMSG_SIZE, "LIMA_HW_EXC ===> %s PcoError[x%08x][%s]", __msg__, m_pcoData->pcoError, m_pcoData->pcoErrorMsg); \
DEB_ALWAYS() << ___buff___; \
throw LIMA_HW_EXC(Error, ___buff___); \
} \
DEB_TRACE() << "*** " << __msg__ << " OK" ; \
......@@ -115,4 +115,14 @@ typedef int tPvErr;
#define DEF_FNID static char *fnId =__FUNCTION__;
#define PRINTLINES { for(int i = 0; i<50;i++) printf("===== %s [%d]/[%d]\n", __FILE__, __LINE__,i); }
#define PCO_FN0(er,mg, fn) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( ), #fn ); }
#define PCO_FN1(er,mg, fn, x1) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( (x1) ), #fn ); }
#define PCO_FN2(er,mg, fn, x1, x2) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( (x1),(x2) ), #fn ) ; }
#define PCO_FN3(er,mg, fn, x1, x2, x3) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( (x1),(x2),(x3) ), #fn ) ; }
#define PCO_FN4(er,mg, fn, x1, x2, x3, x4) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( (x1),(x2),(x3),(x4) ), #fn ) ; }
#define PCO_FN5(er,mg, fn, x1, x2, x3, x4, x5) {mg = #fn; er = PcoCheckError(__LINE__, __FILE__, fn ( (x1),(x2),(x3),(x4),(x5) ), #fn ) ; }
#endif
......@@ -83,11 +83,9 @@ namespace lima
int _xferImag();
int _xferImag_getImage();
int _xferImagMult();
void * BufferCtrlObj::_getLimaBuffer(int lima_buffer_nb, Sync::Status &status);
int _getRequestStop(int &nrStop);
void _setRequestStop(int requestStop);
void _pcoAllocBuffersFree();
void _pcoAllocBuffersInfo(int &nr, DWORD &size);
......
This diff is collapsed.
......@@ -27,7 +27,26 @@
#include <time.h>
#include "processlib/Compatibility.h"
char *_checkLogFiles() ;
#define CAMINFO_ALL 0xffffffffffffffffLL
#define CAMINFO_BLOCK (0x1LL << 0)
#define CAMINFO_UNSORTED (0x1LL << 1)
#define CAMINFO_LOG (0x1LL << 2)
#define CAMINFO_PIXELRATE (0x1LL << 8)
#define CAMINFO_ADC (0x1LL << 9)
#define CAMINFO_FIRMWARE (0x1LL << 10)
#define CAMINFO_GENERAL (0x1LL << 11)
#define CAMINFO_VERSION (0x1LL << 12)
#define CAMINFO_DIMAX (0x1LL << 13)
#define CAMINFO_EXP (0x1LL << 14)
#define CAMINFO_ROI (0x1LL << 15)
#define CAMINFO_CAMERALINK (0x1LL << 16)
#define CAMINFO_CAMERATYPE (0x1LL << 17)
#endif
......@@ -90,27 +90,30 @@ namespace lima
//BufferCtrlObj* _getBufferCtrlObj() {return m_buffer;}
void setExposing(pcoAcqStatus exposing) {m_exposing = exposing;}
void setStarted(bool started) {m_started = started;}
void setStarted(bool started);
bool getStarted() {return m_started;}
pcoAcqStatus getExposing() {return m_exposing;}
int _getRequestStop(int &nrStop);
void _setRequestStop(int requestStop);
private:
double m_exp_time; /* exposure time in s */
double m_lat_time; /* lattency - delay? */
Camera* m_cam;
HANDLE& m_handle;
TrigMode m_trig_mode;
BufferCtrlObj* m_buffer;
int m_nb_frames;
int m_nb_acq_frames;
bool m_started;
pcoAcqStatus m_exposing;
struct stcPcoData *m_pcoData;
Cond m_cond;
int m_requestStop, m_requestStopRetry;
double m_exp_time; /* exposure time in s */
double m_lat_time; /* lattency - delay? */
Camera* m_cam;
HANDLE& m_handle;
TrigMode m_trig_mode;
BufferCtrlObj* m_buffer;
int m_nb_frames;
int m_nb_acq_frames;
bool m_started;
pcoAcqStatus m_exposing;
struct stcPcoData *m_pcoData;
};
} // namespace Pco
......
#define PCO_SDK_VERSION "$Id: PCOSDK [1.18] $"
--------------------------------- FROM [sdkPco_118]
--------------------------------- TO [sdkPco]
Thu Apr 21 14:17:43 RDT 2016
... copying [sdkPco/PcoSdkVersion.h]
7f1c875dd3be0fbc684ee54515397739 *sdkPco/PcoSdkVersion.h
-rw-r--r-- 1 homsrego Administ 60 Apr 21 12:40 sdkPco/PcoSdkVersion.h
... copying [sdkPco/bin/SC2_Cam.dll]
24761a29258a6e5882a51add6c786db3 *sdkPco/bin/SC2_Cam.dll
-rwxr-xr-x 1 homsrego Administ 381440 Apr 14 11:05 sdkPco/bin/SC2_Cam.dll
... copying [sdkPco/bin/sc2_cl_me4.dll]
d61038e9d4fd7c726bec82e7835e31f3 *sdkPco/bin/sc2_cl_me4.dll
-rwxr-xr-x 1 homsrego Administ 286208 Apr 14 11:05 sdkPco/bin/sc2_cl_me4.dll
... copying [sdkPco/lib/SC2_Cam.lib]
bccd5bc50e029574c3582522e620679b *sdkPco/lib/SC2_Cam.lib
-rw-r--r-- 1 homsrego Administ 49142 Apr 14 11:05 sdkPco/lib/SC2_Cam.lib
... copying [sdkPco/bin64/SC2_Cam.dll]
7b13b847efd2d02ab2cb8b6341e4230d *sdkPco/bin64/SC2_Cam.dll
-rwxr-xr-x 1 homsrego Administ 425472 Apr 14 11:05 sdkPco/bin64/SC2_Cam.dll
... copying [sdkPco/bin64/sc2_cl_me4.dll]
dbf27f7ffe531ddc90e675602366bc7b *sdkPco/bin64/sc2_cl_me4.dll
-rwxr-xr-x 1 homsrego Administ 304128 Apr 14 11:05 sdkPco/bin64/sc2_cl_me4.dll
... copying [sdkPco/lib64/SC2_Cam.lib]
ef127eddcbb5be4b894796edeeb4fb10 *sdkPco/lib64/SC2_Cam.lib
-rw-r--r-- 1 homsrego Administ 45136 Apr 14 11:05 sdkPco/lib64/SC2_Cam.lib
... copying dir [sdkPco]
total 176
-rw-r--r-- 1 homsrego Administ 2542 Apr 14 11:05 PCO_Structures.h
-rw-r--r-- 1 homsrego Administ 38854 Apr 14 11:05 PCO_err.h
-rw-r--r-- 1 homsrego Administ 37415 Apr 14 11:05 PCO_errt.h
-rw-r--r-- 1 homsrego Administ 4550 Apr 14 11:05 Pco_ConvDlgExport.h
-rw-r--r-- 1 homsrego Administ 6630 Apr 14 11:05 Pco_ConvExport.h
-rw-r--r-- 1 homsrego Administ 9235 Apr 14 11:05 Pco_ConvStructures.h
-rw-r--r-- 1 homsrego Administ 124357 Apr 14 11:05 SC2_CamExport.h
-rw-r--r-- 1 homsrego Administ 10522 Apr 14 11:05 SC2_DialogExport.h
-rw-r--r-- 1 homsrego Administ 10539 Apr 14 11:05 SC2_SDKAddendum.h
-rw-r--r-- 1 homsrego Administ 44496 Apr 14 11:05 sc2_SDKStructures.h
-rw-r--r-- 1 homsrego Administ 5519 Apr 14 11:05 sc2_common.h
-rw-r--r-- 1 homsrego Administ 57655 Apr 14 11:05 sc2_defs.h
24761a29258a6e5882a51add6c786db3 *sdkPco/bin/SC2_Cam.dll
d61038e9d4fd7c726bec82e7835e31f3 *sdkPco/bin/sc2_cl_me4.dll
7b13b847efd2d02ab2cb8b6341e4230d *sdkPco/bin64/SC2_Cam.dll
dbf27f7ffe531ddc90e675602366bc7b *sdkPco/bin64/sc2_cl_me4.dll
001e53237fac0660aeb4091624f26ba0 *sdkPco/include/Pco_ConvDlgExport.h
c0a22e2d703f75b78366732061095e4f *sdkPco/include/Pco_ConvExport.h
02927354a905586ee46b0ed264f73a3d *sdkPco/include/Pco_ConvStructures.h
230c35b4a6a1a65a24466405ad160f01 *sdkPco/include/PCO_err.h
af9d50121c2f2b252b35054e643f1a7e *sdkPco/include/PCO_errt.h
1f2a3c56167094883ebb96a510b47efa *sdkPco/include/PCO_Structures.h
626e60b7e507585c0444fa23dd3438a3 *sdkPco/include/SC2_CamExport.h
4b5c251043115e18ee6af5cefb7be74f *sdkPco/include/sc2_common.h
a0e1b6ef00c51c997a08367f5a5dd048 *sdkPco/include/sc2_defs.h
276244167010a08c38e15b2510ac4931 *sdkPco/include/SC2_DialogExport.h
78141a2c3a054d5ad5baa5e220ce8c2b *sdkPco/include/SC2_SDKAddendum.h
a619577b0800392dcc4b242b34e039ce *sdkPco/include/sc2_SDKStructures.h
bccd5bc50e029574c3582522e620679b *sdkPco/lib/SC2_Cam.lib
ef127eddcbb5be4b894796edeeb4fb10 *sdkPco/lib64/SC2_Cam.lib
7f1c875dd3be0fbc684ee54515397739 *sdkPco/PcoSdkVersion.h
822ae32b80e9a5d61e3ef4c31b4fd91b *sdkPco/PcoSdkVersion.log
No preview for this file type
No preview for this file type
......@@ -3,23 +3,24 @@
//-------------------------------------------| (*) header //
// Project | PCO | ( ) others //
//-----------------------------------------------------------------//
// Platform | Embedded System, PC //
// Platform | - Embedded platforms like M16C, AVR32, PIC32 etc. //
// | - PC with several Windows versions, Linux etc. //
//-----------------------------------------------------------------//
// Environment | All 'C'-compiler used at PCO //
// Environment | - Platform dependent //
//-----------------------------------------------------------------//
// Purpose | PCO - Error defines //
//-----------------------------------------------------------------//
// Author | FRE, MBL, LWA, PCO AG, Kelheim, Germany //
// Author | FRE, MBL, LWA, PCO AG, Kelheim, Germany //
//-----------------------------------------------------------------//
// Revision | rev. 05 rel. 02 //
// Revision | versioned using SVN //
//-----------------------------------------------------------------//
// Notes | This error defines should be used in every future //
// | design. It is designed to hold a huge range of //
// | errors and warnings //
//-----------------------------------------------------------------//
// (c) 2002 PCO AG * Donaupark 11 * D-93309 Kelheim / Germany //
// Phone: +49 (0)9441 / 2005-0 * Fax: +49 (0)9441 / 2005-20 //
// Email: info@pco.de * Web: www.pco.de //
// (c) 2003-2014 PCO AG * Donaupark 11 * D-93309 Kelheim / Germany //
// * Phone: +49 (0)9441 / 2005-0 * //
// * Fax: +49 (0)9441 / 2005-20 * Email: info@pco.de //
//-----------------------------------------------------------------//
......@@ -244,11 +245,16 @@ DWORD GetErrorSource(DWORD dwerr);
#define PCO_ERROR_FILEDLL 0x00120000 // error inside the file dll
#define PCO_ERROR_JAVANATIVEDLL 0x00130000 // error inside a java native dll
#define PCO_ERROR_PROGLIB 0x00140000 // error inside the programmer library
// ====================================================================================================== //
// -- 3.4 Application devices --------------------------------------------------------------------------- //
// ====================================================================================================== //
#define PCO_ERROR_CAMWARE 0x00100000 // error in CamWare (also some kind of "device")
#define PCO_ERROR_PROGRAMMER 0x00110000 // error in Programmer
// ====================================================================================================== //
// -- 4. Error Messages: -------------------------------------------------------------------------------- //
// ====================================================================================================== //
......@@ -297,7 +303,10 @@ DWORD GetErrorSource(DWORD dwerr);
#define PCO_ERROR_NOTINIT 0xA0000007 // The called module is not initialized
#define PCO_ERROR_DISKFULL 0xA0000008 // Disk full.
#define PCO_ERROR_VALIDATION 0xA0000010 // Validation after programming camera failed
#define PCO_ERROR_LIBRARYVERSION 0xA0000011 // wrong library version
#define PCO_ERROR_CAMERAVERSION 0xA0000012 // wrong camera version
// ------------------------------------------------------------------------------------------------------ //
// -- 4.2. Error codes generated by the driver: --------------------------------------------------------- //
// ------------------------------------------------------------------------------------------------------ //
......@@ -425,6 +434,7 @@ DWORD GetErrorSource(DWORD dwerr);
#define PCO_ERROR_APPLICATION_SET_VALUES 0x80004009 // Error setting values to camera
#define PCO_WARNING_APPLICATION_RECORDERFULL 0xC0004001 // Memory recorder buffer is full
#define PCO_WARNING_APPLICATION_SETTINGSADAPTED 0xC0004002 // Settings have been adapted to valid values
// ------------------------------------------------------------------------------------------------------ //
// -- 4.5. Error codes generated by Camera (Camera firmware): ------------------------------------------- //
......@@ -440,7 +450,7 @@ DWORD GetErrorSource(DWORD dwerr);
#define PCO_ERROR_FIRMWARE_WRONGSIZEARR 0x80001004 // wrong size in array
#define PCO_ERROR_FIRMWARE_DATAINKONSISTENT 0x80001005 // data is inkonsistent
#define PCO_ERROR_FIRMWARE_UNKNOWN_COMMAND 0x80001006 // unknown command telegram
#define PCO_ERROR_FIRMWARE_0x80001007 0x80001007 // free ...
//#define PCO_ERROR_FIRMWARE_0x80001007 0x80001007 // free ...
#define PCO_ERROR_FIRMWARE_INITFAILED 0x80001008 // FPGA init failed
#define PCO_ERROR_FIRMWARE_CONFIGFAILED 0x80001009 // FPGA configuration failed
......@@ -489,18 +499,27 @@ DWORD GetErrorSource(DWORD dwerr);
// the previous image transfer is pending
#define PCO_ERROR_FIRMWARE_COC_TRIGGER_INVALID 0x80001030 // COC Trigger setting invalid
#define PCO_ERROR_FIRMWARE_COC_PIXELRATE_INVALID 0x80001031 // COC PixelRate setting invalid
#define PCO_ERROR_FIRMWARE_COC_POWERDOWN_INVALID 0x80001032 // COC Powerdown setting invalid
#define PCO_ERROR_FIRMWARE_COC_SENSORFORMAT_INVALID 0x80001033 // COC Sensorformat setting invalid
#define PCO_ERROR_FIRMWARE_COC_ROI_BINNING_INVALID 0x80001034 // COC ROI to Binning setting invalid
#define PCO_ERROR_FIRMWARE_COC_ROI_DOUBLE_INVALID 0x80001035 // COC ROI to Double setting invalid
#define PCO_ERROR_FIRMWARE_COC_MODE_INVALID 0x80001036 // COC Mode setting invalid
#define PCO_ERROR_FIRMWARE_COC_DELAY_INVALID 0x80001037 // COC Delay setting invalid
#define PCO_ERROR_FIRMWARE_COC_EXPOS_INVALID 0x80001038 // COC Exposure setting invalid
#define PCO_ERROR_FIRMWARE_COC_TIMEBASE_INVALID 0x80001039 // COC Timebase setting invalid
#define PCO_ERROR_FIRMWARE_COC_PERIOD_INVALID 0x80001040 // COC modulate period time invalid
#define PCO_ERROR_FIRMWARE_COC_MONITOR_INVALID 0x80001041 // COC modulate monitor time invalid
#define PCO_ERROR_FIRMWARE_COC_TRIGGER_INVALID 0x80001030 // Camera trigger setting invalid
#define PCO_ERROR_FIRMWARE_COC_PIXELRATE_INVALID 0x80001031 // Camera pixel rate invalid
#define PCO_ERROR_FIRMWARE_COC_POWERDOWN_INVALID 0x80001032 // Camera powerdown setting invalid
#define PCO_ERROR_FIRMWARE_COC_SENSORFORMAT_INVALID 0x80001033 // Camera sensorformat invalid