½Ç½Ã°£ Å×½ºÆ® ±×·¡ÇÁ¿¡¼ ƯÁ¤ ¸â¹öÀÇ Æ÷ÀÎÆ® °ªÀ» Àоî¿Â´Ù.
int @TestGraphGetValue(string classname, int member_pos, int point_pos, double value);
ÇÔ¼öÀÎÀÚ
string classname : ½Ç½Ã°£ Å×½ºÆ® ±×·¡ÇÁÀÇ Å¬·¡½º À̸§
int member_pos : ½Ç½Ã°£ Å×½ºÆ® ±×·¡ÇÁÀÇ ¸â¹ö À§Ä¡ (¸â¹ö°¡ 3°³°¡ ÀÖ´Ù¸é 0,1,2 ¼¼°³ÀÇ À§Ä¡ Áß¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Ù.)
int point_pos : ¸â¹öÀÇ Æ÷ÀÎÆ® À§Ä¡°ª (º¸±â¹üÀ§°¡ 60À̶ó¸é 0~59±îÁöÀÇ °ª Áß¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Ù.)
double value : Àоî¿Ã º¯¼ö
¹Ýȯ °ª
1À» returnÇÏ¸é µ¥ÀÌÅ͸¦ Àоî¿Ô°í 0À» ¹ÝȯÇÏ¸é µ¥ÀÌÅ͸¦ Àоî¿ÀÁö ¸øÇß´Ù.
¿¹Á¦
@DialogSetDir("c:\\catdata\\milidata\\AI3°³");
@DialogSetFilter("MDB files (*.mdb)|*.mdb|");
if(@DialogFileOpen(filename) == 0) return;
@TestGraphClearData("TestGraph1");
@TestGraphSetData("TestGraph1", filename, "Data", "AI_0000", 0, "[Data Count]");
@TestGraphSetData("TestGraph1", filename, "Data", "AI_0001", 1, "[Data Count]");
@TestGraphStop("TestGraph1");
for(i = 0; i < 60; i=i+1) {
retn = @TestGraphGetValue("TestGraph1", 0, i, value);
if(retn == 1) {
value = @pow(2, value-680);
@TestGraphSetValue("TestGraph1", 2, i, value);
}
}
@ModuleInvalidate("startup.modx");
¹®Àå¼³¸í : ½Ç½Ã°£ Å×½ºÆ® ±×·¡ÇÁÀÇ µ¥ÀÌÅ͸¦ 0¹ø° ¸â¹ö´Â AI_0000Ä÷³°ªÀ¸·Î 1¹ø° ¸â¹ö´Â AI_0001Ä÷³°ªÀ¸·Î 2¹ø° ¸â¹ö´Â 0¹ø ¸â¹öÀÇ °ªÀ» °è»êÇÏ¿© »ç¿ëÇÑ´Ù.
°ü·ÃÇ׸ñ
@TestGraphBasisGraphTagClear()