실시간 테스트 그래프에 하나의 태그를 그래프 멤버로 추가한다.
void @TestGraphAddTag(string class_name, string tag, long color, int value_type, int point_type, int line_thick, int axis_pos, int level_from, int level_to, int tag_disp_size, int reverse_y);
함수인자
string class_name : 멀티트랜드의 오브젝트 고유 이름
string tag : 태그명 (AI or DI)
long color : 그래프 요소 색상 (@RGB 함수 사용)
int value_type : 그래프 표시값 (0-평균값, 1-최소값, 2-최대값, 3-적산값, 4-차이값, 5-순시값)
int point_type : 그래프 요소의 점 종류 (0-없음, 1-사각형, 2-원형, 3-삼각형, 4-마름모, 5-X표시, 6-+표시, 7-*표시)
int line_thick : 그래프 요소의 선굵기
int axis_pos : 눈금위치 (0-사용안함, 1-왼쪽, 2-오른쪽)
int level_from : 눈금 표시 시작위치(%)
int level_to : 눈금 표시 끝위치(%)
int tag_disp_size : 태그명 표시 크기
int reverse_y : 사용안함
반환 값
반환값은 없다.
예제
@TestGraphClear("TestGraph1");
@TestGraphAddTag("TestGraph1", "AI_0000", @RGB(255,0,0), 0, 0, 1, 1, 0, 100, 20, 0);
@TestGraphAddTag("TestGraph1", "AI_0001", @RGB(0,255,0), 0, 0, 1, 2, 0, 100, 20, 0);
@TestGraphAddTag("TestGraph1", "AI_0002", @RGB(0,0,255), 0, 0, 1, 2, 0, 100, 20, 0);
문장설명 : RealTimeTestGraph1 오브젝트의 모든 태그멤버를 삭제하고 AI_0000, AI_0001, AI_0002 태그를 멤버로 추가한다.
관련항목
@TestGraphBasisGraphTagClear()