亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 006c6438a95f001d1289bbda6de18a35

?? Vxworks環境下
??
?? 第 1 頁 / 共 3 頁
字號:
/*$Log$*//*** ---------------------------------------------------------------------**                Copyright (c) Bosch Rexroth AG 1997 - 2007**                        All Rights Reserved** ---------------------------------------------------------------------****    File: dab_h_startgra.c** **    Responsible: AB** **    Description of functions:**                This file is the main File of the graphic task.**                It contain the needed steps to interface to NC Kernel**                on the basis of NCS and to interface to the Tilcon EVE**                There are a few platform-specific commands that need **                to be compiled into the program: **		  We define one of the following according to which **                platform we use:**                1. #define CC_TRT_DOS and #define HWDS_WINDOWS for**                        a Win32 applications**                                   OR**		  2. #define CC_TRT_VXWORKS for an applications running **                       on BRC Target whith Vxworks****					                           **                 in this file we will:**			  -  Start the  GUI task **			  -  Connect the GUI task to NCS   **			  -  InitializeApp (Start the Tilcon Engine EVE,**                        - Open channel to the EVE,Initialize Callbacks**                              Loead Window...)**			  -  wait for events from EVE**			  -  call callback Funktion as example to get **                           axis values, axis number....  ** ** ---------------------------------------------------------------------*//*F*/
/*======================================================================
**           >>>>    Include all necessary headfiles     <<<<
** ==================================================================== */
#include "dab_h_allheadfiles.h"
#include "dab_h_callbacks.h" /*the Header file with Callback Funktions*/
/*F*//*======================================================================**           >>>>    Local definitions               <<<<** ==================================================================== *//* Plattform specifacation for Tilcon EVE */#ifdef	CC_TRT_VXWORKS	     /* if the Engine (EVE) will run on Vxworks*/#define OS_TYPE TRT_VXWORKS#endif#ifdef CC_TRT_DOS	 /*if the Engine (EVE) will run on a windows PC*/#define OS_TYPE TRT_MS_WINDOWS			#endifEXPORT pid_t TRT_cid;EXPORT TRT_ReceiveData rec_data;EXPORT int EngineStatus;



/*
************************************************************************
** > AUTHOR        : Jiang
** > The define variable and function is only used in the CPL function test.  
*/
#define MAXWatchNr 40                 /*we can monitor only 40 watchponts at same time.*/

char    FileFoldBuf[100];             /*it will save Directory you select.*/
char Currentfileselect[20]=""; /*It will save the file name only.*/
long WatchPointRecordNr=0;            /*Use it help me to operate the Watchpoint record.*/         
struct  WatchPoint_ID{
	char Name[20];                    /*"@1"*/
	int  ID;						    /*save ID gived by system*/ 
	int  Index;                       /*watchpoint element place in the array.*/
	int  Value;                       /*watchpoint element value in the array.*/
}WatchPointRecord[MAXWatchNr];      /*Use it to Save the Watchpoint*/ 

/*Note: Some changing of MainEventLoop is to support the directroy tree*/
/*
************************************************************************
**This function can help us to get correct file path. 
**For example "\usr\user"--->"/usr/user"
*/
void ChangeChar(char *Setence,char oldchar, char newchar)   
{   
	char* p= Setence;   
	while(*p !='\0')   
	{   
		if(*p == oldchar)   
			*p = newchar;   
		p++;   
	}   	
}

void Find_PermVariable(char* source)
{
   char* Hold=source;
   char* p;
   char* q;
   q=Hold;
   while(*q!=0) q++;
   p=q;
   while(*p!='@')p--;
   TRT_SetValues(TRT_cid2, "WatchSelect",
		TRT_ATT_TEXT,p,
		NULL);
   
   
}/*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : ChangeConnectSymbol** ** >DESCRIPTION: this funktion is  an example function for Display and hid**                the connect Symbol on the Window** ** >NOTES:** ** >PARAMETER:   status =1 -> connected to target**                     =0 -> Disconnected** ** >RETURN VALUE:** ** >INCLUDES:** */LOCAL void ChangeConnectSymbol(char status){	long Error=0;	if (status ==1)	{		/* Hide the disconnected symbol */		Error=TRT_Hide(TRT_cid, DISCONNEC_SYMBOL_ICON_ID);		/* Display the connected symbol*/		Error+=TRT_Display(TRT_cid, CONNEC_SYMBOL_ICON_ID); 	}	else if(status==0)	{ /* Hide the connect symbol */		Error=TRT_Hide(TRT_cid, CONNEC_SYMBOL_ICON_ID); 		/* Display the disconnect symbol*/		Error+=TRT_Display(TRT_cid, DISCONNEC_SYMBOL_ICON_ID);	}	if(Error)	{/*Traitment of Error*/	}}  /* OF ChangeConnectSymbol *//*F*//*************************************************************************** >AUTHOR         : AB** FUNCTION NAME  : On_Chan_Lang_Button** ** >DESCRIPTION: Example function for changing the GUI Language* ** >NOTES:** ** >PARAMETER:** ** >RETURN VALUE:** ** >INCLUDES:** */LOCAL void On_Chan_Lang_Button(void)
{
	static char LanguageFlag=0;
	long Error=0;
	char TextBuffer[100];
	/*China Language */
	if(LanguageFlag==0) 
	{
		/* Call the Tilcon funkion to load a Language file in the GUI */
		/*the Language file coud be created with Tilcon Interface Builder.*/
		/* For mor informations see the Tilcon Help*/
		/* Load China Language*/
		Error= TRT_ChangeLanguage(TRT_cid,"HermesGuiLang_086.twl",0);
		/* Change the system Language */
		if(Ncs_Bap_IniWeraLang_Cmd("086")) /* 086 for China language*/
		{/* Traitement of the error*/}
		
		/**************   Example A  ***********************/
		/* Report an error or warning with a number xxxxx 
		** this number muss be previously intred into the WERA database
		** the begin of the error numbers is 100000*/ 
		
		Ncs_WeaSetErrWar(100004,/* Error Number*/
								/* note: the Error number mus be defined
								** and ties to an error text.*/  
								""); /* string used to specify the format of 
		**additional optional parameter */
		Ncs_WeaSetErrWar(100002,"");
		
		/**************   END Of Example A  ****************/
		
		/*************    Example B  *******************/
		/* get a text from NC and display it on the GUI */ 
		/*the text will be in the curent Language(in this case china Lang)*/
		/* if ther is no text defined to the text number you will get*/
		/*a default syntax= "Text fehlt"*/
		
		/* get the text from NC Kernel over NCS */
		Ncs_Bap_nlscat(40100, /*Text number*/         
			0,/*Codepage*/ 
			TextBuffer,/*pointer on the Buffer to store the text*/
			100);  /* Size of the text to store */
		
		/*set the Text on the GUI*/
		(void)TRT_SetValues (TRT_cid,
			"ErrorDeskr_Multitext1", 
			TRT_ATT_TEXT, 
			TextBuffer, NULL);
		/**************   END Of Example B  ****************/
		
		
		LanguageFlag=1; 
	}
	/* English Language*/
	else
	{
		LanguageFlag=0;
		/*Load English Language for GUI */
		Error= TRT_ChangeLanguage(TRT_cid,"HermesGuiLang_044.twl",0);
		/* Change the system Language */
		if(Ncs_Bap_IniWeraLang_Cmd("044")) /** 044 is for English*/
		{/* Traitement of the Error*/
		}
		/**************   Example A  ***********************/
		Ncs_WeaSetErrWar(100001,"Tetst1");
		Ncs_WeaSetErrWar(100002,"Tetst2");
		/**************   END Of Example A  ****************/
		
		/*************    Example B  *******************/
		/* get a text from NC and display it on the GUI */ 
		/*the text will be in the curent Language(in this case English)*/
		/* if ther is no text defined to the text number you will get*/
		/*a default syntax= "Text missing"*/
		
		/* get the text from NC Kernel over NCS */
		Ncs_Bap_nlscat(40013, /*Text number*/         
			0,/*Codepage*/ 
			TextBuffer,/*pointer on the Buffer to store the text*/
			100);  /* Size of the text to store */
		
		/*set the Text on the GUI*/
		(void)TRT_SetValues (TRT_cid,
			"ErrorDeskr_Multitext1", 
			TRT_ATT_TEXT, 
			TextBuffer, NULL);
		/**************   END Of Example B  ****************/
	}
	if(Error) 
	{
		/*Traitment of Error*/
		
	}
}  /* OF On_Chan_Lang_Button *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : ConnectGUItoNCS** ** >DESCRIPTION: Connect the GUI task to NCS** ** >NOTES: there is a deference in the call of NC_OPEN()**	   between the PC variante and the BRC Target variante. ** ** >PARAMETER:** ** >RETURN VALUE: No one** ** >INCLUDES:** */LOCAL void ConnectGUItoNCS(void){	Ncs_Mbx_t HMI_EventHandlerMailbox;/* MailBox for receive ncs Responce*/	#ifdef HWDS_WINDOWS	HWND    hWnd = (HWND) NULL;#endif	/* get the ID of the mail box of the event handler mailbox created	from event handler task*/  	dab_h_GetEvHanMailbox(&HMI_EventHandlerMailbox);	#ifdef HWDS_WINDOWS	/* for PC variante the hwnd is the ID of the Mailbox  */	hWnd = (HWND) HMI_EventHandlerMailbox;	/* Register the GUI-Task by NCS   */	/* for synchron and asynchron Requests */	/*the response of synchron requests will be Processed in this Task*/	/*the response of asynchron requests will be*/ 	/*  Processed in Event Handler Task*/	if (Ncs_Open(NCS_SYNC_LENT_C,/*synchronous and asynchronous requests */		/* For asynchronous requests, a socket that has */		/* already be created for asynchronous requests.*/		/* we use this parameter because an Ncs_open with*/		/* NCS_SYNC_ASYNC_C */		/*is already occurred in evant handler Task.*/		//  "192.168.1.186",  /* IP Adresse of the Target.*/
		"10.110.241.88",
		//"localhost",		/*change as necessary*/		hWnd,             /* Windows handle of the calling program*/		WM_ASYNC_READ,    /* Message that is sent to the*/ 		/*hWnd window in*/ 		/*the case of an asynchronous response.*/ 		/* The MessageNumber must be higher than*/		/* WM_USER + 0x100*/		/* we use  #define WM_ASYNC_READ (WM_USER+0x101);*/				5)   /*Time in seconds after which a timeout shall */		/*occur for a */		/*synchronous call. 0 disables the timeout.*/		!= Ncs_ErrOk)  			{		/* Error Traitement */ 		Ncs_WeaSetCritSysErr(0,"");	}#else                /* GUI is running on Target */	/*the NCS_Open will be called as below*/	if (Ncs_Open(		NCS_SYNC_LENT_C, 		&HMI_EventHandlerMailbox,		TRUE,   /*ResourceWaitMode:what to do if the Sendepuffer*/		/* is occupied bei belegten Sendepuffern.*/		/*    TRUE -> wait of free Sendebuffer*/		/*    FALSE-> dont wait,beack off with Error*/		0)     /*Time in seconds after which a */		/*timeout shall occur for a */		/*synchronous call. 0 disables the timeout.*/		!= Ncs_ErrOk)	{		/* Error Traitement */ 		Ncs_WeaSetCritSysErr(0,"");	}#endif}  /* OF ConnectGUItoNCS *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : Dab_h_WaitForEngineStart** ** >DESCRIPTION: the event handler task will try to open a channel to **              Tilcon EVE but for a communication with Tilcon EVE the EVE**             mus be started first.this function synchronise the start. ** ** >NOTES: this function will be called from event handler task **           in module dab_h_evhan.c** ** >PARAMETER: void** ** >RETURN VALUE: void ** ** >INCLUDES: "ab_h_startgra.h"** */EXPORT void Dab_h_WaitForEngineStart(void){	boolean WaitingForEngine= TRUE;		while (WaitingForEngine == TRUE)	{		if(EngineStatus == 0)		{			#ifndef HWDS_WINDOWS   			(void)Pxr_Delay(500,1);   /* Wait */#endif      			WaitingForEngine = TRUE;		}		else		{			WaitingForEngine = FALSE;		}	}	}  /* OF Dab_h_WaitForEngineStart *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  :  InitializeApp** ** >DESCRIPTION: Do everything that can be done before getting an event **               from outside.**               Start timers, clocks, etc.  Load/display primery windows.**               Update their objects.  Initialize data/structures.  **		 A local Tilcon EVE wil be launched.**		 we will open a channel to the EVE kernel (TRT_cid) and **               tell it to display the display the primery window **** ** >NOTES:       for more Information see the Tilcon Help** ** >PARAMETER: void** ** >RETURN VALUE: errorcode if an error is occurred else 0** ** >INCLUDES:** */LOCAL long InitializeApp(void){	long errorcode = 0;
		TRT_StartData StartData; /* Strucktur of start data */
		StartData.Os_Env  = OS_TYPE; /* Opereting system is seting at */	/*the beginning of this file */	StartData.Display	= NULL; /* we use 1 Display. muss be null */	StartData.IPAddr	= NULL;	/*IP addr if the Engine will be used in*/	/* a remote mode.Hier is NULL  */	StartData.AppName	= "HermesHMI"; /* the name of this aplikation */	/*if you change it hier you have*/ 	/*to change it in*/ 	/*dab_h_evhan.c too*/	StartData.Userprog 	= "GUI_TASK";  /* a name of user Programe*/ 	/*can be changed too*/	StartData.Flags		= FALSE;	
	errorcode =TRT_StartEx (0, &StartData); /* Start the Tilcon EVE */	if(errorcode)	{/*Traitment of Error*/	}		EngineStatus=1;       /* Engine is started ->*/	/* set the syncronisation signal*/		TRT_cid = StartData.TRT_CID; /*get the channel ID  GUITask <-> EVE */
			/*Ennable Blink */	errorcode = TRT_BlinkOn(TRT_cid, 1, 10);/*10x50=500ms on and 500ms off*/	if(errorcode)	{/*Traitment of Error*/	}		/*Load/display preliminary windows.*/	if(TRT_WindowLoad(TRT_cid, MAIN_WINDOW_FILE) )	{		/*Traitement of Error for example : Display Messagebox*/		return -1;	}
#ifdef HWDS_WINDOWS 
	/*Load/display preliminary windows.*/
	if(TRT_WindowLoad(TRT_cid, MOP_WINDOW_FILE) )
	{
		/*Traitement of Error for example : Display Messagebox*/
		return -1;
	}
#endif
	/*Initialize Callbacks.*/	/*For mor Information and example about*/ 	/*how does the callback mechanismus work*/	/*please see the Tilcon Help*/	errorcode = TRT_WindowCallbacks(TRT_cid,								MAIN_WINDOW_ID,								(char*)Callb_Struct_callback, 								sizeof(Callb_Struct_callback));	if(errorcode)	{/*Traitment of Error*/	}		if(TRT_WindowDisplay(TRT_cid, MAIN_WINDOW_ID) )	{		/*Traitement of Error*/			}
	
#ifdef HWDS_WINDOWS
	if(TRT_WindowDisplay(TRT_cid, MOP_WINDOW_ID) )
	{
		/*Traitement of Error*/
		
	}
#endif 
	
	return errorcode;}  /* OF  InitializeApp *//*F*//*************************************************************************** >AUTHOR        : AB**  FUNCTIONNAME  : MainEventLoop** ** >DESCRIPTION:stay in this loop until some event signals us to exit.  **              Check TRT_GetInput() to see if a Tilcon event occurred**              the event can be a notification from a button... **              If an event did occur, take appropriate  action. 	** ** >NOTES:  for more Information see the Tilcon Help** ** >PARAMETER: void** ** >RETURN VALUE: errorcode if an error is occurred else 0** 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美精品电影三级在线| 日本中文在线一区| 日本va欧美va瓶| 成人av在线播放网站| 欧美日韩www| 亚洲天堂网中文字| 国产精品一二三区在线| 欧美日韩免费一区二区三区视频| 国产欧美一区二区精品婷婷| 日韩中文字幕91| 欧美性大战久久久| **欧美大码日韩| 成人激情开心网| 国产日产欧美一区二区视频| 美女高潮久久久| 欧美一区二区精美| 亚洲一区二区中文在线| 91美女蜜桃在线| 亚洲视频你懂的| 99国产精品久久久久| 欧美激情在线观看视频免费| 国产精品影视在线| 精品动漫一区二区三区在线观看| 午夜精品123| 欧美日韩综合在线免费观看| 有码一区二区三区| 在线精品国精品国产尤物884a| 亚洲欧美精品午睡沙发| 色婷婷精品大视频在线蜜桃视频| 国产精品久久综合| 色视频一区二区| 亚洲精品中文在线观看| 91成人免费网站| 亚洲123区在线观看| 欧美一区二区三区在线看| 免费成人在线视频观看| 精品国内二区三区| 国产激情一区二区三区桃花岛亚洲| 国产日韩亚洲欧美综合| 国产高清亚洲一区| 亚洲丝袜精品丝袜在线| 欧美羞羞免费网站| 日本vs亚洲vs韩国一区三区二区| 日韩午夜三级在线| 国产乱一区二区| 亚洲日本韩国一区| 91精品一区二区三区久久久久久| 日本女人一区二区三区| 国产婷婷一区二区| 91丨九色丨蝌蚪富婆spa| 亚洲电影在线播放| 欧美精品一区二区三区四区| 成人激情图片网| 亚洲成人av资源| 国产午夜亚洲精品午夜鲁丝片 | 欧美经典三级视频一区二区三区| 国产不卡在线播放| 亚洲综合男人的天堂| 51精品久久久久久久蜜臀| 麻豆久久久久久| 中文字幕亚洲成人| 日韩一区和二区| av亚洲精华国产精华精| 日本视频一区二区三区| 中文字幕一区二区三区在线观看 | 91原创在线视频| 婷婷国产v国产偷v亚洲高清| 久久伊人蜜桃av一区二区| 日本高清不卡一区| 国产在线精品免费av| 夜色激情一区二区| 欧美经典三级视频一区二区三区| 欧洲国内综合视频| 国产成人精品一区二区三区四区| 亚洲私人影院在线观看| 欧美精品一区二区不卡| 欧美亚洲另类激情小说| 国产成人午夜电影网| 日日欢夜夜爽一区| 亚洲天堂2014| 欧美国产日产图区| 欧美r级电影在线观看| 欧美午夜视频网站| 99国产精品久| 丁香桃色午夜亚洲一区二区三区| 午夜婷婷国产麻豆精品| 综合欧美一区二区三区| 久久久精品国产免大香伊| 欧美高清激情brazzers| 色综合天天天天做夜夜夜夜做| 激情综合网激情| 天天射综合影视| 亚洲一区二区三区爽爽爽爽爽| 国产精品美女www爽爽爽| 久久综合一区二区| 日韩欧美精品三级| 在线不卡中文字幕播放| 欧洲一区二区av| 99久久久无码国产精品| 国产成人精品三级| 激情久久五月天| 青青草国产成人99久久| 日韩激情中文字幕| 亚洲自拍偷拍综合| 一区二区三区日本| 亚洲精品高清视频在线观看| 国产精品私人自拍| 国产三级精品三级| 久久九九久精品国产免费直播| 精品久久久久av影院| 日韩美女在线视频| wwww国产精品欧美| www亚洲一区| 国产天堂亚洲国产碰碰| 国产欧美综合在线观看第十页| 久久久精品中文字幕麻豆发布| 久久精品亚洲乱码伦伦中文| www一区二区| 国产精品乱码久久久久久| 国产精品成人午夜| 一区二区三区四区不卡在线 | 亚洲乱码国产乱码精品精小说| 国产精品日产欧美久久久久| 一区在线中文字幕| 亚洲精品综合在线| 亚洲丶国产丶欧美一区二区三区| 午夜免费久久看| 国内不卡的二区三区中文字幕| 国产乱码精品一品二品| 99久久精品国产麻豆演员表| 一本色道亚洲精品aⅴ| 欧美日韩一区二区三区不卡| 欧美一级免费大片| 亚洲精品一区二区三区影院| 国产视频一区二区在线| 自拍偷拍国产精品| 日韩不卡一二三区| 国产精品一区久久久久| www.久久久久久久久| 欧美天堂一区二区三区| 日韩一区二区三区四区五区六区| 国产午夜精品在线观看| 依依成人精品视频| 六月丁香婷婷色狠狠久久| 懂色av噜噜一区二区三区av| 在线观看一区二区视频| 精品国产凹凸成av人导航| 自拍偷拍亚洲激情| 久久爱另类一区二区小说| 99re这里只有精品首页| 欧美一区二区精品久久911| 中文字幕五月欧美| 久久成人免费电影| 色婷婷亚洲综合| 国产日韩视频一区二区三区| 一区二区三区精品在线观看| 国产九色精品成人porny| 精品视频在线免费观看| 国产调教视频一区| 青青草91视频| 在线视频你懂得一区二区三区| 日韩你懂的在线观看| 亚洲午夜免费福利视频| 成人夜色视频网站在线观看| 欧美精品一二三| 亚洲三级视频在线观看| 国产剧情av麻豆香蕉精品| 欧美一区二区三区免费在线看| 成人免费视频在线观看| 国产suv精品一区二区6| 日韩欧美在线网站| 亚洲国产欧美一区二区三区丁香婷| 国产成人精品亚洲午夜麻豆| 91精品国产综合久久精品| 亚洲最快最全在线视频| av动漫一区二区| 国产性天天综合网| 国产一区二区三区黄视频| 91精品久久久久久久99蜜桃| 一区二区三区在线高清| 成人精品gif动图一区| 久久免费国产精品 | 亚洲一区二区五区| 色综合网站在线| 亚洲天堂网中文字| 99久久国产综合色|国产精品| 久久久综合网站| 国产一区二区在线观看免费| 日韩欧美一区二区免费| 麻豆久久久久久久| 精品久久人人做人人爰| 免费人成在线不卡| 欧美成人性福生活免费看| 另类成人小视频在线| 欧美一级淫片007| 日本伊人精品一区二区三区观看方式 | 国产精品久久影院| 不卡欧美aaaaa| 一区二区三区资源| 欧美性一区二区|