DownLoad Datalog

Posted gnops

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DownLoad Datalog相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Datalog 的单面统一是不是足够?

16个必备的JavaScript代码片段

Docker部署Zookeeper容器

用php下载一个svg

jQuery:从json响应中获取订单ID [重复]

无法打开数据库‘Data’.恢复操作已将数据库标记为SUSPECT。