1 #ifdef HAVE_PERKIN_ELMER
5 QxrdPerkinElmerPlugin::QxrdPerkinElmerPlugin()
9 QString QxrdPerkinElmerPlugin::name()
const
11 return "Perkin Elmer XRD Detector";
14 UINT QxrdPerkinElmerPlugin::Acquisition_SetCallbacksAndMessages(
15 HACQDESC pAcqDesc, HWND hWnd, UINT dwErrorMsg,
16 UINT dwLoosingFramesMsg,
void (CALLBACK *lpfnEndFrameCallback)(HACQDESC),
17 void (CALLBACK *lpfnEndAcqCallback)(HACQDESC))
19 return ::Acquisition_SetCallbacksAndMessages(pAcqDesc, hWnd, dwErrorMsg,
20 dwLoosingFramesMsg, lpfnEndFrameCallback,
24 UINT QxrdPerkinElmerPlugin::Acquisition_EnumSensors(
25 UINT *pdwNumSensors, BOOL bEnableIRQ, BOOL bAlwaysOpen)
27 return ::Acquisition_EnumSensors(pdwNumSensors, bEnableIRQ, bAlwaysOpen);
30 UINT QxrdPerkinElmerPlugin::Acquisition_GetNextSensor(
31 ACQDESCPOS *Pos, HACQDESC *phAcqDesc)
33 return ::Acquisition_GetNextSensor(Pos, phAcqDesc);
36 UINT QxrdPerkinElmerPlugin::Acquisition_SetAcqData(
39 return ::Acquisition_SetAcqData(hAcqDesc, AcqData);
42 UINT QxrdPerkinElmerPlugin::Acquisition_GetAcqData(
45 return ::Acquisition_GetAcqData(hAcqDesc, AcqData);
48 UINT QxrdPerkinElmerPlugin::Acquisition_GetCommChannel(
49 HACQDESC pAcqDesc, UINT *pdwChannelType,
int *pnChannelNr)
51 return ::Acquisition_GetCommChannel(pAcqDesc, pdwChannelType, pnChannelNr);
54 UINT QxrdPerkinElmerPlugin::Acquisition_Close(HACQDESC hAcqDesc)
56 return ::Acquisition_Close(hAcqDesc);
59 UINT QxrdPerkinElmerPlugin::Acquisition_CloseAll()
61 return ::Acquisition_CloseAll();
64 UINT QxrdPerkinElmerPlugin::Acquisition_DefineDestBuffers(
65 HACQDESC pAcqDesc,
unsigned short *pProcessedData,
66 UINT nFrames, UINT nRows, UINT nColumns)
68 return ::Acquisition_DefineDestBuffers(pAcqDesc, pProcessedData,
69 nFrames, nRows, nColumns);
72 UINT QxrdPerkinElmerPlugin::Acquisition_Abort(HACQDESC hAcqDesc)
74 return ::Acquisition_Abort(hAcqDesc);
77 UINT QxrdPerkinElmerPlugin::Acquisition_Acquire_Image(
78 HACQDESC pAcqDesc, UINT dwFrames, UINT dwSkipFrms,
79 UINT dwOpt,
unsigned short *pwOffsetData,
80 DWORD *pdwGainData, DWORD *pdwPxlCorrList)
82 return ::Acquisition_Acquire_Image(pAcqDesc, dwFrames, dwSkipFrms,
84 pdwGainData, pdwPxlCorrList);
87 UINT QxrdPerkinElmerPlugin::Acquisition_GetConfiguration(
88 HACQDESC hAcqDesc, UINT *dwFrames, UINT *dwRows, UINT *dwColumns, UINT *dwDataType,
89 UINT *dwSortFlags, BOOL *bIRQEnabled, DWORD *dwAcqType, DWORD *dwSystemID,
90 DWORD *dwSyncMode, DWORD *dwHwAccess)
92 return ::Acquisition_GetConfiguration(hAcqDesc, dwFrames, dwRows, dwColumns, dwDataType,
93 dwSortFlags, bIRQEnabled, dwAcqType, dwSystemID,
94 dwSyncMode, dwHwAccess);
97 UINT QxrdPerkinElmerPlugin::Acquisition_GetIntTimes(
98 HACQDESC hAcqDesc,
double *dblIntTime,
int *nIntTimes)
100 return ::Acquisition_GetIntTimes(hAcqDesc, dblIntTime, nIntTimes);
103 UINT QxrdPerkinElmerPlugin::Acquisition_GetActFrame(
104 HACQDESC hAcqDesc, DWORD *dwActAcqFrame, DWORD *dwActSecBuffFrame)
106 return ::Acquisition_GetActFrame(hAcqDesc, dwActAcqFrame, dwActSecBuffFrame);
109 UINT QxrdPerkinElmerPlugin::Acquisition_ResetFrameCnt(HACQDESC hAcqDesc)
111 return ::Acquisition_ResetFrameCnt(hAcqDesc);
114 UINT QxrdPerkinElmerPlugin::Acquisition_GetHwHeaderInfo(
115 HACQDESC hAcqDesc, CHwHeaderInfo *pInfo)
117 return ::Acquisition_GetHwHeaderInfo(hAcqDesc, pInfo);
120 UINT QxrdPerkinElmerPlugin::Acquisition_SetFrameSyncMode(
121 HACQDESC hAcqDesc, DWORD dwMode)
123 return ::Acquisition_SetFrameSyncMode(hAcqDesc, dwMode);
126 UINT QxrdPerkinElmerPlugin::Acquisition_SetTimerSync(
127 HACQDESC hAcqDesc, DWORD *dwCycleTime)
129 return ::Acquisition_SetTimerSync(hAcqDesc, dwCycleTime);
132 UINT QxrdPerkinElmerPlugin::Acquisition_SetCameraGain(
133 HACQDESC hAcqDesc, WORD wMode)
135 return ::Acquisition_SetCameraGain(hAcqDesc, wMode);
138 UINT QxrdPerkinElmerPlugin::Acquisition_SetCameraBinningMode(
139 HACQDESC hAcqDesc, WORD wMode)
141 return ::Acquisition_SetCameraBinningMode(hAcqDesc, wMode);
144 UINT QxrdPerkinElmerPlugin::Acquisition_GetCameraBinningMode(
145 HACQDESC hAcqDesc, WORD* wMode)
147 return ::Acquisition_GetCameraBinningMode(hAcqDesc, wMode);
150 UINT QxrdPerkinElmerPlugin::Acquisition_GetLatestFrameHeader(
151 HACQDESC hAcqDesc, CHwHeaderInfo *pInfo, CHwHeaderInfoEx *pInfoEx)
153 return ::Acquisition_GetLatestFrameHeader(hAcqDesc, pInfo, pInfoEx);
156 UINT QxrdPerkinElmerPlugin::Acquisition_GetHwHeaderInfoEx(
157 HACQDESC hAcqDesc, CHwHeaderInfo *pInfo, CHwHeaderInfoEx *pInfoEx)
159 return ::Acquisition_GetHwHeaderInfoEx(hAcqDesc, pInfo, pInfoEx);
162 UINT QxrdPerkinElmerPlugin::Acquisition_GbIF_Init(
163 HACQDESC *phAcqDesc,
int nChannelNr, BOOL bEnableIRQ, UINT uiRows, UINT uiColumns,
164 BOOL bSelfInit, BOOL bAlwaysOpen,
long lInitType, GBIF_STRING_DATATYPE* cAddress)
166 return ::Acquisition_GbIF_Init(phAcqDesc, nChannelNr, bEnableIRQ,
167 uiRows, uiColumns, bSelfInit, bAlwaysOpen,
168 lInitType, cAddress);
171 UINT QxrdPerkinElmerPlugin::Acquisition_GbIF_GetDeviceList(
172 GBIF_DEVICE_PARAM* pGBIF_DEVICE_PARAM,
int nDeviceCnt)
174 return ::Acquisition_GbIF_GetDeviceList(pGBIF_DEVICE_PARAM, nDeviceCnt);
177 UINT QxrdPerkinElmerPlugin::Acquisition_GbIF_GetDevice(
178 GBIF_STRING_DATATYPE* ucAddress, DWORD dwAddressType, GBIF_DEVICE_PARAM* pDevice)
180 return ::Acquisition_GbIF_GetDevice(ucAddress, dwAddressType, pDevice);
183 UINT QxrdPerkinElmerPlugin::Acquisition_GbIF_GetDeviceCnt(
186 return ::Acquisition_GbIF_GetDeviceCnt(plNrOfboards);
189 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
191 Q_EXPORT_PLUGIN2(qxrdperkinelmerplugin, QxrdPerkinElmerPlugin)
194 #endif // HAVE_PERKIN_ELMER