{"id":6538,"date":"2022-11-04T15:13:56","date_gmt":"2022-11-04T07:13:56","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=6538"},"modified":"2024-04-23T15:26:29","modified_gmt":"2024-04-23T07:26:29","slug":"tsmaster-quick-start-1-system-variables","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/tsmaster-quick-start-1-system-variables\/","title":{"rendered":"Application Notes | TSMaster Quick Start (1) - System Variables"},"content":{"rendered":"
Variables that can be directly accessed by the user when using Panel, Scripting, Calibration, Diagnostics or other extended functions are defined as System Variables. According to the principle of system variable generation, there are two main types: Internal Variable and User Variable. Their main differences are:<\/p>
\u27a2 Endogenous system variables are automatically generated and released by the system, and users cannot directly add or delete them;<\/p>
\u27a2 User-defined variables are created and managed by the users themselves<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Endogenous system variables are automatically generated and released following the system. Common endogenous system variables are shown below:<\/p>
This type of variable is user-defined and the user can perform operations such as adding and deleting.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Name: The name of the variable.
Category: The group to which the variable belongs to, so that the user can manage the variable, the same name may be used in different applications.
Comment: Add some comments and descriptions to the variables.
Data Type: Variable types, including Plastic and Float. Expand for details.
ReadOnly: whether the variable is read-only or not, if it is read-only, the user cannot modify it.
Minimun Value: The minimum value allowed for this variable.
Maximum Value: The maximum value allowed for this variable.
Current Value: The current value of the variable.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
The significance of their respective representations is as follows: \u27a2 Int32 Array: integer 32-bit array type with array elements separated by ';'. Both endogenous and user-defined variables are accessed in exactly the same way. Two main application scenarios are described:<\/p> The Panel Associated System Variables process is shown in the figure above:<\/p> As shown in the above figure, in simple terms, the access to system variables mainly uses two types of functions, which are located under the APP directory of the applet Function.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t OVERVIEW PREFACE This paper gives an introduction to an important concept of TSMaster - system variables. System variables can be used to monitor signals, convey [...]<\/p>","protected":false},"author":11,"featured_media":6438,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[90],"tags":[131,236],"class_list":["post-6538","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-tutorial","tag-tsmaster","tag-236","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts\/6538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/comments?post=6538"}],"version-history":[{"count":0,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts\/6538\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media\/6438"}],"wp:attachment":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media?parent=6538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/categories?post=6538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/tags?post=6538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
Int32: Signed 32-bit type, can cover Int8, Int16, etc.
UInt32: Unsigned 32-bit type that covers UInt8, UInt16 and other data types.
Int64: Signed 64-bit data type.
UInt64: Unsigned 64-bit data type.
UInt8 Array: Unsigned 8-bit array, also known as the most commonly used Byte array. For data types, when assigning values, theArray elements are separated by ';'.<\/span>, as shown below, is equivalent to an array defined as:
UInt8 Var6[5] = {12,34,56,78,90};<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\u27a2 Int64 Array: integer 64-bit array type with array elements separated by ';'.
\u27a2 Double: Double precision data type.
\u27a2 double Array: double precision array type, array elements are separated by ';'.
\u27a2 string: string data type.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t5. Access to system variables<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t