码迷,mamicode.com
首页 > 其他好文 > 详细

DownLoad Datalog

时间:2018-12-26 11:49:00      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:put   follow   inf   release   for   rem   infinite   not   time   

CSTRING_VARIABLE(CASE_FOLDER, "", ""){}

CSTRING_VARIABLE(DYNAMIC_DATALOG_PATH, "", "DYNAMIC_DATALOG_PATH"){}

BOOL_VARIABLE(UI_CREATE_DATALOG_FILE_FLAG, 1, "UI_Create_Datalog_File_Flag")
{
	if (UI_CREATE_DATALOG_FILE_FLAG)
	{
		remote_set(UI_DATALOG_SITE, 1, site_num(), TRUE, INFINITE);
	}
	else
	{
		remote_set(UI_DATALOG_SITE, 0, site_num(), TRUE, INFINITE);
	}
}
BOOL_VARIABLE(UI_DATALOG_SITE, 0, "")
{
	if (UI_DATALOG_SITE)
	{
		CString s1, s3;	
		if (FAB == "SINO")
		{
			s3.Format("\\site%d", site_num());
			s1 = CASE_FOLDER + s3 + ".txt";
		}
		else
		{
			s3.Format("\\site%d_", site_num());
			s1 = CASE_FOLDER + s3 + CTime::GetCurrentTime().Format("%H%M%S") + ".txt";
		}
		remote_set("ui_OutputFile", s1, -1, TRUE, INFINITE);
		remote_set("ui_ClearAtTestStart", 1, -1, TRUE, INFINITE);

		s1.ReleaseBuffer();
		s3.ReleaseBuffer();
		CL_Comment("[Tip 0002] UI_site_datalog opened");
	}
	else
	{
		CL_Comment("[Tip 0001] UI_site_datalog closed");
	}
}
BOOL_VARIABLE(UI_DATALOG_HOST, 0, "")
{
	if (UI_DATALOG_HOST)
	{
		CString s2;
		CL_Comment("[Tip 0004] UI_host_datalog opened");
		s2 = CASE_FOLDER;

		CString f = "/HOST.TXT";
		s2 += f;

		remote_set("ui_OutputFile", s2, -1, TRUE, INFINITE);
		s2.ReleaseBuffer();
	}
	else
		CL_Comment("[Tip 0003] UI_host_datalog closed");
}
VOID_VARIABLE(Clear_Host_Variable, "")
{
	if (OnHost() && sender == 1)
	{
		tblk_list.RemoveAll();
		for (int i = 0; i < 64; i++)
		{
			Host_curr_dut_fail_mask[i].RemoveAll();
			Host_curr_dut_mask[i].RemoveAll();
		}
	}
}

  Then while you called 

remote_set(UI_CREATE_DATALOG_FILE_FLAG,TRUE,site_num(), TRUE, INFINITE);

  The Current Datalog would save down to your target CASE_FOLDER, The way to setup the CASE_FOLDER as following

for (int SiteCntr = 0; SiteCntr <= Max_Site; SiteCntr += SITE_PER_CONTROLLER_NUM)
	{
		remote_set(CASE_FOLDER, "C://Datalog", SiteCntr, FALSE);
	}

  Need to Notice that we should remote_set the case folder setup site by site here

DownLoad Datalog

标签:put   follow   inf   release   for   rem   infinite   not   time   

原文地址:https://www.cnblogs.com/GNOPS/p/10177886.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!