15 const char *
CCD_Err[] = {{
" Camera Not Found "},
17 {
" Unsupported Platform"},
18 {
" Interface Locked"},
19 {
" Platform Definition File not found '.cfg' "},
20 {
" CCD Definition not found '.cfg' "},
21 {
" FW error, zero position not found"},
22 {
" Pattern generator overflow"},
23 {
" Memory allocation error in DMA"},
24 {
" Serializer not linked"},
25 {
" Invalid serial decoder identifier"},
26 {
" Unsupported platform in array mode"},
27 {
" Invalid Handle in WD_Open()"},
28 {
" Windriver license string not valid"},
29 {
" FDL-PCI card not found"},
30 {
" Memory (image) allocation error"}};
34 const char *
DE_Err[] = {{
" DE Not Found "}};
36 const char *
AMS_Err[] = {{
" AMS1 Not Found "},
42 {
" Slope Not Enabled "},
43 {
" AMS3 Not Found "}};
46 const char *
DAS_Err[] = {{
" File 'PARAM.INI' loaded OK "},
47 {
" File 'AMS.INI' loaded OK "},
48 {
" File 'Param.INI' not found "},
49 {
" Init CCD and or AMS failed "},
50 {
" Platform Definition File not found '.cfg' "},
51 {
" CCD Definition not found '.cfg' "},
52 {
" FW error, zero position not found"},
53 {
" Pattern generator overflow"},
54 {
" Memory allocation error in DMA"},
55 {
" Serializer not linked"},
56 {
" Invalid serial decoder identifier"},
57 {
" Unsupported platform in array mode"},
58 {
" Invalid Handle in WD_Open()"},
59 {
" Windriver license string not valid"},
60 {
" FDL-PCI card not found"},
61 {
" Memory (image) allocation error"}};
66 {
" MASTER file Not Found "},
67 {
" MASTERSZA file Not Found"},
68 {
" SZAPRG file Not Found "}};
79 sprintf(buf,
"DAS WARNING");
103 if(w < -4 || w > -1)
return;
139 MMessageDialog (
"DAS ERROR",
"File '.\\Config\\Param.INI' not found,\n The program will be closed.\n You have to build the DAS.Paramini.INI and restart the Program ",
"OK",NULL);
143 MMessageDialog (
"DAS ERROR",
"Init CCD and or AMS failed ",
"OK",NULL);
175 sprintf(buf,
"IE_BADID");
180 sprintf(buf,
"IE_OPEN");
185 sprintf(buf,
"IE_NOPEN");
190 sprintf(buf,
"IE_MEMORY");
195 sprintf(buf,
"IE_DEFAULT");
200 sprintf(buf,
"IE_HARDWARE");
205 sprintf(buf,
"IE_BYTESIZE");
210 sprintf(buf,
"IE_BAUDRATE");
215 sprintf(buf,
"WSC_NO_DATA");
220 sprintf(buf,
"WSC_RANGE ");
225 sprintf(buf,
"WSC_ABORTED");
230 sprintf(buf,
"WSC_WIN32ERR");
235 sprintf(buf,
"WSC_EXPIRED");
259 if(w < 0 || w > 7)
return;
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
gui Gui
Graphic User Interface Structure.
shells Shells
Shells structure.
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
void MShellRealize(MOBJECT obj)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
MOBJECT Sh_Main
Main shell for control panel.
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
void DAS_Message(char *str, int er)
void MShellUnrealize(MOBJECT obj)
void MShellDestroy(MOBJECT obj)
const char * Master_Err[]
void Status(char *tit)
Writes information's on the Status label .
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
MOBJECT MCreateShell(const char *title, int flags)
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
void ComErrors(int w)
Alerts for COM errors Creates a message window reporting the number of the error. ...
short DB_BG[3]
Default Background Color.
void MLabelSetAlignment(MOBJECT p, int align)
void AMS_Error(int w)
Alerts for AMS errors Creates a message window reporting the number of the error. ...
int D_WriteInitLog(char *str)
writes devices errors(AMS, CCD...) on the Devices.log file.
void CCD_Error(char *str)
Alerts for CCD errors Creates a message window reporting the number of the error. ...
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)