{"id":106750,"date":"2024-02-07T15:04:30","date_gmt":"2024-02-07T07:04:30","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=106750"},"modified":"2024-02-27T14:47:24","modified_gmt":"2024-02-27T06:47:24","slug":"how-to-exchange-data-between-tmcraft-toolbar-and-tmcraft-node","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/ja\/docs\/how-to-exchange-data-between-tmcraft-toolbar-and-tmcraft-node\/","title":{"rendered":"How to Exchange Data Between TMcraft Toolbar and TMcraft Node"},"content":{"rendered":"
Examples are valid for:<\/p>\n
TMflow Software version:<\/p>\n
TM Robot Hardware version: Only Support HW3.2 or above<\/p>\n
Other specific requirements: None<\/p>\n
Note that older or newer software versions may have different results.<\/p>\n
This document demonstrates an example of developing two types of GUIs and defining a text file to exchange data between these GUIs in TMflow. The integrated development environment is Visual Studio 2022. These GUIs can be plugged into TMflow. One of the plug-in GUIs is named TMcraft Toolbar<\/u><\/strong>, and the other one is named TMcraft Node<\/u><\/strong>.<\/p>\n TMcraft Toolbar is a floating window. Users can use this floating window anywhere and anytime in TMflow, as shown below:<\/p>\n <\/p>\n TMcraft Node is a node defined by the user for both functionality and interface. It can be plug-in to the control flow of TMflow. As shown below:<\/p>\n <\/p>\n We created a TMcraft Node (First_TMcraft_Node). Users can find it in the Node List<\/u><\/strong> under the TM_Default group. The user-defined GUI will be open by clicking the edit button after dragging and dropping First_TMcraft_Node into the Flow project.<\/p>\n We create a text file to share data between TMflow Toolbar and TMcraft Node, the format of the text file is XML, and the content is very simple for this example. Each data has one Name and one Value. TMflow Toolbar will edit this text file, and TMcraft Node will display the edited result, as shown below:<\/p>\n We designed the GUI of the TMcraft Toolbar to be able to edit this XML text file. Users can add and delete variables within the XML text file. The TMcraft Toolbar will instantly save the editing results to the XML file, as shown in the figure below:<\/p>\n The TMcraft Node will read the data from the XML file. Each TMcraft Node can select a variable, and TMflow is responsible for saving the variable selected by the Node, as shown in the figure below:<\/p>\n The design details of the TMcraft Node as shown below :<\/p>\n <\/p>\n Users can set parameters through the TMcraft Node. If the Ok button is pressed, the current editing results can be saved through the database provided by TMflow. The next time you open this Node, you can retrieve the last setting results by reading the database, as shown in the figure below:<\/p>\n <\/p>\n The details of implement please refer to the following description.<\/p>\n It is essential to download TMcraft and the development kit first to get more information about TMcraft. Please visit the Techman official website and download TMcraft_Development Kit_2.16 or later. in Download Center > Support Softwate > TMcraft<\/u><\/strong>.<\/p>\n FILE REQUIRED :\u00a0 Download the Visual Studio project that will be implemented in this technical document after completing the download process of the TMcraft Development Kit.<\/p>\n Download : TMcraft_Solution.zip \u00a0 <\/span><\/a> TMflow Software version:<\/p>\n TM Robot Hardware version: Only Support HW3.2 or above.<\/p>\n We will separate this application into 5 parts:<\/p>\nTMcraft Toolbar<\/h2>\n
<\/a><\/p>\nTMcraft Node<\/h2>\n
<\/a><\/p>\nHow to Share and Exchange Data Between TMcraft Toolbar and TMcraft Node ?<\/h2>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a>The design details of the TMcraft Toolbar GUI as shown below:<\/p>\n\n
<\/a><\/p>\n\n
<\/a><\/p>\nWhere to Find TMcraft and Development Kit ?<\/h2>\n
<\/a><\/strong><\/p>\n
<\/a><\/p>\nEnvironment<\/h1>\n
\n
Implement Scope<\/h1>\n