Set Screen Label


ds_label_option [ID] [TEXTCOLOR] [BACKGROUND] [TEXT_DIMENSION]

Set text color,background and text dimension of the Label


ds_label_xy [ID] [X] [Y]

Set axis(XY) of then label


ds_label_dim [ID] [WIDTH] [HEIGHT]

Set Dimension of then Label


ds_label_close [ID]

Close Label


ds_label_set [ID] [TEXT] [VALUE] < [VARIABLE]

Print Label with Text and VALUE.

Example: Static Label

# LABEL SETUP
ds_label_option labelname black yellow 15
ds_label_xy labelname 180 60
ds_label_dim labelname 130 30
ds_label_set labelname Valve

Example: Dinamic Label

# SET VARIABLE
# LABEL SETUP
ds_label_option labelname black yellow 15
ds_label_xy labelname 180 60
ds_label_dim labelname 130 30
#VIEW LABEL
ds_label_set labelname Volt: 12 < voltage
#PAUSE:
sleep 10
# CLOSE LABEL
ds_label_close labelname

Read From MTM SERVER NODE

var voltage = 32
# CONNECT TO M2M Server
mtm_node MTM_BLOCK https://www.server.com/
mtm_create_node M2M_BLOCK
# LABEL SETUP
ds_label_option labelname black yellow 15
ds_label_xy labelname 180 60
ds_label_dim labelname 130 30
# DECLARE FUNCTION:
make_sub update
#LOAD FROM MTM SERVER
sub update mtm_load MTM_NODE acs gtest3
#READ FROM MTM Variables
# CONVERT MTM DATA IN VARIABLE
sub update var_mtm voltage < gtest3 acs
sub update ds_label_set labelname Volt: 12 < voltage
loop myloop 10 call update
sleep 300
close_loop myloop
end_script