CN112527276B - Data updating method and device in visual programming tool and terminal equipment - Google Patents

Data updating method and device in visual programming tool and terminal equipment Download PDF

Info

Publication number
CN112527276B
CN112527276B CN202011468931.6A CN202011468931A CN112527276B CN 112527276 B CN112527276 B CN 112527276B CN 202011468931 A CN202011468931 A CN 202011468931A CN 112527276 B CN112527276 B CN 112527276B
Authority
CN
China
Prior art keywords
data
code block
function
storage module
functional
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011468931.6A
Other languages
Chinese (zh)
Other versions
CN112527276A (en
Inventor
苏满棠
王轶丹
崔宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202011468931.6A priority Critical patent/CN112527276B/en
Publication of CN112527276A publication Critical patent/CN112527276A/en
Application granted granted Critical
Publication of CN112527276B publication Critical patent/CN112527276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application is applicable to the technical field of data updating, and provides a data updating method, a device and terminal equipment in a visual programming tool, wherein the method comprises the following steps: when the first functional data in the first code block is updated, the first code block sends data modification information to the second code block, wherein the first code block is any code block in the visual programming tool, and the second code block is the code block determined based on the first code block in the visual programming tool; after the second code block receives the data modification information, the second code block updates second functional data in the second code block; according to the method and the device, all code blocks are not required to be traversed to search the code blocks needing to be modified, data modification information is only required to be sent to the second code blocks through the first code blocks, and then the second code blocks modify second functional data stored in the second code blocks, so that the data updating efficiency is improved, and the data updating accuracy is guaranteed.

Description

Data updating method and device in visual programming tool and terminal equipment
Technical Field
The application belongs to the technical field of data updating, and particularly relates to a data updating method, device and terminal equipment in a visual programming tool.
Background
A user of a visual programming tool, such as a user of Block ly, can write a program without the skill of writing programming code. The command and parameter of the visual programming tool are graphic code blocks, which are similar to various 'building blocks', and the user only needs to move the mouse to make the various code blocks mutually combined and matched, so as to output the program codes of the appointed language.
As more and more people use visual programming tools, the data in the visual programming tools needs to be updated continuously to meet the needs of the user. Currently, it is mainly artificial to find a code block that needs to update data, and then to modify the data in the code block. Because the number of code blocks in the visual programming tool is large, human modification is more time-consuming and errors are easily missed.
Disclosure of Invention
The embodiment of the application provides a data updating method, device and terminal equipment in a visual programming tool, which can solve the problems of low updating efficiency and inaccurate updating of data in the visual programming tool at present.
In a first aspect, an embodiment of the present application provides a method for updating data in a visual programming tool, including:
when first functional data in a first code block is updated, the first code block sends data modification information to a second code block, wherein the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool;
after the second code block receives the data modification information, the second code block updates second functional data in the second code block.
In a second aspect, embodiments of the present application provide a visual programming tool comprising:
the system comprises a first code block and a second code block, wherein the first code block is used for sending data modification information to the second code block after first functional data in the first code block are updated, the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool;
and the second code block is used for updating second functional data in the second code block after receiving the data modification information.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of updating data in the visual programming tool of any of the first aspects above when the computer program is executed by the processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the method for updating data in a visual programming tool according to any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the method for data update in a visual programming tool as described in any one of the first aspects above.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that: when the first functional data in the first code block is updated, the first code block sends data modification information to the second code block, wherein the first code block is any code block in the visual programming tool, and the second code block is the code block determined based on the first code block in the visual programming tool; after the second code block receives the data modification information, the second code block updates second function data in the second code block; according to the method and the device, all code blocks are not required to be traversed to search the code blocks needing to be modified, the data modification information is only required to be sent to the second code blocks through the first code blocks, and then the second code blocks which receive the data modification information modify the second function data stored by the second code blocks, so that the data updating efficiency is improved, the data updating accuracy is guaranteed, and the data needing to be updated cannot be missed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a code block in Block according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an application scenario of a data update method in a visual programming tool according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for updating data in a visual programming tool according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for updating second function data according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a visual programming tool according to one embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when … …" or "upon" or "in response to determining" or "in response to detecting". Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Currently, if the data in the code blocks in the visual programming tool needs to be modified, for convenience of description, the application uses blocking as an example, but is not limited to blocking, and after modifying the data in one code block, all the code blocks in blocking need to be traversed, and the code blocks with the same function as the modified code blocks are searched for data modification. The modification method has the advantages of larger performance loss and longer modification time. The Block ly is a fully visual modularized programming website, belongs to a graphical programming language, and a user develops an application program in a mode of dragging a jigsaw, and does not need any code writing.
As shown in fig. 1, code blocks 1, 2, 3, and 4 in the block are code blocks with the same function, and all include options of face test, face recording, and face deletion. If the test face option in code block 2 is deleted, then all code blocks in Blockly need to be traversed, then code blocks 1, 2, 3 and 4 are found, and the test face option in code blocks 1, 2, 3 and 4 is deleted.
According to the data updating method, all code blocks in the Block can be not traversed, the code blocks with the same function can be quickly modified, performance loss is reduced, and efficiency is improved.
Fig. 2 is an application scenario schematic diagram of a data updating method in a visual programming tool according to an embodiment of the present application, where the data updating method in the visual programming tool may be used to update data in a code block in the visual programming tool. When the first function data in the first code block 10 changes, the initial data in the function storage module 20 associated with the first code block 10 is modified, then the first code block 10 notifies the second code block 30 associated with the first code block 10 that the initial data in the function storage module 20 changes, and the second code block 30 acquires the modified initial data from the function storage module 20 to update the second function data stored in itself; thereby completing the updating of the data in the code blocks having the same function.
The following describes in detail the data updating method in the visual programming tool according to the embodiment of the present application with reference to fig. 2.
FIG. 3 shows a schematic flow chart of a method of data update in a visual programming tool provided herein, and with reference to FIG. 3, the method is described in detail as follows:
s101, when first functional data in a first code block are updated, the first code block sends data modification information to a second code block, wherein the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool.
In this embodiment, the first code block is a code block in which a program is stored that can realize a certain function. The first function data is data of a function which can be realized by the first code block, and the first function data can comprise one function and/or data or multiple functions and/or data, for example, the first function data can comprise face detection, face deletion, face recording and the like.
The first function data update may include deleting data, adding data, modifying data, and the like.
By way of example, if the first function data includes A, B and C, the first function data change may be to delete a.
In this embodiment, the second code block is a code block having the same function and/or data as the first code block, i.e. the first functional data and the second functional data are the same. The same code blocks as the first code block function and/or data may be one or more, and thus, the second code block may be one or more.
By way of example, if the function of the first code block includes a and B and the function of the second code block includes C, the functions of the first code block and the second code block are different; if the function of the second code block also includes A and B, then the first code block and the second code block are code blocks that are functionally identical.
In this embodiment, a drop-down menu or a function menu may be set in the first code block, where the drop-down menu or the function menu is generated based on the first function data, and an option set in the drop-down menu or the function menu corresponds to the first function data, for example, the first function data includes a test face and a record, and the drop-down menu or the function menu may include an option to delete the test face and delete the record. A drop down menu or a function menu may be set in the second code block, the drop down menu or the function menu being generated based on the second function data. Since the first function data and the second function data are identical, the drop-down menu or the function menu of the first code block and the second code block are identical. When an option of a drop down menu or a function menu is selected, first function data corresponding to the option will be modified.
In this embodiment, the event listener may be used to listen to the first code block, thereby determining whether the first function data in the first code block changes.
After the event monitor monitors that the first functional data changes, the first code block sends data modification information to the second code block by using the event distributor. The first code block and the second code block may be preset as associated code blocks.
Alternatively, the data modification information may be an event, a broadcast, or the like, by which the second code block is notified that the first function data in the first code block has changed.
Optionally, the data modification information may further include updated first function data, or include a specific modification policy of the first function data, for example, the modification policy may be which function is deleted, which function is added, which data is modified, or the like.
S102, after the second code block receives the data modification information, the second code block updates second function data in the second code block.
In this embodiment, after the second code block receives the data modification information, the second code block may actively modify the second function data.
Alternatively, if the updated first function data is included in the data modification information, the second function data may be directly replaced with the updated first function data or modified according to the updated first function data.
Optionally, if the data modification information includes a specific modification policy of the first functional data, the second functional data may be modified according to the specific modification policy of the first functional data, for example, the specific modification policy of the first functional data is deleting a, and the second code block directly deletes a in the second functional data after receiving the data modification information.
In the embodiment of the application, when the first functional data in the first code block changes, the first code block sends data modification information to the second code block, and the second code block updates the second functional data after receiving the data modification information; according to the method and the device, the first code block is used for sending the data modification information to the second code block, the second code block needing to modify the data is informed to modify the data, all the code blocks need not to be traversed to search the code blocks needing to modify the data, the working efficiency is improved, the code blocks needing to modify the data cannot be omitted, and the code blocks are modified more accurately.
In one possible implementation manner, before the first code block sends the data modification information to the second code block in step S101, the method may further include:
and modifying initial data in a function storage module associated with the first code block based on the updated first function data to obtain a function storage module containing target data, wherein the initial data in the function storage module has a corresponding relation with the first function data.
In this embodiment, after the first function data in the first code block is updated, the first code block modifies the initial data in the function storage module associated with the first code block.
The function memory module may be a data repository, and the initial data stored in the function memory module corresponds to the first function data in the first code block one by one, that is, the function data stored in the function memory module is the first code block and the second code block having the same function as the first code block.
By way of example, if the first functional data includes: a and B. The initial data stored in the function storage module includes: a 'corresponding to a and B' corresponding to B; or the initial data stored in the function storage module includes: a and B.
In this embodiment, the modification of the initial data is performed according to the update of the first functional data, what data is modified by the first functional data, and what data is modified by the initial data.
Optionally, the code blocks same as the initial data in the functional storage module can all establish an association relationship with the functional storage module, so that data transmission is facilitated.
In this embodiment, after the initial data in the function storage module is modified, the second code block may update the second function data based on the modified initial data.
Specifically, determining a change strategy of initial data in the function storage module associated with the first code block based on the updated first function data, wherein the first function data is identical to the initial data; and modifying the initial data in the functional storage module based on the change strategy of the initial data to obtain target data.
In this embodiment, after the first function data is updated, a change policy of the first function data may be generated. The change strategy of the first function data is the change strategy of the initial data in the function storage module. And finally, modifying the initial data according to the change strategy of the initial data.
As an example, if the first function data adds a face recognition function, the change policy of the first function data is: the face recognition function is added. The change strategy of the initial data is: the face recognition function is added. Adding a face recognition function to the initial data to obtain target data.
If the first function data deletes the face recognition function, the change strategy of the first function data is: and deleting the face recognition function. The change strategy of the initial data is: and deleting the face recognition function. The face recognition function is deleted from the initial data to obtain target data or the face recognition function in the initial data is marked with a "-" sign to indicate that the face recognition function has been deleted.
In the embodiment of the application, the initial data in the function storage module is changed through the first function data, the first function data can be stored in the function storage module through setting up the function storage module, and when the second code block is updated later, the data in the function storage data is updated, so that the data searching or the data updating in the second code block is simpler and more convenient.
In one possible implementation, after the initial data in the function storage module is updated, data modification information may be sent to the second code block to inform the second code block that the initial data in the function storage module is updated. Thus, before the first code block transmits the data modification information to the second code block in step S101, the above method may further include:
it is determined whether the initial data in the functional storage module was successfully modified.
Specifically, if the information of successful modification returned by the function storage module is received within the preset time, the success of the initial data modification in the function storage module is determined.
In this embodiment, after the first code block sends the data modification request to the function storage module, if the initial data modification in the function storage module is completed, the function storage module returns a message or response that the modification is successful. And the function storage module receives the successful modification information returned by the function storage module, and can determine that the initial data in the function storage module is modified. After the initial data modification is successful, the first code block sends data modification information to the second code block.
In this embodiment, the preset time may be set as needed.
As shown in fig. 4, in one possible implementation, the implementation procedure of step S102 may include:
s1021, the second code block obtains target data in the functional storage module, wherein the target data is the updated initial data.
In this embodiment, the function menu in the second code block is provided with functions of event listening and event distribution. And monitoring the event through an event monitor, and after monitoring the data modification information sent by the first code block, sending a data acquisition request to the functional storage module by the second code block, and applying for acquiring target data to the functional storage module.
And S1022, replacing the second function data with the target data to obtain updated second function data, wherein the second function data of the second code block is identical to the first function data in the first code block.
In this embodiment, after the second code block obtains the target data in the function storage module, the second function data is replaced with the target data, so as to obtain updated second function data.
Optionally, after the target data is obtained, the second function data may be modified based on the target data, to obtain updated second function data.
Specifically, if the target data includes a and B data, the second function data includes A, B and C data. And if the C data is deleted from the target data, deleting the C data in the second functional data.
In one possible implementation, before step 101, the method may further include:
the first code block modifies the first functional data in the first code block.
Specifically, the first code block receives a data modification instruction of first functional data in the first code block; based on the data modification instruction, the first code block updates first function data corresponding to a function menu in the first code block.
In this embodiment, the function menu in the first code block is generated based on the first function data. The function menu in the first code block is provided with functions of event listening and event distribution. And monitoring the event through an event monitor, and modifying the first function data after the first code block monitors the data modification instruction, for example, deleting the A function in the function menu by a user, and deleting the data corresponding to the A function in the first function data.
The data modification instruction may be a modification instruction of the first function data generated by manual clicking, or a received data modification instruction transmitted by other devices.
The data modification instruction includes a policy for modifying the first functional data, for example, deleting a data, adding B data, and the like.
It should be noted that the visual programming tool may further include a third code block, a fourth code block, a fifth code block, and the like, where data in the code blocks may be updated by using the method in the present application.
In one possible implementation, the method of data update in a visual programming tool may further include:
s201, when the first function data in the first code block A is updated, the first code block A modifies the initial data in the function storage module W, wherein the initial data in the function storage module W corresponds to the first function data.
S202, the first code block A distributes events to the second code block B and the second code block C, and informs the second code block B and the second code block C that initial data in a function storage module changes, wherein the functions of the second code block B and the second code block C are the same as those of the first code block A.
S203, after the second code block B monitors the event notification of the first code block A, updated initial data is obtained from the function storage module, and the second function data in the second code block B is replaced by the updated initial data.
After the second code block C monitors the event notification of the first code block a, updated initial data is obtained from the function storage module, and the second function data in the second code block C is replaced with the updated initial data.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the method for updating data in the visual programming tool described in the above embodiments, fig. 5 shows a block diagram of the visual programming tool provided in the embodiment of the present application, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown.
Referring to fig. 5, the visual programming tool 300 may include: a first code block 310 and a second code block 320.
The first code block 310 is configured to send data modification information to a second code block after first functional data in the first code block is updated, where the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool;
and a second code block 320, configured to update second function data in the second code block after receiving the data modification information.
In one possible implementation, the first code block 310 may specifically include:
the data modification module is used for modifying initial data in the function storage module associated with the first code block based on the updated first function data to obtain a function storage module containing target data, wherein the initial data in the function storage module has a corresponding relation with the first function data;
correspondingly, after the second code block receives the data modification information, the second code block updates second functional data in the second code block, including:
after the second code block receives the data modification information, the second code block updates the second function data based on the target data in the function storage module.
In one possible implementation, the data modification module may be specifically configured to:
determining a change strategy of initial data in the function storage module associated with the first code block based on the updated first function data, wherein the first function data is identical to the initial data;
and modifying the initial data in the functional storage module based on the change strategy of the initial data to obtain target data.
In one possible implementation, the first code block 310 may be specifically configured to:
and if the information of successful modification returned by the function storage module is received within the preset time, determining that the initial data in the function storage module is successful in modification.
In one possible implementation, the second code block 320 may specifically include:
the data acquisition module is used for acquiring target data in the functional storage module, wherein the target data is the updated initial data;
and the data updating module is used for replacing the second functional data with the target data to obtain updated second functional data, wherein the second functional data of the second code block are identical to the first functional data in the first code block.
In one possible implementation, the data update module may be specifically configured to:
and replacing second function data corresponding to the function menu in the second code block with the target data to obtain updated second function data, wherein the function menu in the second code block is generated based on the second function data.
In one possible implementation, the first code block 310 may be specifically configured to:
receiving a data modification instruction of first functional data in a first code block;
and updating first function data corresponding to the function menu in the first code block by the first code block based on the data modification instruction, wherein the function menu in the first code block is generated based on the first function data.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the present application further provides a terminal device, referring to fig. 6, the terminal device 400 may include: at least one processor 410, a memory 420, and a computer program stored in the memory 420 and executable on the at least one processor 410, the processor 410, when executing the computer program, performing the steps of any of the various method embodiments described above, such as steps S101 to S102 in the embodiment shown in fig. 3. Alternatively, the processor 410 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 310 to 320 shown in fig. 5, when executing the computer program.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in memory 420 and executed by processor 410 to complete the present application. The one or more modules/units may be a series of computer program segments capable of performing specific functions for describing the execution of the computer program in the terminal device 400.
It will be appreciated by those skilled in the art that fig. 6 is merely an example of a terminal device and is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or different components, such as input-output devices, network access devices, buses, etc.
The processor 410 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 420 may be an internal storage unit of the terminal device, or may be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. The memory 420 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 420 may also be used to temporarily store data that has been output or is to be output.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The data updating method in the visual programming tool provided by the embodiment of the application can be applied to terminal equipment such as computers, tablet computers, notebook computers, netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the embodiment of the application does not limit the specific types of the terminal equipment.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps in various embodiments of a data update method in a visual programming tool as described above.
Embodiments of the present application provide a computer program product that, when run on a mobile terminal, causes the mobile terminal to perform steps in various embodiments of a data update method in a visual programming tool as described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. A method of data updating in a visual programming tool, comprising:
when first function data in a first code block is updated, modifying initial data in a function storage module associated with the first code block based on the updated first function data to obtain a function storage module containing target data, wherein the initial data in the function storage module has a corresponding relation with the first function data;
the first code block sends data modification information to a second code block, wherein the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool;
after the second code block receives the data modification information, the second code block updates second function data in the second code block based on target data in the function storage module;
the second code block updates second function data in the second code block based on the target data in the function storage module, including:
the second code block obtains target data in the functional storage module, wherein the target data is the updated initial data;
and replacing the second functional data with the target data to obtain updated second functional data, wherein the second functional data of the second code block is identical to the first functional data in the first code block.
2. The method for updating data in a visual programming tool of claim 1, wherein modifying initial data in a functional storage module associated with the first code block based on the updated first functional data to obtain a functional storage module containing target data comprises:
determining a change strategy of initial data in the function storage module associated with the first code block based on the updated first function data, wherein the first function data is identical to the initial data;
and modifying the initial data in the functional storage module based on the change strategy of the initial data to obtain target data.
3. The method for updating data in a visual programming tool of claim 1, comprising, before the first code block sends data modification information to the second code block:
and if the information of successful modification returned by the function storage module is received within the preset time, determining that the initial data in the function storage module is successful in modification.
4. The method for updating data in a visual programming tool of claim 1, wherein said replacing the second function data with the target data to obtain updated second function data comprises:
and the second code block replaces second function data corresponding to the function menu in the second code block with the target data to obtain updated second function data, wherein the function menu in the second code block is generated based on the second function data.
5. The method of data updating in a visual programming tool of any one of claims 1 to 4, the method further comprising:
receiving a data modification instruction of first functional data in a first code block;
and updating first function data corresponding to the function menu in the first code block by the first code block based on the data modification instruction, wherein the function menu in the first code block is generated based on the first function data.
6. A visual programming tool, comprising:
the system comprises a first code block and a second code block, wherein the first code block is used for sending data modification information to the second code block after first functional data in the first code block are updated, the first code block is any code block in the visual programming tool, and the second code block is a code block determined based on the first code block in the visual programming tool;
a second code block for updating second function data in the second code block after receiving the data modification information;
the first code block specifically includes:
the data modification module is used for modifying initial data in the function storage module associated with the first code block based on the updated first function data to obtain a function storage module containing target data, wherein the initial data in the function storage module has a corresponding relation with the first function data;
correspondingly, the second code block is used for updating the second function data based on the target data in the function storage module after the second code block receives the data modification information;
the second code block specifically includes:
the data acquisition module is used for acquiring target data in the functional storage module, wherein the target data is the updated initial data;
and the data updating module is used for replacing the second functional data with the target data to obtain updated second functional data, wherein the second functional data of the second code block are identical to the first functional data in the first code block.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements a data updating method in a visual programming tool according to any of claims 1 to 5 when executing the computer program.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements a data updating method in a visual programming tool according to any one of claims 1 to 5.
CN202011468931.6A 2020-12-14 2020-12-14 Data updating method and device in visual programming tool and terminal equipment Active CN112527276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011468931.6A CN112527276B (en) 2020-12-14 2020-12-14 Data updating method and device in visual programming tool and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011468931.6A CN112527276B (en) 2020-12-14 2020-12-14 Data updating method and device in visual programming tool and terminal equipment

Publications (2)

Publication Number Publication Date
CN112527276A CN112527276A (en) 2021-03-19
CN112527276B true CN112527276B (en) 2024-01-12

Family

ID=74999615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011468931.6A Active CN112527276B (en) 2020-12-14 2020-12-14 Data updating method and device in visual programming tool and terminal equipment

Country Status (1)

Country Link
CN (1) CN112527276B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911467B (en) * 2021-10-22 2023-05-09 北京思明启创科技有限公司 Code detection method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572233A (en) * 2014-12-30 2015-04-29 北京纵横机电技术开发公司 Continuous function chart programming method
CN111443945A (en) * 2019-01-16 2020-07-24 北大方正集团有限公司 Component code modification method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572233A (en) * 2014-12-30 2015-04-29 北京纵横机电技术开发公司 Continuous function chart programming method
CN111443945A (en) * 2019-01-16 2020-07-24 北大方正集团有限公司 Component code modification method and device

Also Published As

Publication number Publication date
CN112527276A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN109814524B (en) Vehicle diagnosis method, device and system
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN110753084B (en) Uplink data reading method, cache server and computer readable storage medium
CN109376126B (en) File or folder processing method, mobile terminal and storage medium
CN111966287A (en) Data storage method, electronic device and storage medium
CN111460232A (en) Functional module searching method, device, terminal and computer readable storage medium
CN112527276B (en) Data updating method and device in visual programming tool and terminal equipment
CN110941547B (en) Automatic test case library management method, device, medium and electronic equipment
CN114817146A (en) Method and device for processing data
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN110825309B (en) Data reading method, device and system and distributed system
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN111858020B (en) User resource limiting method and device and computer storage medium
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN110019040B (en) Folder processing method, mobile terminal and storage medium
CN109298956B (en) File transmission method and device and terminal equipment
CN103902230A (en) Data processing method, device and system
CN116010347A (en) Resource updating method, device, system, electronic equipment and storage medium
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN112764897A (en) Method, device and system for processing task request and computer readable storage medium
CN112667631A (en) Method, device and equipment for automatically editing service field and storage medium
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN113792014B (en) Nuclear power station file management method and device, terminal equipment and storage medium
CN111831350A (en) Application process configuration updating method, system, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant