Module parameter adjustment method and device, electronic equipment and storage medium
By providing module parameter adjustment methods and devices in the target version of Matlab, the problem that the old version cannot adjust module parameters dynamically in real time is solved, real-time adjustment of Simulink module parameters is achieved, and the functional diversity and intelligence of Matlab are improved.
Patent Information
- Application Number
- CN202410936049.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-12
AI Technical Summary
In the old version of Matlab, the module parameters of the encapsulated Simulink module cannot be adjusted in real time and dynamically, which will affect the user experience.
Provide a module parameter adjustment method and device, by displaying the module parameter adjustment interface in the target version of Matlab, including parameter addition, deletion, modification and query controls, update module parameters in response to user operations, real-time dynamics of encapsulated module parameters are realized Adjustment.
Real-time and dynamic adjustment of encapsulated module parameters is implemented in the target version of Matlab, enriching functional diversity and improving intelligence.
Smart Images

Figure CN118939359A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a module parameter adjustment method, device, electronic equipment and storage medium. Background Art
[0002] Simulink is a visual simulation tool in Matlab. Most of the basic functions in Simulink are implemented through encapsulated graphical modules. At the same time, Simulink also provides methods for custom creation and encapsulation of modules. Encapsulated Simulink modules generally contain a certain number of parameters (Parameters) to implement the functions of each module. The number of parameters is generally fixed after the module is encapsulated, and the module function can be adjusted only by changing the parameter value.
[0003] However, in older versions of Matlab (eg, R2016), it is not possible to adjust the module parameters of the packaged Simulink module in real time and dynamically, and thus, it is not possible to adjust the module functions in real time and dynamically, which affects the user experience. Summary of the invention
[0004] The present invention provides a module parameter adjustment method, device, electronic device and storage medium, so as to achieve the effect of real-time and dynamic adjustment of module parameters of encapsulated modules in a target version of Matlab, thereby enriching the functional diversity of the target version of Matlab.
[0005] According to one aspect of the present invention, a module parameter adjustment method is provided, which is applied to a target version of Matlab and comprises:
[0006] In response to an adjustment interface display operation input for a module to be adjusted, a module parameter adjustment interface corresponding to the module to be adjusted is displayed; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and the module parameters to be adjusted; the parameter adjustment control includes at least a parameter adding control, a parameter deleting control, a parameter modifying control and a parameter query control;
[0007] In response to a parameter adjustment operation on the parameter adjustment control, the module parameters to be adjusted are updated based on the parameter adjustment operation, and the updated module parameters to be adjusted are displayed on the module parameter adjustment interface.
[0008] According to another aspect of the present invention, a module parameter adjustment device is provided, which is configured in a target version of Matlab and includes:
[0009] An interface display module, for displaying a module parameter adjustment interface corresponding to the module to be adjusted in response to an adjustment interface display operation input for the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and the module parameters to be adjusted; the parameter adjustment control includes at least a parameter adding control, a parameter deleting control, a parameter modifying control and a parameter query control;
[0010] The parameter adjustment module is used to respond to the parameter adjustment operation on the parameter adjustment control, update the parameters of the module to be adjusted based on the parameter adjustment operation, and display the updated parameters of the module to be adjusted on the module parameter adjustment interface.
[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the module parameter adjustment method described in any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the module parameter adjustment method described in any embodiment of the present invention when executed.
[0016] The technical solution of the embodiment of the present invention displays a module parameter adjustment interface corresponding to the module to be adjusted in response to an adjustment interface display operation input to the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and module parameters to be adjusted, and further, in response to the parameter adjustment operation on the parameter adjustment control, the module parameters to be adjusted are updated based on the parameter adjustment operation, and the updated module parameters to be adjusted are displayed on the module parameter adjustment interface, thereby solving the problem in the related art that the module parameters of the encapsulated Simulink module cannot be adjusted in real time and dynamically in the old version of Matlab, and further, the module functions cannot be adjusted in real time and dynamically, and the effect of being able to adjust the module parameters of the encapsulated module in the target version of Matlab in real time and dynamically is achieved, thereby enriching the functional diversity of the target version of Matlab and improving the intelligence of the target version of Matlab.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of a module parameter adjustment method provided according to Embodiment 1 of the present invention;
[0020] Figure 2 This is a schematic diagram of the effect of the module parameter adjustment interface provided in the first embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of the effect of the module parameter adjustment process provided in the first embodiment of the present invention;
[0022] Figure 4 is a flow chart of a module parameter adjustment method provided according to Embodiment 2 of the present invention;
[0023] Figure 5 is a structural schematic diagram of a module parameter adjustment device provided according to Embodiment 3 of the present invention;
[0024] Figure 6 It is a structural schematic diagram of an electronic device for implementing the module parameter adjustment method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 1 is a flow chart of a module parameter adjustment method provided in the first embodiment of the present invention. This embodiment is applicable to the case where the module parameters of the packaged module are adjusted in the target version of Matlab. The method is applied to the target version of Matlab and can be executed by a module parameter adjustment device. The module parameter adjustment device can be implemented in the form of hardware and / or software. The module parameter adjustment device can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:
[0029] S110. In response to a parameter adjustment operation input for a module to be adjusted, display a module parameter adjustment interface corresponding to the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and parameters of the module to be adjusted.
[0030] It should be noted that the technical solution provided in the embodiment of the present invention can be applied to the target version of Matlab. The target version of Matlab can be a version that does not provide the module parameter dynamic adjustment function. Optionally, the target version can be R2016 version, any version earlier than R2016 version, or any version that does not support the module parameter dynamic adjustment function. It can be understood that in any version of Matlab, Simulink modules can be created and encapsulated, and the encapsulated Simulink modules generally include a certain number of parameters for realizing the various functions of the modules. However, in the target version of Matlab, the parameters in the module are generally fixed after the module encapsulation is completed, and only the parameter values of the encapsulated parameters can be changed, and the parameters in the module cannot be adjusted.
[0031] In view of the above situation, the technical solution provided by the embodiment of the present invention can be used to dynamically adjust the number and parameter values of the parameters in the Simulink module in the target version of Matlab.
[0032] Among them, the module to be adjusted can be a graphical module to be parameter edited. The module to be adjusted can be a Simulink module that has completed module encapsulation. It can be understood that Simulink is a module diagram environment for multi-domain simulation and model-based design. It supports system design, simulation, automatic code generation, and continuous testing and verification of embedded systems. Module encapsulation is a custom interface of Simulink module, which is used to hide the module content and display it as an atomic module with its own icon and parameter dialog box. It encapsulates the module logic, provides controllable access to module data, and simplifies the graphical appearance of the model. In other words, the module to be adjusted can be displayed on a visual interface in Matlab in the form of a graphical module, which encapsulates the module logic and various parameters associated with the module function. The adjustment interface display operation can be understood as an operation of displaying an interface that supports adjustment of parameters in the encapsulated module. The adjustment interface display operation can be any operation acting on the module to be adjusted. Optionally, a click operation for the input of the module to be adjusted. Among them, the click operation can be a single click operation or a multiple click operation (such as a double-click operation, etc.). Exemplarily, when it is detected that the user inputs a right-click operation to the module to be adjusted through an input device or a touch point, a module editing menu can be displayed in the vicinity of the module to be adjusted, and the module editing menu includes a parameter adjustment item. Furthermore, when a left-click operation on the parameter adjustment item is detected, it can be determined that an adjustment interface display operation is detected. Alternatively, when a user double-clicks the module to be adjusted, it can be determined that an adjustment interface display operation is detected. Alternatively, in order to facilitate user operation, the adjustment interface display operation for the module to be adjusted can also be that when it is detected that the user stays on the module to be adjusted based on the input device or the touch point for a preset time, it can be determined that an adjustment interface display operation is detected. Furthermore, in response to the adjustment interface display operation, a module parameter adjustment interface corresponding to the module to be adjusted is displayed.
[0033] Among them, the module parameter adjustment interface can be a visual interface that supports users to adjust module parameters. In this embodiment, the module parameter adjustment interface can include a pre-created parameter adjustment control. The parameter adjustment control can be a control for implementing the module parameter adjustment function. The parameter adjustment control can be a button control, that is, the control can be triggered by a trigger operation to perform an operation associated with the control. It should be noted that the parameter adjustment control can be a pre-created operation type control that can implement the module parameter adjustment function. Those skilled in the art can understand that the Simulink module encapsulation provides three types of controls: parameter (Parameter) type, display (Display) type and operation (Action) type. Parameter type controls are used to create user input parameters participating in the simulation; Display type controls are used to group the contents of the Simulink module dialog box and display text and images; Action type controls are used to create hyperlinks and button controls on the Simulink module dialog box. In practical applications, module parameters can be created using Parameter type controls, however, this type of control cannot perform operations such as adding and deleting in the parameter callback (Callback), and thus, dynamic adjustment of parameters cannot be achieved.
[0034] In view of the above situation, based on the technical solution provided by the embodiment of the present invention, two types of controls, Display type controls and Action type controls, can be used to create parameter adjustment controls, and then, the parameters in the encapsulated module can be dynamically adjusted based on the parameter adjustment controls. Specifically, a button control in an Action type control can be added. Afterwards, a button callback function is added to the added button control. Afterwards, the Mask function interface is used in the button callback function to operate the Display type control to perform operations such as adding, deleting, modifying, and checking parameters. Then, the button control to which the button callback function is added is used as a parameter adjustment control, and the created parameter adjustment control is displayed on the module parameter adjustment interface.
[0035] Among them, the parameter adjustment control may include multiple types of controls. Optionally, the parameter adjustment control may include at least a parameter increase control, a parameter deletion control, a parameter modification control, and a parameter query control. The parameter increase control may be a control that can increase the number of parameters in the encapsulated module after being triggered. The parameter deletion control may be a control that can delete the parameters in the encapsulated module after being triggered. The parameter modification control may be a control that can modify the parameters in the encapsulated module after being triggered. The parameter query control may be a control that can query the parameters in the encapsulated module after being triggered.
[0036] It should be noted that the module parameter adjustment interface may also include the encapsulated parameters of the module to be adjusted. Further, when a parameter adjustment operation input to the module to be adjusted is detected, the encapsulated parameters in the module to be adjusted may be visualized based on the module parameter adjustment interface.
[0037] For example, Figure 2 Schematic diagram of the effect of the module parameter adjustment interface provided by the embodiment of the present invention. Figure 2 As shown, the module parameter adjustment interface includes a parameter adjustment control display area 21 and a parameter to be adjusted display area 22. The parameter adjustment control includes a parameter addition control, a parameter deletion control, a parameter modification control, and a parameter query control. The parameter to be adjusted may include two parameter groups, namely parameter group 1 and parameter group 2. Among them, parameter group 1 may include parameter A1 to be adjusted, parameter A2 to be adjusted, parameter A3 to be adjusted, and parameter A4 to be adjusted; parameter group 2 may include parameter B1 to be adjusted, parameter B2 to be adjusted, and parameter B3 to be adjusted.
[0038] S120 . In response to a parameter adjustment operation on a parameter adjustment control, update the parameters of the module to be adjusted based on the parameter adjustment operation, and display the updated parameters of the module to be adjusted on a module parameter adjustment interface.
[0039] Among them, the parameter adjustment operation can be understood as an operation to adjust the parameters in the encapsulated module. Optionally, the parameter adjustment operation may include a parameter adding operation, a parameter deleting operation, a parameter modifying operation, and a parameter querying operation. In this embodiment, the operation input to the parameter adding control may be a parameter adding operation; the operation input to the parameter deleting control may be a parameter deleting operation; the operation input to the parameter modifying control may be a parameter modifying operation; and the operation input to the parameter querying control may be a parameter querying operation. The adjusted module parameters to be adjusted may be module parameters obtained after adjusting the encapsulated module parameters in the module to be adjusted, and the module parameters may be parameters that meet the user's module parameter adjustment requirements.
[0040] In this embodiment, when a module parameter adjustment interface including a parameter adjustment control is displayed, a parameter adjustment operation can be input for any parameter adjustment control displayed on the interface according to the module parameter adjustment requirements. Further, the module parameters to be adjusted displayed on the interface can be updated based on the parameter adjustment operation to obtain updated module parameters to be adjusted. Further, the updated module parameters to be adjusted can be displayed on the module parameter adjustment interface.
[0041] Optionally, in response to a parameter adjustment operation on a parameter adjustment control, the parameters of the module to be adjusted are updated based on the parameter adjustment operation, including: in response to a control trigger operation on the parameter adjustment control, displaying a parameter adjustment page corresponding to the parameter adjustment control; wherein the parameter adjustment page includes parameter adjustment items; in response to an edit trigger operation on the parameter adjustment item, updating the parameters of the module to be adjusted based on the edit trigger operation.
[0042] Among them, the control trigger operation can be an operation that causes the control to perform a corresponding operation after being triggered. The control trigger operation can be any operation acting on the parameter adjustment control. Optionally, the control trigger operation can be a click operation acting on the parameter adjustment control. The click operation can include a single click operation or multiple click operations (such as a double-click operation, etc.). Alternatively, in order to facilitate user operation, the control trigger operation can also be detected when it is detected that the user's stay time on the parameter adjustment control based on the input device or the touch point reaches a preset time length, and then the control trigger operation can be determined. The parameter adjustment page can be a visual page that supports the user to perform the corresponding parameter adjustment operation on the adjustment parameter. It should be noted that the parameter adjustment page and the parameter adjustment control can be one-to-one corresponding, that is, the parameter adjustment page can include a parameter addition page, a parameter deletion page, a parameter modification page, and a parameter query page. Exemplarily, when a control trigger operation for a parameter addition control is detected, a parameter addition page can be displayed; when a control trigger operation for a parameter deletion control is detected, a parameter deletion page can be displayed; when a control trigger operation for a parameter modification control is detected, a parameter modification page can be displayed; when a trigger operation for a parameter query control is detected, a parameter query page can be displayed.
[0043] The parameter adjustment items may be used to adjust the module parameters. The parameter adjustment items may include parameter addition items, parameter deletion items, parameter modification items, parameter query items, etc. The edit trigger operation may be an operation for editing the module parameters after being triggered.
[0044] It should be noted that the parameter adjustment page can be displayed in multiple ways, optionally including popping up on the module parameter adjustment interface in the form of a dialog box; or jumping from the module parameter adjustment interface to the parameter adjustment page; or displaying on the module parameter adjustment interface in the form of a drop-down panel, etc.
[0045] As an optional implementation of this embodiment, when a module parameter adjustment interface including a parameter adjustment control is displayed, a control trigger operation can be input for the parameter adjustment control. Then, in response to the control trigger operation, a parameter adjustment page corresponding to the parameter adjustment control is displayed, and the parameter adjustment page may include parameter adjustment items corresponding to the parameter adjustment control. Further, an edit trigger operation can be input for the parameter adjustment item, and then, in response to the edit trigger operation, the module parameters to be adjusted are updated based on the edit trigger operation to obtain updated module parameters to be adjusted. Then, the updated module parameters to be adjusted can be displayed on the module parameter adjustment interface.
[0046] For example, Figure 3 This is a schematic diagram of the effect of the parameter adjustment process provided by an embodiment of the present invention. Figure 2 , in the case of detecting a control trigger operation for a parameter adding control, responding to the control trigger operation. Further, a parameter adding page can be popped up on the module parameter adjustment interface in the form of a dialog box, such as Figure 3 a. The parameter adding page includes parameter adding items, which include parameter group editing box and parameter value editing box. Then, you can enter "2" in the parameter group editing box and "B4" in the parameter value editing box. When the trigger operation for the "OK" control is detected, the adjusted module parameters to be adjusted can be obtained and displayed on the module parameter adjustment interface, as shown in the figure. Figure 3 As shown in b.
[0047] The technical solution of the embodiment of the present invention displays a module parameter adjustment interface corresponding to the module to be adjusted in response to an adjustment interface display operation input to the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and module parameters to be adjusted, and further, in response to the parameter adjustment operation on the parameter adjustment control, the module parameters to be adjusted are updated based on the parameter adjustment operation, and the updated module parameters to be adjusted are displayed on the module parameter adjustment interface, thereby solving the problem in the related art that the module parameters of the encapsulated Simulink module cannot be adjusted in real time and dynamically in the old version of Matlab, and further, the module functions cannot be adjusted in real time and dynamically, and the effect of being able to adjust the module parameters of the encapsulated module in the target version of Matlab in real time and dynamically is achieved, thereby enhancing the functional diversity of the target version of Matlab and improving the intelligence of the target version of Matlab.
[0048] Embodiment 2
[0049] Figure 4This is a flow chart of a module parameter adjustment method provided by the second embodiment of the present invention. Based on the above embodiment, before responding to the adjustment interface display operation inputted to the module to be adjusted, a parameter adjustment control can be created first, and then the module parameters of the module to be adjusted can be adjusted based on the parameter adjustment control. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to those in the above embodiment are not repeated here.
[0050] like Figure 4 As shown, the method includes:
[0051] S210 . In response to a module encapsulation creation operation input for a module to be encapsulated, display a package editing interface corresponding to the module to be encapsulated; wherein the package editing interface includes a package interface editing item.
[0052] Wherein, the module to be packaged may be a module to be packaged. In this embodiment, the module package creation operation may be understood as an operation for creating a module package. The module package creation operation may be any operation acting on the module to be packaged. Optionally, the module package creation operation may be a click operation input for the module to be packaged. Wherein, the click operation may be a single click operation or a multiple click operation (such as a double-click operation, etc.). Exemplarily, when it is detected that the user inputs a right click operation to the module to be packaged through an input device or a touch point, a module edit menu may be displayed in the vicinity of the module to be packaged, and the module edit menu includes a module package item. Further, when a left click operation input for the module package item is detected, it can be determined that the module package creation operation is detected. Alternatively, in order to facilitate user operation, the module package creation operation for the module to be packaged may also be that when it is detected that the user stays on the module to be packaged through an input device or a touch point for a preset duration, a module edit menu may be displayed, and the module edit menu includes a package creation item. Further, when a left click operation input for the package creation item is detected, it can be determined that the module package creation operation is detected. Furthermore, in response to the module encapsulation creation operation, a package editing interface corresponding to the module to be encapsulated is displayed.
[0053] Among them, the encapsulation editing interface can be a visual interface that supports users to create and edit module encapsulation. The encapsulation editing interface includes encapsulation interface editing items. The encapsulation interface editing items can be used to add controls in the encapsulation interface and manage the encapsulation interface layout. The encapsulation interface can be understood as after the module encapsulation is created and the module to be adjusted is obtained, when the adjustment interface display operation input for the module to be adjusted is detected, in response to the adjustment interface display operation, the displayed interface can be the encapsulation interface. Exemplarily, the encapsulation interface editing item can be the Parameters & Dialog item in the Matlab software. It should be noted that the encapsulation editing interface can also include encapsulation icon editing items, initialization items, and document editing items.
[0054] In this embodiment, when a module encapsulation creation operation input for a module to be encapsulated is detected, an encapsulation editing interface including an encapsulation interface editing item may be displayed.
[0055] S220. In response to an edit triggering operation on an encapsulation interface editing item, display an encapsulation interface editing page; wherein the encapsulation interface editing page includes a control to be created.
[0056] Among them, the editing trigger operation can be understood as an operation of performing custom editing on the package interface after being triggered. The editing trigger operation can be a click operation input for the package interface editing item. The click operation can be a single click operation or a multiple click operation (such as a double-click operation). Alternatively, when it is detected that the user stays on the package interface editing item through the input device or touch point for a preset time, it can be determined that the editing trigger operation is detected. Then, in response to the editing trigger operation, the package interface editing page is displayed.
[0057] Among them, the encapsulation interface editing page can be understood as a visual page that supports users to perform custom editing on the encapsulation interface. It should be noted that the display method of the encapsulation interface editing page can include multiple methods. Optionally, the encapsulation interface editing items and other editing items can be displayed in the encapsulation editing interface in the form of tabs. Furthermore, when an editing trigger operation for the encapsulation interface editing item is detected, the encapsulation interface editing page corresponding to the corresponding tab based on the encapsulation editing interface can be displayed. Alternatively, when an editing trigger operation for the encapsulation interface editing item is detected, the encapsulation interface editing page can be displayed in the form of a dialog box based on the encapsulation editing interface. Alternatively, when an editing trigger operation for the encapsulation interface editing item is detected, the encapsulation interface editing page can be jumped from the encapsulation editing interface to the encapsulation interface editing page, so as to display the encapsulation interface editing page based on the display interface, etc.
[0058] In this embodiment, the encapsulation interface editing page includes a control to be created. The control to be created may be a blank control, that is, a control that cannot perform any operation. Generally, a control to be created can be obtained by adding operation execution logic to the control to be created. Furthermore, the corresponding operation can be performed by triggering the control to be created.
[0059] It should be noted that the encapsulation interface editing page may also include a control display area and an interface layout display area. The control display area may be used to display various types of controls required for encapsulating a Simulink module. The control display area includes an operation type control. The control display area may also include a parameter type control and a display type control. The interface layout display area may be used to display the area of each control added to the encapsulation interface. In other words, the content ultimately displayed in the encapsulation interface may be determined based on the content displayed in the interface layout display area. In this embodiment, the control to be created is an operation type button control, and then, the operation type control in the control display area may be edited to add the control to be created to the interface layout display area, and then, the control to be created may be edited to obtain the created control.
[0060] Based on the above technical solutions, it also includes: in response to a click trigger operation input to an operation type control, displaying a control editing item corresponding to the operation type control; wherein the control editing item includes a hyperlink control and a button control; in response to a click trigger operation input to a button control, adding the control to be created to the interface layout display area.
[0061] Among them, the control editing item can be used to edit the specific content of the operation type control. The Hyperlink control can create a link on a web page, allowing users to move between various web pages in the application. The Button control can be used to respond to user commands. The button responds to click events, allowing users to perform corresponding operations by clicking.
[0062] As an optional implementation of this embodiment, a click trigger operation can be input for the operation type control. Then, in response to the click trigger operation, a control editing item corresponding to the operation type control is displayed in the adjacent display area of the operation type control, and the control editing item includes a hyperlink control and a button control. Further, a click trigger operation can be input for the button control, and then, in response to the click trigger operation, the control to be created is added to the interface layout display area, so that the control to be created is displayed on the package interface editing page.
[0063] S230: In response to a control creation operation for a control to be created, determine a parameter adjustment control corresponding to the control creation operation.
[0064] The control creation operation may be an operation for adding execution logic to the control to be created to create the control. Optionally, the control creation operation includes at least adding a control creation operation, deleting a control creation operation, modifying a control creation operation, and searching for a control creation operation.
[0065] In this embodiment, a control creation operation may be input for the control to be created. Then, the control may be edited based on the control creation operation, and then, an edited parameter adjustment control corresponding to the control creation operation may be obtained.
[0066] Optionally, in response to a control creation operation for the control to be created, a parameter adjustment control corresponding to the control creation operation is determined, including: in response to a click trigger operation for the control to be created, displaying a control editing page; wherein the control editing page includes a property editing item; in response to an edit trigger operation for the property editing item, displaying the property editing page; in response to a callback function adding operation input into the property editing page, determining an added button callback function, and creating a parameter adjustment control corresponding to the button callback function.
[0067] Among them, the control editing page can be understood as a visual page that supports users to perform custom editing on the control to be rebuilt. Optionally, the click trigger operation can include a single click trigger operation or a multiple click trigger operation. The property editing item can be used to edit the callback property of the control to be created. The property editing page can be understood as a visual page that supports users to perform custom editing on the callback property of the control to be created. The callback function adding operation can be understood as the operation of adding a callback function in the visual page. It can be understood that the callback function is a special function that passes parameters to another function and is called after the called function is executed. The callback function can call a predefined function to process the result after the asynchronous operation is completed. The button callback function can be understood as a function executed after the user clicks the button. It should be noted that different function interfaces can be used to make the obtained button callback function perform different operations. Optionally, the parameter adjustment control corresponding to the button callback function obtained by the Mask.addDialogControl function interface is used as the parameter addition control; the parameter adjustment control corresponding to the button callback function obtained by the Mask.getDialogControl function interface is used as the parameter query control; the parameter adjustment control corresponding to the button callback function obtained by the Mask.removeDialogControl function interface is used as the parameter deletion control.
[0068] As an optional implementation of this embodiment, a click trigger operation can be input for the control to be created, and then, in response to the click trigger operation, a control editing page is displayed, and the control editing page includes a property editing item. Further, an edit trigger operation can be input for the property editing item. Then, in response to the edit trigger operation, the property editing page is displayed. Then, a callback function adding operation can be input for the property editing page, and a button callback function is added to the property editing page. Then, the added button callback function is determined. Then, in the case of detecting a trigger operation for the edit completion control, a parameter adjustment control corresponding to the added button callback function can be created.
[0069] In this embodiment, the callback function adding operation inputted into the property editing page may include multiple operations, and may optionally include a callback function editing operation or a callback function calling operation.
[0070] Optionally, in response to a callback function adding operation input for the property editing page, determining the added button callback function includes: responding to a callback function editing operation input for the property editing page, and determining the added button callback function based on the callback function editing operation.
[0071] The callback function editing operation may be understood as an operation of manually editing the callback function in the page.
[0072] As an optional implementation of this embodiment, a callback function editing operation can be input for the property editing page to edit the corresponding button callback function on the property editing page based on the callback function editing operation. Furthermore, the added button callback function can be determined according to the edited content on the property editing page.
[0073] Optionally, in response to a callback function adding operation input for the property editing page, determining the added button callback function, including: in response to a callback function calling operation input for the property editing page, displaying at least one candidate callback function; in response to a selection trigger operation for the candidate callback function, using the selected candidate callback function as the added button callback function, and displaying the button callback parameters in the property editing page.
[0074] Among them, the callback function calling operation can be understood as the operation performed when calling the callback function. The candidate callback function can be a pre-stored callback function to be selected. In this embodiment, multiple button callback functions can be pre-written, and the written multiple button callback functions can be stored in the target storage space as candidate callback functions. It should be noted that the selection trigger operation for the candidate callback function can be any operation input to the candidate callback function. Optionally, the selection trigger operation can be a click operation input to the candidate callback function. Among them, the click operation can be a single click operation or a multiple click operation. Alternatively, the selection trigger operation can also be that when it is detected that the user stays on any candidate callback function through an input device or a touch point for a preset time, it can be determined that the selection trigger operation is detected, and the candidate callback function is used as the selected candidate callback function.
[0075] As an optional implementation of this embodiment, when a callback function call operation is detected for the input of the property editing page, the callback function call operation is responded to and at least one candidate callback function is displayed. Further, when a selection trigger operation for any candidate callback function is detected, the selection trigger operation is responded to and the candidate callback function is used as the selected candidate callback function. Furthermore, the selected candidate callback function can be used as the added button callback function, and the button callback function is displayed in the property editing page.
[0076] S240 . In response to the module encapsulation completion operation, a module to be adjusted is obtained.
[0077] Among them, the module encapsulation completion operation may be an operation used to indicate that the module encapsulation process has been completed. Optionally, the module encapsulation completion operation may include at least one of the following: triggering the encapsulation completion control; the audio information includes a wake-up word that triggers the encapsulation completion; receiving a piece of program code, the program code is used to indicate that the module encapsulation is complete, etc. Exemplarily, the encapsulation completion control can be pre-set on the encapsulation editing interface, and then, when a trigger operation for the encapsulation completion control is detected, it can be determined that the module encapsulation completion operation is detected. Furthermore, in response to the module encapsulation completion operation, a module to be encapsulated that has been encapsulated is obtained, and the module to be encapsulated that has been encapsulated is used as a module to be adjusted.
[0078] S250. In response to an adjustment interface display operation input for the module to be adjusted, a module parameter adjustment interface corresponding to the module to be adjusted is displayed; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and the module parameters to be adjusted.
[0079] S260 , in response to the parameter adjustment operation on the parameter adjustment control, updating the parameters of the module to be adjusted based on the parameter adjustment operation, and displaying the updated parameters of the module to be adjusted on the module parameter adjustment interface.
[0080] The technical solution of the embodiment of the present invention is to display a packaging editing interface corresponding to the module to be packaged in response to a module packaging creation operation input for the module to be packaged; wherein the packaging editing interface includes a packaging interface editing item, and further, in response to an edit trigger operation for the packaging interface editing item, a packaging interface editing page is displayed; wherein the packaging interface editing page includes a control to be created, and further, in response to a control creation operation for the control to be created, a parameter adjustment control corresponding to the control creation operation is determined, and further, in response to a module packaging completion instruction, the module to be adjusted is obtained, thereby achieving the effect of customizing the creation of a parameter adjustment control in the target version of Matlab, and further, achieving the effect of real-time and dynamic adjustment of the module parameters of the packaged module based on the created parameter adjustment control.
[0081] Embodiment 3
[0082] Figure 5 Schematic diagram of the structure of a module parameter adjustment device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device is configured in the target version of Matlab, and includes: an interface display module 310 and a parameter adjustment module 320 .
[0083] Among them, the interface display module 310 is used to display the module parameter adjustment interface corresponding to the module to be adjusted in response to the adjustment interface display operation input for the module to be adjusted; wherein the module parameter adjustment interface includes pre-created parameter adjustment controls and module parameters to be adjusted; the parameter adjustment controls at least include parameter addition controls, parameter deletion controls, parameter modification controls and parameter query controls; the parameter adjustment module 320 is used to respond to the parameter adjustment operation for the parameter adjustment control, update the parameters of the module to be adjusted based on the parameter adjustment operation, and display the updated parameters of the module to be adjusted on the module parameter adjustment interface.
[0084] The technical solution of the embodiment of the present invention displays a module parameter adjustment interface corresponding to the module to be adjusted in response to an adjustment interface display operation input to the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and module parameters to be adjusted, and further, in response to the parameter adjustment operation on the parameter adjustment control, the module parameters to be adjusted are updated based on the parameter adjustment operation, and the updated module parameters to be adjusted are displayed on the module parameter adjustment interface, thereby solving the problem in the related art that the module parameters of the encapsulated Simulink module cannot be adjusted in real time and dynamically in the old version of Matlab, and further, the module functions cannot be adjusted in real time and dynamically, and the effect of being able to adjust the module parameters of the encapsulated module in the target version of Matlab in real time and dynamically is achieved, thereby enhancing the functional diversity of the target version of Matlab and improving the intelligence of the target version of Matlab.
[0085] Optionally, the device further includes: a package editing interface display module, a package interface editing page display module, a control creation module and a module package completion module.
[0086] A package editing interface display module, for displaying a package editing interface corresponding to the module to be packaged in response to a module package creation operation input for the module to be packaged; wherein the package editing interface includes a package interface editing item;
[0087] An encapsulation interface editing page display module, used to display an encapsulation interface editing page in response to an edit trigger operation on the encapsulation interface editing item; wherein the encapsulation interface editing page includes a control to be created;
[0088] A control creation module, configured to determine, in response to a control creation operation for the control to be created, a parameter adjustment control corresponding to the control creation operation; wherein the control creation operation includes at least one of adding a control creation operation, deleting a control creation operation, modifying a control creation operation, and searching for a control creation operation;
[0089] The module encapsulation completion module is used to obtain the module to be adjusted in response to the module encapsulation completion instruction.
[0090] Optionally, the control creation module includes: a control click submodule, a property editing submodule and a callback function determination submodule.
[0091] A control click submodule, for displaying a control editing page in response to a click trigger operation on the control to be created; wherein the control editing page includes a property editing item;
[0092] The property editing submodule is used to display a property editing page in response to an edit triggering operation on the property editing item;
[0093] The callback function determination submodule is used to determine the added button callback function in response to the callback function adding operation input to the property editing page, and to create a parameter adjustment control corresponding to the button callback function.
[0094] Optionally, the callback function determination submodule includes: a callback function editing unit.
[0095] The callback function editing unit is used to respond to a callback function editing operation input to the property editing page, and determine the added button callback function based on the callback function editing operation.
[0096] Optionally, the callback function determination submodule includes: a candidate callback function display unit and a callback function determination unit.
[0097] A candidate callback function display unit, configured to display at least one candidate callback function in response to a callback function call operation input on the property editing page;
[0098] The callback function determination unit is used to respond to the selection trigger operation on the candidate callback function, use the selected candidate callback function as the added button callback function, and display the button callback parameters in the property editing page.
[0099] Optionally, the package interface editing page includes a control display area and an interface layout display area; the control display area includes an operation type control; and the device further includes: a control editing item display module and a control adding module.
[0100] A control editing item display module, used for displaying a control editing item corresponding to the operation type control in response to a click trigger operation input to the operation type control after the package interface editing page is displayed; wherein the control editing item includes a hyperlink control and a button control;
[0101] The control adding module is used to add the control to be created to the interface layout display area in response to a click trigger operation input to the button control.
[0102] Optionally, the parameter adjustment module 320 includes: a parameter adjustment page display unit and a parameter adjustment unit.
[0103] A parameter adjustment page display unit, configured to display a parameter adjustment page corresponding to the parameter adjustment control in response to a control triggering operation on the parameter adjustment control; wherein the parameter adjustment page includes parameter adjustment items;
[0104] The parameter adjustment unit is used to respond to an edit trigger operation on the parameter adjustment item and update the parameter of the module to be adjusted based on the edit trigger operation.
[0105] The module parameter adjustment device provided in the embodiment of the present invention can execute the module parameter adjustment method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0106] Embodiment 4
[0107] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0108] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0109] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a module parameter adjustment method.
[0111] In some embodiments, the module parameter adjustment method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the module parameter adjustment method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the module parameter adjustment method in any other appropriate manner (e.g., by means of firmware).
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0117] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0119] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A module parameter adjustment method, characterized in that: Applicable to the target version of Matlab, including: In response to an adjustment interface display operation input for a module to be adjusted, a module parameter adjustment interface corresponding to the module to be adjusted is displayed; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and the module parameters to be adjusted; the parameter adjustment control includes at least a parameter adding control, a parameter deleting control, a parameter modifying control and a parameter query control; In response to a parameter adjustment operation on the parameter adjustment control, the module parameters to be adjusted are updated based on the parameter adjustment operation, and the updated module parameters to be adjusted are displayed on the module parameter adjustment interface.
2. The module parameter adjustment method according to claim 1, characterized in that: Also includes: In response to a module encapsulation creation operation input for a module to be encapsulated, a package editing interface corresponding to the module to be encapsulated is displayed; wherein the package editing interface includes a package interface editing item; In response to an edit trigger operation on the encapsulation interface edit item, displaying an encapsulation interface edit page; wherein the encapsulation interface edit page includes a control to be created; In response to a control creation operation for the control to be created, determining a parameter adjustment control corresponding to the control creation operation; wherein the control creation operation includes at least one of adding a control creation operation, deleting a control creation operation, modifying a control creation operation, and searching for a control creation operation; In response to the module encapsulation completion instruction, a module to be adjusted is obtained.
3. The module parameter adjustment method according to claim 2, characterized in that: The step of determining, in response to a control creation operation for the control to be created, a parameter adjustment control corresponding to the control creation operation comprises: In response to a click trigger operation on the control to be created, a control editing page is displayed; wherein the control editing page includes a property editing item; In response to an edit triggering operation on the attribute editing item, displaying an attribute editing page; In response to a callback function adding operation inputted to the property editing page, the added button callback function is determined, and a parameter adjustment control corresponding to the button callback function is created.
4. The module parameter adjustment method according to claim 3, characterized in that: The step of determining the added button callback function in response to the callback function adding operation inputted on the property editing page comprises: In response to a callback function editing operation inputted to the property editing page, the added button callback function is determined based on the callback function editing operation.
5. The module parameter adjustment method according to claim 3, characterized in that: The step of determining the added button callback function in response to the callback function adding operation inputted on the property editing page comprises: In response to a callback function calling operation input on the property editing page, displaying at least one candidate callback function; In response to a selection trigger operation on the candidate callback function, the selected candidate callback function is used as the added button callback function, and the button callback parameters are displayed in the property editing page.
6. The module parameter adjustment method according to claim 2, characterized in that: The package interface editing page includes a control display area and an interface layout display area; the control display area includes an operation type control; After the package interface editing page, it also includes: In response to a click trigger operation input to the operation type control, displaying a control editing item corresponding to the operation type control; wherein the control editing item includes a hyperlink control and a button control; In response to a click trigger operation input to the button control, the control to be created is added to the interface layout display area.
7. The module parameter adjustment method according to claim 1, characterized in that: In response to the parameter adjustment operation on the parameter adjustment control, updating the parameter of the module to be adjusted based on the parameter adjustment operation includes: In response to a control triggering operation on the parameter adjustment control, displaying a parameter adjustment page corresponding to the parameter adjustment control; wherein the parameter adjustment page includes parameter adjustment items; In response to an edit triggering operation on the parameter adjustment item, the to-be-adjusted module parameter is updated based on the edit triggering operation.
8. A module parameter adjustment device, characterized in that: Configured in the target version of Matlab, including: An interface display module, for displaying a module parameter adjustment interface corresponding to the module to be adjusted in response to an adjustment interface display operation input for the module to be adjusted; wherein the module parameter adjustment interface includes a pre-created parameter adjustment control and the module parameters to be adjusted; the parameter adjustment control includes at least a parameter adding control, a parameter deleting control, a parameter modifying control and a parameter query control; The parameter adjustment module is used to respond to the parameter adjustment operation on the parameter adjustment control, update the parameters of the module to be adjusted based on the parameter adjustment operation, and display the updated parameters of the module to be adjusted on the module parameter adjustment interface.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the module parameter adjustment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the module parameter adjustment method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Scenario mode management method and electronic device
WO2026208284A1
