{"id":6557,"date":"2022-10-28T15:44:33","date_gmt":"2022-10-28T07:44:33","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=6557"},"modified":"2024-04-23T15:26:27","modified_gmt":"2024-04-23T07:26:27","slug":"tsmaster-introduction-to-the-graphics-editing-panel-function-module","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/tsmaster-introduction-to-the-graphics-editing-panel-function-module\/","title":{"rendered":"Application Notes | TSMaster - Introduction to the Graphics Editing Panel Function Module"},"content":{"rendered":"
1. Mode selection button, mainly contains the following modes: 2. Cascade control 3. Alignment controls Alignment options are available:<\/p> Align Left<\/p> Align Right<\/p> Align Top<\/p> \u27a2 Align Buttom: Under Alignment<\/p> Center Horizontally: align horizontally with the center module.<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Taking the coordinates of the leftmost and rightmost one controls, the average of the spacing between controls is calculated and then evenly spaced in the horizontal direction.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 4. New Panel 5. Loading configuration 6. Storage configuration 7. Panel Parameter Configuration 6. Show links to variables associated with controls TSMaster provides a rich Panel interface. By associating variables, it is possible to modify the value of a variable, or present the modified value on the UI interface, which is easy to understand. If you want to realize that the TSMaster software sends a string of messages when a key is pressed, you need to work with C script to implement the UI event mechanism.<\/p> UI Event Mechanism 1. Why does the DBC parse correctly, but the control on the panel does not display correctly?<\/strong><\/p> Problem Description:<\/span> Check the signal definition, because the range of signal value definition is 0-100, the unit is \"%\", the parsed signal value is 12%, which means the signal value is 12, and then the unit is the string \"%\", not the signal value is 0.12. Therefore, the range of the dashboard should be 0-100, which is the same as the range in the signal definition. \"Therefore, the range of the dashboard should be 0-100, which is the same as the range in the signal definition. If the range of the dashboard is set to 0-1, then when the signal value is 12%, the dashboard will of course display the maximum value of 1.<\/p> Solution:<\/span> \u00a0<\/p> 2. Why can't I see any signals when I associate signals through Panel after adding DBC?<\/strong><\/p> Problem Description: \u00a0<\/p> As you can see, there are messages, signals, etc.<\/p> In the panel, add InputOutputBox and select associate a CAN signal, the result interface is as follows:<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t \u00a0<\/p> At this point, if you associate the signal with a single memory display control, such as Progressbar, you can see the signal.<\/p> Cause analysis: \u00a0<\/p> As can be seen, the number of nodes is 0, i.e. there are not any sending and receiving nodes. In this case it is not possible to start the RBS simulation because there are no generating nodes and no signals related to the transmitting nodes can be seen.<\/p> Solution: \u00a0<\/p> 3. no scrollbars visible in Panel \u00a0<\/p> Cause analysis: \u00a0<\/p> Solution: \u00a0<\/p> You can see that the scrollbars (vertical + horizontal) have reappeared on the form as shown below:<\/p><\/section><\/section> overviewPreface The TSMaster graphical editing panel allows users to develop their own graphical windows for handling the sending and receiving of messages, signal parsing [...]<\/p>","protected":false},"author":11,"featured_media":6583,"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,265,264,172],"class_list":["post-6557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-tutorial","tag-tsmaster","tag-265","tag-264","tag-172","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\/6557","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=6557"}],"version-history":[{"count":0,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/posts\/6557\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media\/6583"}],"wp:attachment":[{"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/media?parent=6557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/categories?post=6557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tosunai.com\/en\/wp-json\/wp\/v2\/tags?post=6557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
<\/strong>(1) When you press state, the current Panel is in editing mode, users can add or delete controls and edit control properties.
(2) Pop-up state, the current Panel is in test run mode, the display is the actual running state of the panel, the user can not edit.
(3) Gray state, the current Panel is in running state. It means that the TSMaster is currently running with the device connected. If you want to re-edit the interface, you have to disconnect the TSMaster to enter the editing state.<\/p>
<\/strong>Moving controls to the front and moving controls to the back when there is a control cascade.<\/p>
<\/strong>Control alignment is a two-step process:
1) First select multiple controls that need to be aligned: hold down the Ctrl key and mouse click on multiple buttons, then select multiple controls. As shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>Creates a brand new Panel, which removes all existing controls from the Panel.<\/p>
<\/strong>Loads an existing Panel configuration file.<\/p>
<\/strong>Stores the current Panel configuration file.<\/p>
<\/strong>It mainly contains the following parameter configurations:
\u27a2 Feature Enable: whether to enable Panel
Layout: The overall layout of the controls inside the Panel.
\u27a2 Design Time: whether or not to show link labels and control names at design time
Refresh Rate: Configure the refresh time of the Panel data. The recommended refresh time is 300ms, if the computer configuration is higher, you can configure a higher refresh rate.<\/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\t2. Basic control operation<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
2. Delete controls
<\/strong>Directly Delete the key, or right-click and select Delete in the shortcut menu.<\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
3. Mobile controls<\/strong>Controls will have their own container, in the container range, want to adjust the position, directly select the control, left click and hold, move can be. As shown below:<\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
4. Moving outside the packaging
<\/strong>TSMaster does not support direct drag and drop outside the container, if you want to move the control out easily, you can use cut (Ctrl+X) + paste (Ctrl+V) can be used to move the control outside the container.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
5. Display control type name
<\/strong>In the Design Time phase, the default is to display the name of the control (this name is the unique ID of the control, which is assigned by default, cannot be modified, and is not visible at runtime), as shown in the following figure:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>In the Design Time phase, the user can set up the display of the variables (CAN\/LIN signals or system variables, etc.) associated with the current control, so that the designer has a clear idea of the current signal values associated with the control, as shown in the figure below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t3. UI events<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>The event mechanism of Panel is shown in the following diagram:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t4. Clearance of doubts<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Why does the signal value DBC parse out as 12%, but the dashboard always shows 1.0 (100%)<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Set the properties of the gauge control and adjust the display range of the control to be the same as the range of the signal. Adjust the range from 0-1 to 0-100, after adjusting, the meter display is normal.<\/p>
<\/span>Example database loaded: TOSUN_Hardware_Synthesize<\/p><\/section>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/span>The InputBox is the input signal that logically needs to be modified and sent to the bus, and therefore must be associated to the CAN signal of a transmitting node. Then we move on to this database:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/span>Add the sender node and associate the message and signal to the sender node, and you can see the signal.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/strong>When designing Panel, there is a situation where you can't see the form and you can't see the scrollbars (vertical+horizontal). If the form area is very large, beyond the screen display range, there will be a part of the form is obscured. This is shown below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/span>The computer screen is set to zoom in and out, causing the control to internally fail to correctly calculate the size relative to the screen, and therefore failing to display the scrollbars correctly. Check your computer settings as follows:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
<\/span>Turn off screen zoom, set zoom to 100%, and restart the software to see the form's scrollbars again.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t