TWI787728B - Method for generating a human-machine interface, computer program product and human-machine interface device - Google Patents

Method for generating a human-machine interface, computer program product and human-machine interface device Download PDF

Info

Publication number
TWI787728B
TWI787728B TW110103599A TW110103599A TWI787728B TW I787728 B TWI787728 B TW I787728B TW 110103599 A TW110103599 A TW 110103599A TW 110103599 A TW110103599 A TW 110103599A TW I787728 B TWI787728 B TW I787728B
Authority
TW
Taiwan
Prior art keywords
machine interface
interface
human
visual programming
man
Prior art date
Application number
TW110103599A
Other languages
Chinese (zh)
Other versions
TW202230105A (en
Inventor
莊育棋
洪政鴻
張育銘
陳加輝
蔡彰寧
郭昭宏
何永慈
Original Assignee
博橡科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 博橡科技股份有限公司 filed Critical 博橡科技股份有限公司
Priority to TW110103599A priority Critical patent/TWI787728B/en
Publication of TW202230105A publication Critical patent/TW202230105A/en
Application granted granted Critical
Publication of TWI787728B publication Critical patent/TWI787728B/en

Links

Images

Abstract

The present invention provides a method for generating a human-machine interface, a computer program product and a human-machine interface device. The method for generating a human-machine interface includes: at a computing device, generating a visual programming interface for an operation of a graphical control component on a development interface of a human-machine interface, the visual programming interface being displayed on a display device in communication with the computing device, wherein the visual programming interface includes multiple graphical elements each associated with an instruction code element, configured to be connected with other graphical element on the visual programming interface to generate computer code; and receiving a command through the computing device to deposit at least one graphical element on the visual programming interface to generate an instruction code associated with the operation.

Description

人機介面開發方法、電腦程式產品以及人機介面裝置Man-machine interface development method, computer program product, and man-machine interface device

本發明涉及資訊技術領域,尤其涉及一種人機介面開發方法、人機介面開發的電腦程式產品,以及人機介面裝置。The present invention relates to the field of information technology, in particular to a man-machine interface development method, a computer program product for man-machine interface development, and a man-machine interface device.

人機介面(Human-Mankind Interface)是機器與使用者之間的介面,透過人機介面,使用者可對機器輸入操作指令,而機器可透過人機介面將操作指令的執行狀況回饋給使用者。此外,透過人機介面,機器也可隨時回報內部系統狀況給使用者。隨著科技發展,工業運作型態以及日常生活皆大量數位化,從而市場上對於人機介面的需求也越來越普及。因此,提供操作便利的人機介面開發環境成為本領域的重要發展目標之一。Human-Machine Interface (Human-Mankind Interface) is the interface between the machine and the user. Through the human-machine interface, the user can input operation instructions to the machine, and the machine can feedback the execution status of the operation instruction to the user through the human-machine interface. . In addition, through the man-machine interface, the machine can also report the internal system status to the user at any time. With the development of science and technology, industrial operations and daily life are digitized, and the demand for human-machine interface in the market is becoming more and more popular. Therefore, providing a man-machine interface development environment with convenient operation has become one of the important development goals in this field.

傳統的人機介面開發是以程式碼作為工具,通常需要撰寫大量程式碼以開發出一個人機介面,耗時且耗人力。隨著對人機介面開發環境的需求增加,習知技術中已普遍發展出圖形化介面的人機介面設計平台,其中藉由拖曳圖形介面應用程式(widget)至設計介面上即可完成人機介面的佈置。然而,習知的人機介面中,每一圖形介面應用程式之間的互動以及與所控制機器之間的互動仍必須藉由撰寫程式碼來實現。因此,現有技術中,人機介面的設計者必須熟習某一程式語言,增加了人機介面設計的技術門檻與開發成本。此外,程式設計難以避免編碼錯誤,而必須進行偵錯,進一步增加了開發的成本。Traditional human-machine interface development uses code as a tool, and usually requires writing a large amount of code to develop a human-machine interface, which is time-consuming and labor-intensive. As the demand for the development environment of the man-machine interface increases, a man-machine interface design platform with a graphical interface has been generally developed in the prior art, in which the man-machine interface can be completed by dragging the graphical interface application program (widget) onto the design interface. The layout of the interface. However, in the conventional man-machine interface, the interaction between each graphical interface application program and the interaction with the controlled machine must still be realized by writing program codes. Therefore, in the prior art, the designer of the human-machine interface must be familiar with a certain programming language, which increases the technical threshold and development cost of the human-machine interface design. In addition, it is difficult to avoid coding errors in program design, and error detection must be carried out, which further increases the cost of development.

緣此,本發明的主要目的之一在於提供一種人機介面開發方法、人機介面開發的電腦程式產品以及人機介面裝置,其整合了視覺化的程式碼編程介面,使人機介面開發的效率提升、技術門檻降低,進而降低開發成本。Therefore, one of the main purposes of the present invention is to provide a human-machine interface development method, a computer program product for human-machine interface development, and a human-machine interface device, which integrate a visual code programming interface, so that the human-machine interface development Efficiency is improved, technical barriers are lowered, and development costs are reduced.

本發明實施例的其中之一技術方案為提供一種人機介面開發方法,包含:在計算裝置上,針對一人機介面之開發介面中的圖形控制元件,產生對應該圖形控制元件的操作的一視覺化編程介面,該視覺化編程介面顯示於訊號連接於該計算裝置的顯示器,其中,該視覺化編程介面包括多個圖示物件,每一該圖示物件係關聯於一程式碼元素,用以供在該視覺化編程介面上與其他該圖示物件連接以產生程式碼;以及通過該計算裝置接收一輸入指令,該輸入指令指示在該視覺化編程介面上放置至少一該圖示物件,以產生關聯於該圖形控制元件的該操作的一指令碼,其中,當在該人機介面上對該圖形控制元件執行該操作時,該人機介面執行該指令碼。One of the technical solutions of the embodiments of the present invention is to provide a human-machine interface development method, including: on a computing device, aiming at a graphical control element in a human-machine interface development interface, generating a visual image corresponding to the operation of the graphical control element a visual programming interface, the visual programming interface is displayed on a display signal connected to the computing device, wherein the visual programming interface includes a plurality of graphical objects, each of which is associated with a code element for for connecting with other such icon objects on the visual programming interface to generate code; and receiving an input instruction through the computing device, the input instruction instructs to place at least one of the icon objects on the visual programming interface, to An instruction code associated with the operation of the graphic control element is generated, wherein when the operation is performed on the graphic control element on the man-machine interface, the man-machine interface executes the instruction code.

本發明實施例的另一技術方案是提供一種電腦程式產品,其載有電腦可讀取之一程式,經電腦讀取後可執行如上述之人機介面開發方法。Another technical solution of the embodiment of the present invention is to provide a computer program product, which carries a computer-readable program, and can execute the above-mentioned man-machine interface development method after being read by the computer.

本發明實施例的另一技術方案是提供一種人機介面裝置,該人機介面裝置係訊號連接於一設備之一主板,該人機介面裝置包含顯示單元以及控制單元。顯示單元用以顯示上述之開發介面內容。控制單元訊號連接於顯示單元,用以執行上述之人機介面開發方法所開發之人機介面。控制單元通過開發介面中的圖形控制元件接收操作,並對應該操作執行對應的指令碼。Another technical solution of the embodiment of the present invention is to provide a human-machine interface device, the human-machine interface device is signal-connected to a main board of a device, and the human-machine interface device includes a display unit and a control unit. The display unit is used for displaying the content of the development interface mentioned above. The signal of the control unit is connected to the display unit for executing the man-machine interface developed by the above-mentioned man-machine interface development method. The control unit receives operations through the graphic control elements in the development interface, and executes corresponding instruction codes corresponding to the operations.

為更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings related to the present invention. However, the provided drawings are only for reference and description, and are not intended to limit the present invention.

以下通過特定的具體實施例並配合圖1至圖8以說明本發明所公開的人機介面開發方法、電腦程式產品以及人機介面裝置,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。然而,以下所公開的內容並非用以限制本發明的保護範圍,在不悖離本發明構思精神的原則下,本領域技術人員可基於不同觀點與應用以其他不同實施例實現本發明。The following specific embodiments are used together with Figures 1 to 8 to illustrate the human-machine interface development method, computer program product and human-machine interface device disclosed in the present invention. Those skilled in the art can understand the present invention from the content disclosed in this specification advantages and effects. However, the content disclosed below is not intended to limit the protection scope of the present invention. Those skilled in the art can implement the present invention in other different embodiments based on different viewpoints and applications without departing from the spirit of the present invention.

第一實施例first embodiment

以下配合圖1至圖5C說明本發明第一實施例。首先,請配合參閱圖1至圖3,本發明第一實施例提供一人機介面開發方法,其可實現為一電腦程式產品,其中載有電腦可讀取之程式,經圖1及圖2中所示之計算裝置C讀取後,可執行圖3的人機介面開發方法。本發明實施例的人機介面開發方法至少包括步驟S100:在計算裝置C上,針對人機介面之開發介面1中的一圖形控制元件G1,產生對應圖形控制元件G1的操作的視覺化編程介面2,該視覺化編程介面2顯示於訊號連接於該計算裝置C的顯示器D,其中,視覺化編程介面2包括多個圖示物件(P1~P5),每一圖示物件(P1~P5)關聯於一程式碼元素,每一圖示物件用以在視覺化編程介面2上與其他圖示物件(P1~P5)連接以產生程式碼;以及步驟S102:通過計算裝置C接收輸入指令,輸入指令指示在該視覺化編程介面2上放置至少一圖示物件,以產生關聯於圖形控制元件的操作的指令碼20A,其中,當在人機介面上對該圖形控制元件G1執行該操作時,人機介面執行該指令碼20A。The first embodiment of the present invention will be described below with reference to FIG. 1 to FIG. 5C . First of all, please refer to Fig. 1 to Fig. 3, the first embodiment of the present invention provides a man-machine interface development method, which can be implemented as a computer program product, which contains a computer-readable program, through Fig. 1 and Fig. 2 After being read by the computing device C shown, the man-machine interface development method shown in FIG. 3 can be executed. The man-machine interface development method of the embodiment of the present invention includes at least step S100: on the computing device C, for a graphic control element G1 in the man-machine interface development interface 1, generate a visual programming interface corresponding to the operation of the graphic control element G1 2. The visual programming interface 2 is displayed on the display D signal connected to the computing device C, wherein the visual programming interface 2 includes a plurality of icon objects (P1~P5), and each icon object (P1~P5) Associated with a program code element, each icon object is used to connect with other icon objects (P1~P5) on the visual programming interface 2 to generate a program code; and step S102: receive an input command through the computing device C, input The instruction indicates to place at least one graphic object on the visual programming interface 2 to generate the instruction code 20A associated with the operation of the graphic control element, wherein, when the operation is performed on the graphic control element G1 on the man-machine interface, The man-machine interface executes the instruction code 20A.

圖1與圖2示意從人機介面的開發介面1產生視覺化編程介面2。舉例而言,請參閱圖1,其顯示為了飲水機設計的人機介面的開發介面1,其中圖形控制元件G1設計為冷水出水鈕;圖形控制元件G2設計為熱水出水鈕;圖形控制元件G3設計為熱水安全鎖;圖形控制元件G4為系統控制元件,設計為計時器,用以使熱水安全鎖開啟後定時關閉;圖形控制元件G5及圖形控制元件G6用以顯示溫度暫存器的數值,用以表示飲水機內的水溫。上述僅為舉例說明,本發明不限於此;例如,在其他實施例中,開發介面1也可是為了咖啡機、印表機、跑步機、工業生產機台等等設計的人機介面。步驟S100中,從圖1的開發介面1中產生圖形控制元件G1的視覺化編程介面2(請見圖2),以設定冷水出水鈕被壓下時人機介面應執行的事件。產生視覺化編程介面2可以例如是藉由滑鼠控制游標在圖形控制元件G1處按下右鍵,以產生圖形控制元件G1的特性設定選單,其中視覺化編程介面2可自特性設定選單中點選;本發明不限於此。1 and 2 illustrate the generation of a visual programming interface 2 from a human-machine interface development interface 1 . For example, please refer to Fig. 1, which shows the development interface 1 of the human-machine interface designed for the water dispenser, wherein the graphic control element G1 is designed as a cold water outlet button; the graphic control element G2 is designed as a hot water outlet button; the graphic control element G3 is designed as a hot water outlet button. It is designed as a hot water safety lock; the graphic control element G4 is a system control element, designed as a timer to make the hot water safety lock turn off at regular intervals after it is opened; the graphic control element G5 and G6 are used to display the temperature of the temporary register Numerical value, used to represent the water temperature in the water dispenser. The above is only for illustration, and the present invention is not limited thereto; for example, in other embodiments, the development interface 1 may also be a man-machine interface designed for coffee machines, printers, treadmills, industrial production machines, and the like. In step S100 , a visual programming interface 2 (see FIG. 2 ) of the graphic control element G1 is generated from the development interface 1 in FIG. 1 to set the event that the man-machine interface should execute when the cold water outlet button is pressed. Generating the visual programming interface 2 may be, for example, controlling the cursor with a mouse and pressing the right button on the graphic control element G1 to generate a feature setting menu of the graphic control element G1, wherein the visual programming interface 2 can be selected from the feature setting menu ; The present invention is not limited thereto.

請參閱圖2,本實施例中,代表冷水出水鈕的圖形控制元件G1被壓下時,人機介面所執行的事件由指令碼20A實現。視覺化編程介面2包括多個圖示物件(P1~P5),每一圖示物件關聯於一程式碼元素,用以供在視覺化編程介面2上與其他圖示物件連接以產生程式碼。詳細而言,圖2的指令碼20A包括代表條件式的圖示物件P1、代表關係運算子的圖示物件P2、兩印出的圖示物件P3、P5以及執行功能的圖示物件P4,其中,圖示物件P1關聯於用以執行條件式的程式語句(if-else statement);圖示物件P2關聯於用以執行關係運算子(relational operator)的程式語句;圖示物件P3、P5關聯於用以執行印出(print)的程式語句;圖示物件P4關聯於輸出控制訊號的程式語句,例如本實施例中,圖示物件P4所關聯的程式語句用以產生對飲水機的主機板輸出的提供冷水的控制訊號。Please refer to FIG. 2 . In this embodiment, when the graphic control element G1 representing the cold water outlet button is pressed, the events executed by the man-machine interface are realized by the instruction code 20A. The visual programming interface 2 includes a plurality of graphic objects ( P1 - P5 ), and each graphic object is associated with a code element for connecting with other graphic objects on the visual programming interface 2 to generate code. In detail, the instruction code 20A of FIG. 2 includes a graphical object P1 representing a conditional expression, a graphical object P2 representing a relational operator, two printed graphical objects P3 and P5, and a graphical object P4 of an execution function, wherein , the icon object P1 is associated with the program statement (if-else statement) used to execute the conditional expression; the icon object P2 is associated with the program statement used to execute the relational operator (relational operator); the icon objects P3 and P5 are associated with It is used to execute the program statement of printing; the icon object P4 is associated with the program statement of the output control signal, for example, in this embodiment, the program statement associated with the icon object P4 is used to generate the main board output to the water dispenser to provide cold water control signal.

藉由提供視覺化編程介面2,本實施例可在視覺化編程介面2的編輯區域21放置多個所選擇的圖示物件(P1~P5),並可對圖示物件(P1~P5)進行組合拼接,以產生符合語法並可執行所需任務的指令碼20A。當圖1中所設計的開發介面1完成開發而實施在一飲水機裝置中,圖形控制元件G1被使用者壓下時,人機介面將執行指令碼20A。本實施例中,人機介面將首先執行圖示物件P1而判斷圖示物件P2中的條件是否為真。圖示物件P2對應的程式碼為判斷溫度數值是否小於30。當判斷是,則人機介面接著執行圖示物件P3的程式碼,即顯示圖示物件P3中所設定的文字串「Cold water is available.」,接著執行圖示物件P4的程式碼,對飲水機的主板輸出提供冷水的控制訊號;當判斷否,則人機介面執行圖示物件P5所關連的程式碼,即顯示圖示物件P5中所設定的文字串「Cold water is not available.」。換言之,本實施例通過視覺化編程介面2而產生對圖示物件(P1~P5)拼接組合完成的指令碼20A,當人機介面的圖形控制元件G1被壓下時,可執行水溫判斷而有條件地出水。藉此,本發明實施例不需撰寫程式碼即可完成圖形控制元件的任務設定,降低了人機介面開發的技術門檻與開發成本,同時避免撰寫程式碼產生錯誤的機會,提高人機介面開發的效率。By providing the visual programming interface 2, this embodiment can place multiple selected graphic objects (P1~P5) in the editing area 21 of the visual programming interface 2, and can combine the graphic objects (P1~P5) Splicing to generate instruction code 20A that complies with syntax and can perform required tasks. When the development interface 1 designed in FIG. 1 is developed and implemented in a water dispenser device, when the graphic control element G1 is pressed by the user, the man-machine interface will execute the instruction code 20A. In this embodiment, the man-machine interface first executes the icon object P1 to determine whether the condition in the icon object P2 is true. The program code corresponding to the object P2 in the figure is to determine whether the temperature value is less than 30. When the judgment is yes, the man-machine interface then executes the program code of the icon object P3 to display the text string "Cold water is available." set in the icon object P3, and then executes the program code of the icon object P4 to control the drinking water The output of the main board of the machine provides a control signal for cold water; when the judgment is negative, the man-machine interface executes the code associated with the icon object P5, and then displays the text string "Cold water is not available." set in the icon object P5. In other words, this embodiment uses the visual programming interface 2 to generate the instruction code 20A for splicing and assembling the graphical objects (P1~P5). Water conditionally. In this way, the embodiment of the present invention can complete the task setting of the graphic control element without writing program codes, which reduces the technical threshold and development cost of man-machine interface development, and at the same time avoids the chance of writing program codes to cause errors, and improves the development of man-machine interface. s efficiency.

圖2所示的實施例為編輯指令碼20A以設計圖形控制元件G1被壓下時所執行的任務。換言之,步驟S102中產生「關連於圖形控制元件的操作的指令碼」中所述「操作」,指的是圖形控制元件G1所代表之按鈕被壓下的操作。然而,本發明不限於此。在其他實施例中,可對開發介面1中的任一圖形控制元件編輯其他操作的指令碼,例如釋放按鈕、長壓按鈕等之操作。The embodiment shown in FIG. 2 is to edit the instruction code 20A to design the task performed when the graphical control element G1 is depressed. In other words, the "operation" mentioned in the "instruction code related to the operation of the graphic control element" generated in step S102 refers to the operation that the button represented by the graphic control element G1 is pressed. However, the present invention is not limited thereto. In other embodiments, the instruction codes of other operations can be edited for any graphical control element in the development interface 1 , such as operations such as releasing a button and pressing a button for a long time.

請繼續參閱圖2。在一實施例中,圖示物件(P1~P5)可自視覺化編程介面2的圖示物件選單200中選取。圖示物件選單200可包括多個下拉式選單(201~207)。本實施例中,視覺化編程介面2提供了邏輯類圖示物件下拉式選單201、迴圈類圖示物件下拉式選單202、數學運算類圖示物件下拉式選單203、運算子圖示物件下拉式選單204、暫存器類圖示物件下拉式選單205、變數類圖示物件下拉式選單206以及功能類圖示物件下拉式選單207(用以對人機介面所控制的機器輸出控制訊號)。然而,本發明不以上述為限。視覺化編程介面2可提供任何其他代表可用以編寫指令碼的程式碼元素的圖示物件。此外,程式碼元素可以是任何程式語言的語句,本發明不以此為限。Please continue with Figure 2. In one embodiment, the icon objects ( P1 ˜ P5 ) can be selected from the icon object menu 200 of the visual programming interface 2 . The icon object menu 200 may include multiple drop-down menus (201-207). In this embodiment, the visual programming interface 2 provides a drop-down menu 201 for logical icon objects, a drop-down menu 202 for loop icon objects, a drop-down menu 203 for mathematical operation icon objects, and a drop-down menu for operator icon objects. Type menu 204, register icon object drop-down menu 205, variable icon object drop-down menu 206, and function icon object drop-down menu 207 (used to output control signals to machines controlled by the man-machine interface) . However, the present invention is not limited to the above. The visual programming interface 2 may provide any other graphical objects representing code elements that can be used to write scripts. In addition, the program code elements may be statements of any programming language, and the present invention is not limited thereto.

進一步而言,在本發明一變化實施例中,本發明可針對所欲編輯指令碼的圖形控制元件的操作而提供圖示物件選單,其中圖示物件選單包括可用以執行該圖形控制元件的該操作的圖示物件。舉例而言,當欲對一圖形控制元件的一操作編輯指令碼,則視覺化編程介面2的圖示物件選單200僅包括適合用來編輯該操作的指令碼的圖示物件,而不適合用來編輯該操作的指令碼的圖示物件則不會出現在圖示物件選單200。如此,本實施例可進一步避免指令碼的編寫錯誤。Furthermore, in a variant embodiment of the present invention, the present invention can provide a graphical object menu for the operation of the graphical control element of the script to be edited, wherein the graphical object menu includes the graphical object menu that can be used to execute the graphical control element. Icon object for the action. For example, when it is desired to edit a command code for an operation of a graphic control element, the icon object menu 200 of the visual programming interface 2 only includes icon objects suitable for editing the command code of the operation, and are not suitable for The icon object for editing the script of the operation will not appear in the icon object menu 200 . In this way, this embodiment can further avoid writing errors of instruction codes.

進一步來說,請參閱圖2,部分圖示物件進一步包括使用者介面(U1~U4)以供編修圖示物件所關聯的程式碼元素的一部分,使用者介面以外的其餘部分的程式碼元素則無法進行編修。舉例而言,圖示物件P2提供使用者介面(U1~U3),其中使用者介面U2供人機介面設計者選擇運算子種類(本實施例中使用小於)、使用者介面U1供人機介面設計者選擇運算子左邊的變數(本實施例中使用溫度暫存器的數值作為變數)、使用者介面U3供人機介面設計者選擇運算子右邊的變數(本實施例中設為30)。圖示物件P3、P5的使用者介面U4、U5則供輸入所欲印出的文字串。藉此,本實施例只需移動拖曳圖示物件,以對圖示物件進行排列組合,並通過使用者介面選擇或輸入變數,不須實際輸入程式符合語法的程式語句,即可完成人機介面中圖形控制元件的指令碼編輯,使人機介面的開發更加便利。Further, please refer to Figure 2, some icon objects further include user interface (U1~U4) for editing a part of the code elements associated with the icon object, and the rest of the code elements other than the user interface are Unable to edit. For example, icon object P2 provides user interfaces (U1~U3), among which user interface U2 is for man-machine interface designers to select operation subtypes (less than is used in this embodiment), and user interface U1 is for man-machine interface The designer selects the variable on the left of the operator (in this embodiment, the value of the temperature register is used as the variable), and the user interface U3 allows the man-machine interface designer to select the variable on the right of the operator (set to 30 in this embodiment). The user interfaces U4 and U5 of the icon objects P3 and P5 are used for inputting text strings to be printed out. In this way, in this embodiment, only need to move and drag the icon objects to arrange and combine the icon objects, and select or input variables through the user interface, without actually inputting the grammatical statements of the program, the man-machine interface can be completed The command code editing of graphic control components in the middle makes the development of man-machine interface more convenient.

以下配合圖4至圖5C說明依據圖1至圖3的人機介面開發方法及電腦程式產品產生的人機介面及其實施樣態。請參閱圖4,本實施例提供一人機介面裝置3用以執行上述人機介面。人機介面裝置3包括顯示單元31以及控制單元32。人機介面裝置3通過控制單元32以訊號連接於一設備之主板B。本實施例中,設備為一飲水機A,然而本發明不以此為限。顯示單元31用以顯示圖1中開發介面1的內容,其中由於圖1中的圖形控制元件G4為系統計時器,故不顯示於顯示單元31。控制單元32訊號連接於顯示單元31,用以執行通過本發明的人機介面開發方法所產生的人機介面,其中控制單元32通過開發介面1中的圖形控制元件(G1、G2、G3、G5、G6)接收操作,並執行對應的指令碼。舉例而言,當控制單元32通過顯示單元31上顯示的開發介面1接收到圖形控制元件G1被壓下的訊號,控制單元32執行圖2中的指令碼20A。The following describes the human-machine interface and its implementation according to the human-machine interface development method and the computer program product shown in FIGS. 1-3 with reference to FIGS. 4-5C. Please refer to FIG. 4 , this embodiment provides a human-machine interface device 3 for implementing the above-mentioned human-machine interface. The man-machine interface device 3 includes a display unit 31 and a control unit 32 . The man-machine interface device 3 is connected to the main board B of a device through the control unit 32 with signals. In this embodiment, the equipment is a water dispenser A, but the present invention is not limited thereto. The display unit 31 is used to display the content of the development interface 1 in FIG. 1 , wherein the graphic control element G4 in FIG. 1 is a system timer, so it is not displayed on the display unit 31 . The control unit 32 is signal-connected to the display unit 31 for executing the man-machine interface produced by the man-machine interface development method of the present invention, wherein the control unit 32 controls the components (G1, G2, G3, G5 through the graphic control elements in the development interface 1 , G6) to receive the operation and execute the corresponding instruction code. For example, when the control unit 32 receives a signal that the graphic control element G1 is pressed through the development interface 1 displayed on the display unit 31 , the control unit 32 executes the instruction code 20A in FIG. 2 .

本實施例中,除了對於顯示單元31以及設備A輸出訊號,指令碼經控制單元32執行後也可對其他圖形控制元件進行狀態設定,以下以飲水機A的熱水安全鎖(圖形控制元件G3)為例以說明。圖5A中,控制單元32執行指令碼20B時,首先判斷溫度值是否高於等於50(圖示物件P7)。當判斷是,控制單元32接著判斷熱水安全鎖的儲存值是否為1(圖示物件P9)。當判斷為1,控制單元32對顯示單元31輸出顯示訊號以顯示圖示物件P10中指定輸出的文字串,並對飲水機A的主板B輸出提供出熱水的控制訊號(圖示物件P11);當判斷熱水安全鎖的儲存值不為1,則使顯示單元31顯示圖示物件P12中代表「請解除熱水鎖」的訊息。上述熱水安全鎖的儲存值可從圖形控制元件G3改變。詳細而言,請見圖5B,其顯示圖形控制元件G3的視覺化編程介面2。圖形控制元件G3為熱水安全鎖的圖形介面應用程式,指令碼20C設定的操作為當圖形控制元件G3被長時間按住時,將熱水安全鎖的儲存值設為1。In this embodiment, in addition to outputting signals to the display unit 31 and the device A, the command code can also be used to set the state of other graphic control elements after the control unit 32 executes it. The following uses the hot water safety lock of the water dispenser A (graphic control element G3 ) as an example for illustration. In FIG. 5A , when the control unit 32 executes the instruction code 20B, it first determines whether the temperature value is higher than or equal to 50 (the item P7 in the figure). When the judgment is yes, the control unit 32 then judges whether the stored value of the hot water safety lock is 1 (item P9 in the figure). When the judgment is 1, the control unit 32 outputs a display signal to the display unit 31 to display the specified output text string in the icon object P10, and outputs a control signal for providing hot water to the main board B of the water dispenser A (the icon object P11) ; When it is judged that the storage value of the hot water safety lock is not 1, then the display unit 31 is made to display the message representing "please release the hot water lock" in the icon object P12. The stored value of the above-mentioned hot water safety lock can be changed from the graphic control element G3. In detail, please refer to FIG. 5B , which shows the visual programming interface 2 of the graphic control element G3. The graphical control element G3 is a graphic interface application program of the hot water safety lock, and the operation set by the command code 20C is to set the storage value of the hot water safety lock to 1 when the graphical control element G3 is pressed for a long time.

進一步來說,請參閱圖5C,本實施例的開發介面1進一步具有系統計時器的圖形控制元件(請見圖1中的圖形控制元件G4),而圖5C顯示的實施例為圖1中的圖形控制元件G4的視覺化編程介面2,其中指令碼20D設定計時器計時完畢後將熱水安全鎖的儲存值設為0,且圖形控制元件G4設定為熱水安全鎖的儲存值為1時開始計時。在圖5A中關於圖形控制元件G2(熱水出水鈕)的指令碼20B中,熱水安全鎖的儲存值為1時,輸出控制訊號提供熱水,不為1時不提供熱水,因此本實施例藉由指令碼20C與指令碼20D在不同條件下對熱水安全鈕的儲存值進行狀態設定,可達到飲水機A安全出熱水的設計。Further, please refer to FIG. 5C, the development interface 1 of this embodiment further has a graphic control element of the system timer (see graphic control element G4 in FIG. 1), and the embodiment shown in FIG. 5C is the graphic control element in FIG. The visual programming interface 2 of the graphic control element G4, wherein the instruction code 20D sets the timer to set the stored value of the hot water safety lock to 0, and the graphic control element G4 sets the stored value of the hot water safety lock to 1 start the timer. In the instruction code 20B of the graphic control element G2 (hot water outlet button) in FIG. 5A, when the storage value of the hot water safety lock is 1, the output control signal provides hot water, and when it is not 1, no hot water is provided. In the embodiment, the state setting of the storage value of the hot water safety button under different conditions by the command code 20C and the command code 20D can achieve the design of safe hot water for the water dispenser A.

綜合上述,藉由本實施例提供的技術手段,本發明提供的人機介面開發方法、電腦程式軟體及人機介面裝置可藉由在計算裝置中產生視覺化編程介面,並透過接收輸入指令而將多個圖示物件放置在視覺化編程介面中排列連接,以產生圖形控制元件的指令碼。本發明藉此可以視覺化方式設計人機介面,其中設計者不需要手動撰寫程式碼,降低了技術門檻且省去程式碼發生錯誤的風險,提高人機介面設計的效率並降低成本。To sum up the above, with the technical means provided by this embodiment, the human-machine interface development method, computer program software and human-machine interface device provided by the present invention can generate a visual programming interface in the computing device and convert the A plurality of graphical objects are arranged and connected in the visual programming interface to generate the instruction code of the graphical control element. In this way, the present invention can design the man-machine interface in a visual way, wherein the designer does not need to write program codes manually, which lowers the technical threshold and saves the risk of program code errors, improves the efficiency of man-machine interface design and reduces the cost.

第二實施例second embodiment

以下配合圖6至圖8說明本發明第二實施例。請配合參閱圖6及圖7,本發明第二實施例提供的人機介面開發方法進一步包括步驟S200:選取一該圖示物件連接於已放置於該視覺化編程介面上的圖示物件;步驟S202:通過計算裝置判斷該被選取的圖示物件與該已放置於該視覺化編程介面上的圖示物件的連接是否符合程式語法;以及步驟S204:若判斷該連接不符合程式語法,使該被選取的圖示物件無法與該已放置於該視覺化編程介面上的圖示物件連接。步驟S200至步驟S204可在第一實施例中的步驟S100之後或者步驟S102之後執行,本發明不限於此。請參閱圖6,舉例而言,在設計指令碼的過程中,選取圖示物件P3連接於已放置於視覺化編程介面2中的圖示物件P1,其中圖示物件P1關聯於條件式語法的程式碼元素,而圖示物件P3關聯於印出的程式碼元素。步驟S200中,將圖示物件P3連接於圖示物件P1的條件敘述位置(連接點P1A)之後,步驟S202接著判斷此連接是否符合語法。由於圖示物件P3非可判斷真假的條件敘述,步驟S202中判斷此連接不符合語法,接著執行步驟S204,使圖示物件P3無法與圖示物件P1連接。The second embodiment of the present invention will be described below with reference to FIG. 6 to FIG. 8 . Please refer to FIG. 6 and FIG. 7 , the man-machine interface development method provided by the second embodiment of the present invention further includes step S200: select an icon object and connect it to the icon object placed on the visual programming interface; step S202: Use the computing device to determine whether the connection between the selected icon object and the icon object placed on the visual programming interface conforms to the program syntax; and Step S204: If it is determined that the connection does not conform to the program syntax, make the The selected icon object cannot be connected to the icon object already placed on the visual programming interface. Step S200 to step S204 may be performed after step S100 or after step S102 in the first embodiment, the present invention is not limited thereto. Please refer to FIG. 6. For example, in the process of designing the script code, the icon object P3 is selected to be connected to the icon object P1 placed in the visual programming interface 2, wherein the icon object P1 is associated with the conditional syntax code element, and the icon object P3 is associated with the printed code element. In step S200 , after the icon object P3 is connected to the condition statement position (connection point P1A) of the icon object P1 , step S202 then determines whether the connection is grammatical. Since the pictorial object P3 is not a conditional statement that can determine whether it is true or false, it is determined in step S202 that the connection does not conform to the grammar, and then step S204 is executed to prevent the pictorial object P3 from being connected to the pictorial object P1.

使連接後不合語法的圖示物件無法連接的方式可以是使已放置於視覺化編程介面2的圖示物件P1的連接點P1A失效,或使被選擇的圖示物件P3回到圖示物件選單200,本發明不限於此。本實施例藉此可使符合語法的連接成功產生指令碼,而不符合語法的連接不可被放置於視覺化編程介面2。如此可進一步降低設計指令碼時產生的錯誤。The way to make the ungrammatical icon object cannot be connected after the connection can be to invalidate the connection point P1A of the icon object P1 placed on the visual programming interface 2, or to return the selected icon object P3 to the icon object menu 200, the present invention is not limited thereto. In this embodiment, the grammatical connection can successfully generate scripts, and the non-grammatical connection cannot be placed in the visual programming interface 2 . In this way, errors generated when designing instruction codes can be further reduced.

請參閱圖8,在一變化實施例中,本發明的人機介面開發方法進一步包括步驟300:通過計算裝置判斷在該視覺化編程介面上被連接的多個該圖示物件所形成的該指令碼是否符合程式語法;以及步驟S302:若判斷指令碼不符合程式語法,通過該計算裝置關閉使用者介面。以圖6為例,在一變化實施例中,當圖示物件P3被連接於圖示物件P1的連接點P1A之後,圖1中的計算裝置執行步驟S300,判斷該連接完成之後所形成的指令碼是否符合語法,而當判斷不合語法,圖示物件P3中的使用者介面將被關閉,人機介面設計者無法輸入欲印出的文字串。藉此,本實施例可進一步避免人機介面開發過程中,指令碼的編寫錯誤。Please refer to FIG. 8 , in a variation embodiment, the man-machine interface development method of the present invention further includes step 300: judge the instruction formed by a plurality of the icon objects connected on the visual programming interface by a computing device Whether the code conforms to the program syntax; and step S302: if it is determined that the command code does not conform to the program syntax, close the user interface through the computing device. Taking FIG. 6 as an example, in a variant embodiment, after the pictorial object P3 is connected to the connection point P1A of the pictorial object P1, the computing device in FIG. 1 executes step S300 to determine the command formed after the connection is completed. Whether the code conforms to the syntax, and when it is judged to be ungrammatical, the user interface in the icon object P3 will be closed, and the man-machine interface designer cannot input the text string to be printed out. In this way, this embodiment can further avoid script code writing errors in the development process of the man-machine interface.

上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均落入本發明的申請專利範圍內。The content disclosed above is only the preferred feasible embodiment of the present invention, and does not limit the patent scope of the present invention. Therefore, all equivalent technical changes made by using the description and drawings of the present invention fall into the application of the present invention. within the scope of the patent.

C:計算裝置 D:顯示器 1:開發介面 G1~G6:圖形控制元件 P1~P15:圖示物件 P1A:圖示物件連接點 U1~U5:使用者介面 200:圖示物件選單 201~207:圖示物件下拉式選單 20A~20D:指令碼 3:人機介面裝置 31:顯示單元 32:控制單元 A:設備 B:主板 C: computing device D: monitor 1: Development interface G1~G6: graphic control components P1~P15: icon objects P1A: icon object connection point U1~U5: User Interface 200: icon object menu 201~207: Icon object drop-down menu 20A~20D: instruction code 3: Man-machine interface device 31: Display unit 32: Control unit A: Equipment B: Motherboard

圖1及圖2為本發明第一實施例的人機介面開發方法的實施示意圖。FIG. 1 and FIG. 2 are schematic diagrams of the implementation of the human-machine interface development method according to the first embodiment of the present invention.

圖3為本發明第一實施例的人機介面開發方法的流程圖。FIG. 3 is a flow chart of the human-machine interface development method according to the first embodiment of the present invention.

圖4為本發明第一實施例的人機介面裝置的實施示意圖。FIG. 4 is a schematic diagram illustrating the implementation of the human-machine interface device according to the first embodiment of the present invention.

圖5A至圖5C為本發明第一實施例的視覺化編程介面的實施示意圖。5A to 5C are schematic diagrams illustrating the implementation of the visual programming interface according to the first embodiment of the present invention.

圖6為本發明第二實施例的人機介面開發方法的實施示意圖。FIG. 6 is a schematic diagram of the implementation of the man-machine interface development method according to the second embodiment of the present invention.

圖7為本發明第二實施例的人機介面開發方法的流程圖。FIG. 7 is a flowchart of a human-machine interface development method according to a second embodiment of the present invention.

圖8為本發明第二實施例的人機介面開發方法的變化實施例。FIG. 8 is a variant embodiment of the man-machine interface development method of the second embodiment of the present invention.

本案指定代表圖為流程圖,故無符號簡單說明。The designated representative figure in this case is a flow chart, so there are no symbols for simple explanation.

Claims (10)

一種人機介面開發方法,包含: 在一計算裝置上,針對一人機介面之一開發介面中的一圖形控制元件,產生對應該圖形控制元件的一操作的一視覺化編程介面,該視覺化編程介面顯示於訊號連接於該計算裝置的一顯示器,其中,該視覺化編程介面包括多個圖示物件,每一該圖示物件係關聯於一程式碼元素,用以供在該視覺化編程介面上與其他該圖示物件連接以產生程式碼;以及 通過該計算裝置接收一輸入指令,該輸入指令指示在該視覺化編程介面上放置至少一該圖示物件,以產生關聯於該圖形控制元件的該操作的一指令碼,其中,當在該人機介面上對該圖形控制元件執行該操作時,該人機介面執行該指令碼。 A human-machine interface development method, comprising: On a computing device, for a graphical control element in a development interface of a man-machine interface, a visual programming interface corresponding to an operation of the graphical control element is generated, and the visual programming interface is displayed on the signal connected to the computing device A display of the visual programming interface, wherein the visual programming interface includes a plurality of graphical objects, each of which is associated with a code element for connecting with other graphical objects on the visual programming interface generate code; and Receive an input instruction through the computing device, the input instruction indicates to place at least one of the graphic objects on the visual programming interface, so as to generate an instruction code associated with the operation of the graphic control element, wherein, when in the human When the operation is performed on the graphic control element on the machine interface, the man-machine interface executes the instruction code. 如請求項1的人機介面開發方法,進一步包含: 該圖示物件包括至少一使用者介面以供編修該程式碼元素的一部分,該程式碼元素的其餘部分無法進行編修。 Such as the human-machine interface development method of claim 1, further comprising: The graphical object includes at least one user interface for editing a portion of the code element, and the rest of the code element cannot be edited. 如請求項2的人機介面開發方法,進一步包含: 通過該計算裝置判斷在該視覺化編程介面上被連接的多個該圖示物件所形成的該指令碼是否符合一程式語法;以及 若判斷該指令碼不符合該程式語法,通過該計算裝置關閉該使用者介面。 For example, the human-machine interface development method of claim 2 further includes: judging by the computing device whether the instruction code formed by the plurality of graphical objects connected on the visual programming interface conforms to a program syntax; and If it is judged that the command code does not conform to the syntax of the program, the user interface is closed by the computing device. 如請求項1的人機介面開發方法,進一步包含: 該視覺化編程介面根據該圖形控制元件提供一圖示物件選單,其中,該圖示物件選單包括多個可用以執行該圖形控制元件的該操作的該圖示物件。 Such as the human-machine interface development method of claim 1, further comprising: The visual programming interface provides an icon object menu according to the graphic control element, wherein the icon object menu includes a plurality of icon objects that can be used to execute the operation of the graphic control element. 如請求項1的人機介面開發方法,進一步包括: 選取一該圖示物件連接於已放置於該視覺化編程介面上的圖示物件; 通過該計算裝置判斷該被選取的圖示物件與該已放置於該視覺化編程介面上的圖示物件的連接是否符合一程式語法;以及 若判斷該連接不符合該程式語法,使該被選取的圖示物件無法與該已放置於該視覺化編程介面上的圖示物件連接。 Such as the human-machine interface development method of claim 1, further comprising: Selecting an icon object to be connected to an icon object placed on the visual programming interface; judging by the computing device whether the connection between the selected icon object and the icon object placed on the visual programming interface conforms to a program syntax; and If it is determined that the connection does not conform to the programming syntax, the selected icon object cannot be connected with the icon object placed on the visual programming interface. 一種電腦程式產品,載有電腦可讀取之一程式,經電腦讀取後可執行如請求項1至5任一項所述之人機介面開發方法。A computer program product, carrying a computer-readable program, which can execute the man-machine interface development method described in any one of claims 1 to 5 after being read by the computer. 一種人機介面裝置,該人機介面裝置係訊號連接於一設備之一主板,該人機介面裝置包含: 一顯示單元,用以顯示如請求項1至5任一項所述之該開發介面之內容;以及 一控制單元,訊號連接於該顯示單元,用以執行請求項1至5中任一項所述之人機介面開發方法所開發之該人機介面,其中,該控制單元通過該顯示單元顯示的該開發介面中的該圖形控制元件接收該操作,並對應該操作執行該指令碼。 A human-machine interface device, the human-machine interface device is signal-connected to a main board of a device, the human-machine interface device includes: A display unit for displaying the content of the development interface as described in any one of claims 1 to 5; and A control unit, signal connected to the display unit, for executing the man-machine interface developed by the man-machine interface development method described in any one of claims 1 to 5, wherein the control unit displays through the display unit The graphic control element in the development interface receives the operation, and executes the instruction code corresponding to the operation. 如請求項7所述的人機介面裝置,其中,該控制單元執行該指令碼後對該開發介面上另一圖形控制元件進行狀態設定。The human-machine interface device according to claim 7, wherein the control unit performs state setting on another graphic control element on the development interface after executing the instruction code. 如請求項7所述的人機介面裝置,其中,該控制單元執行該指令碼後對該設備輸出一控制訊號。The human-machine interface device according to claim 7, wherein the control unit outputs a control signal to the device after executing the instruction code. 如請求項7所述的人機介面裝置,其中,該控制單元執行該指令碼後對該顯示單元輸出一顯示訊號。The human-machine interface device according to claim 7, wherein the control unit outputs a display signal to the display unit after executing the instruction code.
TW110103599A 2021-01-29 2021-01-29 Method for generating a human-machine interface, computer program product and human-machine interface device TWI787728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110103599A TWI787728B (en) 2021-01-29 2021-01-29 Method for generating a human-machine interface, computer program product and human-machine interface device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110103599A TWI787728B (en) 2021-01-29 2021-01-29 Method for generating a human-machine interface, computer program product and human-machine interface device

Publications (2)

Publication Number Publication Date
TW202230105A TW202230105A (en) 2022-08-01
TWI787728B true TWI787728B (en) 2022-12-21

Family

ID=83782366

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110103599A TWI787728B (en) 2021-01-29 2021-01-29 Method for generating a human-machine interface, computer program product and human-machine interface device

Country Status (1)

Country Link
TW (1) TWI787728B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI269189B (en) * 2005-04-25 2006-12-21 Univ Nat Chiao Tung User interface producing system and method thereof
US20100162210A1 (en) * 2008-12-22 2010-06-24 International Business Machines Corporation Visual Editor for Editing Complex Expressions
US20110061010A1 (en) * 2009-09-07 2011-03-10 Timothy Wasko Management of Application Programs on a Portable Electronic Device
US20120124515A1 (en) * 2010-11-17 2012-05-17 International Business Machines Corporation Border menu for context dependent actions within a graphical user interface
TWI470549B (en) * 2012-04-20 2015-01-21 Insyde Software Corp A method of using an image recognition guide to install an application, and an electronic device
TWI583854B (en) * 2011-08-03 2017-05-21 Shao-Yu Peng A toilet seat with a man - machine interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI269189B (en) * 2005-04-25 2006-12-21 Univ Nat Chiao Tung User interface producing system and method thereof
US20100162210A1 (en) * 2008-12-22 2010-06-24 International Business Machines Corporation Visual Editor for Editing Complex Expressions
US20110061010A1 (en) * 2009-09-07 2011-03-10 Timothy Wasko Management of Application Programs on a Portable Electronic Device
US20120124515A1 (en) * 2010-11-17 2012-05-17 International Business Machines Corporation Border menu for context dependent actions within a graphical user interface
TWI583854B (en) * 2011-08-03 2017-05-21 Shao-Yu Peng A toilet seat with a man - machine interface
TWI470549B (en) * 2012-04-20 2015-01-21 Insyde Software Corp A method of using an image recognition guide to install an application, and an electronic device

Also Published As

Publication number Publication date
TW202230105A (en) 2022-08-01

Similar Documents

Publication Publication Date Title
US6964010B1 (en) Formatted-item list control
US7543281B2 (en) Disabling and conditionally compiling graphical code in a graphical program
US5949417A (en) Dynamic property sheet system
US6369836B1 (en) Cause effect diagram program
US9141345B2 (en) Simplified user controls for authoring workflows
US20020161777A1 (en) Universal data editor
US6177942B1 (en) Part development system
US6341359B1 (en) Self-diagnosing and self correcting data entry components
CN1828597B (en) Simple style
CN111475155A (en) Graphic block-based graphical programming method for robot interaction
WO2015039628A1 (en) Visualization step programming method
TWI787728B (en) Method for generating a human-machine interface, computer program product and human-machine interface device
JP2671793B2 (en) Program generator usage specification simulation method and apparatus
Smyth Android Studio 4.1 Development Essentials-Kotlin Edition
Bernini et al. VIPERS: A data flow visual programming environment based on the Tcl language
CN103339573A (en) Motion SFC program component creation device
CN106371818B (en) Method for processing user-level events to program application program
KR20220125658A (en) Method and system for assisting software development using connection of graphic objects, each representing a software component
Wang Object-oriented task analysis
Smyth Android Studio 4.0 Development Essentials-Kotlin Edition
Myers et al. Heuristics in real user interfaces
JPH08263130A (en) Simulation system
CN108227573A (en) A kind of method that the configuration of motion controller axis information is realized based on OPC-UA
JPH05189274A (en) History information management system
US8132146B2 (en) Input of program instructions in imperative programming languages