<DrawPage name="仪表说明" bk_transparent="0" bk_color="0;0;255" bk_image="Images\帮助\帮助单页.jpg" size_option="0" width="800" height="480"><item name="Button1" id="4" type="button" button_type="0" focus="0" notify_disable="0" key_code="a" key_type="0" init_state="0" button_style="0" longpress_delay="0" url_down="" url_up="" popup_menu_id="0" input_text_id="0" switch="仪表" switch_effect="2" switch_area="0" switch_area_left="0" switch_area_right="0" switch_area_top="0" switch_area_bottom="0" action="" xOffset="1" yOffset="1" width="105" height="59" cut_up="0" cut_up_offset_x="0" cut_up_offset_y="0" cut_down="0" cut_down_offset_x="0" cut_down_offset_y="0" custom_data_up="" custom_data_down="" external_data_up="" external_data_down="" external_data_delay="100" child_screen="0" need_login="0" login_password="888888" show_text_state="0" font="7" font_color_up="255;255;255" font_color_down="255;255;255" text_state_up="" text_state_down="" bind_variant=""/><item name="Text3" id="6" type="text" multi_lang="1" text_align="0" text_align_v="0" text="void Set_picMeterValue(uint16 screen_id,uint16 control_id,uint16 value); //图片指针的API
void SetMeterValue(uint16 screen_id,uint16 control_id,uint32 value); //指针控件的API" text1="" text2="" text3="" text4="" text5="" text6="" text7="" text8="" text9="" text10="" text11="" text12="" text13="" text14="" text15="" font="8" encode="0" show_bk="0" fore_color="0;0;128" bk_color="255;255;255" xOffset="39" yOffset="359" width="676" height="106" row_gap="0" col_gap="0"/><item name="Text1" id="1" type="text" multi_lang="1" text_align="0" text_align_v="0" text="1.通过LUA脚本控制指针：
LUA脚本实现如下：









2.下位机MCU也可以通过仪表的API函数向上位机发送数据：" text1="" text2="" text3="" text4="" text5="" text6="" text7="" text8="" text9="" text10="" text11="" text12="" text13="" text14="" text15="" font="8" encode="0" show_bk="0" fore_color="0;0;0" bk_color="255;255;255" xOffset="42" yOffset="68" width="709" height="397" row_gap="0" col_gap="0"/><item name="Text2" id="2" type="text" multi_lang="1" text_align="0" text_align_v="0" text="function on_timer(timer_id)
if  meter_flag  ==0      then
     set_value(6,2,meter_value)      
     meter_value = meter_value+2   
end
if  meter_flag ==1       then
     set_value(6,2,meter_value) 
     meter_value = meter_value-2 
end" text1="" text2="" text3="" text4="" text5="" text6="" text7="" text8="" text9="" text10="" text11="" text12="" text13="" text14="" text15="" font="8" encode="1" show_bk="0" fore_color="0;0;128" bk_color="255;255;255" xOffset="41" yOffset="114" width="643" height="233" row_gap="0" col_gap="0"/></DrawPage>
