A method, system, device and storage medium for preserving digital and analog resources
By filtering and orderly saving unsaved resources in the digital-analog resource queue, the problem of low digital-analog resource storage efficiency in the existing technology is solved, low-risk batch saving is achieved, the risk of data loss is reduced, and costs are saved.
Patent Information
- Application Number
- CN202010406566.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-05-14
AI Technical Summary
The batch saving efficiency of digital and analog resources in the existing technology is low, can easily lead to software crashes and data loss, and requires a lot of manpower and time, making it impossible to achieve batch saving.
By obtaining the digital and analog resource queue, detecting resource status parameters, filtering out unsaved digital and analog resources and saving them to the file system library in an orderly manner to avoid repeated saving, use the human-computer interaction module to obtain the saving path or preset path for saving.
It realizes low-risk batch storage of digital and analog resources, reduces the risk of data loss, saves labor and time costs, and improves storage efficiency.
Smart Images

Figure CN111737213B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual simulation, and in particular to a method, system, device and storage medium for preserving digital and analog resources. Background Art
[0002] Technical term explanation:
[0003] Digital manufacturing: In the context of the integration of digital technology and manufacturing technology, and with the support of supporting technologies such as virtual reality, computer networks, rapid prototyping, databases and multimedia, based on user needs, resource information is quickly collected, product information, process information and resource information are analyzed, planned and reorganized, and simulation of product design and function and prototype manufacturing are achieved, thereby quickly producing the entire manufacturing process of products that meet user performance requirements.
[0004] Virtual simulation: Use simulation software to build a digital model, and based on this model, simulate and debug the production process, robot program, PLC program, etc. in the actual workshop.
[0005] Tecnomatix: is a comprehensive portfolio of digital manufacturing solutions from Siemens that enables digital transformation of manufacturing and the process of transforming innovative ideas and raw materials into real products.
[0006] Process Simulate: A product of Siemens Tecnomatix, its main function is to realize offline programming and simulation verification of digital models.
[0007] File system library: used to store all data required to build a virtual environment project, including robot digital model resources, fixture digital model resources, conveyor mechanism digital model resources, floor plan layout diagrams, simulation logic blocks and other data.
[0008] The preservation of digital and analog resources means that when using simulation software for virtual simulation production, the editing of digital and analog resources is completed, and the digital and analog resources are saved in the file system library to make them a linked component, so that the digital and analog resources can be easily called from the file system library to the simulation environment, while also reducing the computer load and making the operation smoother.
[0009] In actual simulation projects, the number of digital and analog resources that need to be created is very large. When saving digital and analog resources in Process Simulate, all selected digital and analog resources are saved at one time. If too many are selected, the saving time is relatively long, which can easily cause software crashes, data loss, digital and analog data damage and unavailability, leading to project delays. Therefore, in the prior art, engineers are often required to save in batches in small quantities and multiple times. However, this method requires a lot of manpower and time costs, is very inefficient, and cannot achieve batch saving; and if manual selection is performed one by one, not only is the operation cumbersome, but it is also easy to repeatedly select the saved digital and analog resources, which will result in repeated saving, resulting in too long a saving time and easy software crashes; at the same time, during the system saving process, employees can no longer operate the system, which also causes a waste of working hours; if the entire resource group is directly selected for saving, some of the digital and analog resources contained in the resource group have already been saved, which will also cause the above problems. Summary of the invention
[0010] In order to solve the above technical problems, the purpose of the present invention is to provide a low-risk, high-efficiency method, system, device and storage medium for batch preservation of digital and analog resources.
[0011] The technical solution adopted in one aspect of the present invention is:
[0012] A method for preserving digital and analog resources comprises the following steps:
[0013] Acquire a first digital-analog resource, and establish a digital-analog resource queue according to the first digital-analog resource;
[0014] Traversing the digital-analog resource queue, detecting a state parameter of the first digital-analog resource, and selecting a second digital-analog resource according to the state parameter;
[0015] The second digital-analog resource is saved to a file system library.
[0016] Further, the step of acquiring the first digital-analog resource and establishing a digital-analog resource queue according to the first digital-analog resource is specifically as follows:
[0017] Determine a first digital-analog resource through a human-computer interaction module, and establish a digital-analog resource queue according to the first digital-analog resource;
[0018] or,
[0019] A resource group is determined through a human-computer interaction module, all digital and analog resources in the resource group are acquired as first digital and analog resources, and a digital and analog resource queue is established according to the first digital and analog resources.
[0020] Further, the step of traversing the digital-analog resource queue, detecting the state parameter of the first digital-analog resource, and selecting the second digital-analog resource according to the state parameter includes:
[0021] Traversing the digital and analog resource queue to detect the state parameters of the first digital and analog resource;
[0022] The first digital-analog resource whose state parameter is editable is obtained to derive the second digital-analog resource.
[0023] Furthermore, the step of saving the second digital model resource to the file system library includes:
[0024] When it is detected that the second digital analog resource exists in the file system library path, the second digital analog resource is saved in the directory corresponding to the file system library path;
[0025] When it is detected that the second digital model resource does not exist in the file system library path, the saving path input by the user is obtained through the human-computer interaction module, and the second digital model resource is saved in the directory corresponding to the saving path in the file system library.
[0026] Furthermore, the step of saving the second digital model resource to the file system library includes:
[0027] When it is detected that the second digital model resource does not exist in the file system library path, a preset saving path is obtained, and the second digital model resource is saved in a directory corresponding to the preset saving path in the file system library.
[0028] The technical solution adopted in another aspect of the present invention is:
[0029] A digital and analog resource preservation system, comprising:
[0030] A queue module, configured to obtain a first digital-analog resource and establish a digital-analog resource queue according to the first digital-analog resource;
[0031] A selection module, configured to traverse the digital-analog resource queue, detect a state parameter of the first digital-analog resource, and select a second digital-analog resource according to the state parameter;
[0032] A saving module is used to save the second digital and analog resource to a file system library.
[0033] Furthermore, the selection module includes:
[0034] A first detection unit, configured to traverse the digital and analog resource queue at a preset interval to detect a state parameter of the first digital and analog resource;
[0035] The first acquisition unit is used to acquire the first digital-analog resource whose state parameter is editable, and obtain the second digital-analog resource.
[0036] Further, the storage module includes:
[0037] A first saving unit is configured to save the second digital and analog resource to a directory corresponding to the file system library path when detecting that the second digital and analog resource exists in the file system library path;
[0038] A second saving unit is used for, when it is detected that the second digital and analog resource does not exist in the file system library path, obtaining the saving path input by the user through the human-computer interaction module, and saving the second digital and analog resource to the directory corresponding to the saving path in the file system library;
[0039] or,
[0040] The third saving unit is used to obtain a preset saving path when it is detected that the second digital and analog resource does not exist in the file system library path, and save the second digital and analog resource to a directory corresponding to the preset saving path in the file system library.
[0041] The technical solution adopted in another aspect of the present invention is:
[0042] A digital-analog resource storage device, comprising:
[0043] at least one processor;
[0044] at least one memory for storing at least one program;
[0045] When the at least one program is executed by the at least one processor, the at least one processor implements the digital-analog resource preservation method.
[0046] The technical solution adopted in another aspect of the present invention is:
[0047] A computer-readable storage medium stores processor-executable instructions, which are used to execute the sensing digital-analog creation method when executed by the processor.
[0048] The beneficial effects of the present invention are as follows: the present invention provides a method, system, device and storage medium for preserving digital and analog resources, establishes a digital and analog resource queue according to a first digital and analog resource, traverses the digital and analog resource queue, detects the state parameters of the first digital and analog resource, selects a second digital and analog resource according to the state parameters and saves it to a file system library, thereby orderly screening out unsaved digital and analog resources from a large number of digital and analog resources and saving them in sequence, avoiding repeated saving, reducing the risk of data loss while realizing batch saving of digital and analog resources, saving labor costs and time costs, and improving the efficiency of digital and analog resource preservation. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1is a flow chart of a method for preserving digital and analog resources provided by an embodiment of the present invention;
[0050] Figure 2 It is a structural block diagram of a digital-analog resource preservation system provided by an embodiment of the present invention;
[0051] Figure 3 It is a structural block diagram of a digital-analog resource storage device provided by an embodiment of the present invention;
[0052] Figure 4 It is an overall flow chart of a method for preserving digital and analog resources provided by an embodiment of the present invention;
[0053] 201, queue module; 202, selection module; 203, storage module; 301, processor; 302, memory. DETAILED DESCRIPTION
[0054] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0055] In the description of the present invention, the meaning of "a plurality" is two or more. If there is a description of "a first" or "a second", it is only used to distinguish the technical features, and it cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. In addition, unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those commonly understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments, not for limiting the present invention.
[0056] Reference Figure 1 The present invention provides a method for preserving digital and analog resources, comprising the following steps:
[0057] S101, obtaining a first digital-analog resource, and establishing a digital-analog resource queue according to the first digital-analog resource;
[0058] Specifically, the software developed based on the present invention can be embedded in Process Simulate or other simulation software for use, and engineers can pick up the digital and analog resources of the virtual device in the simulation software, which is compatible with both picking up in the resource list and picking up in the visualization window. In an embodiment of the present invention, the first digital and analog resource can be picked up through a human-computer interaction module, which can be a resource list of the simulation software front-end interface or a visualization window containing digital and analog resources. Establishing a digital and analog resource queue can facilitate the subsequent orderly batch storage of digital and analog resources.
[0059] S102, traversing the digital-analog resource queue, detecting the state parameter of the first digital-analog resource, and selecting the second digital-analog resource according to the state parameter;
[0060] Specifically, by traversing the digital-analog resource queue, the state parameters of the digital-analog resources in the digital-analog resource queue can be detected in turn, and the digital-analog resources in the editable state can be selected as the second digital-analog resource. In practical applications, in order to protect the stability of simulation data and improve simulation speed, the simulation software needs to save the digital-analog resources, and the saved digital-analog resources are in a locked state, and engineers cannot edit them. If you want to modify the digital-analog resources, you need to unlock the saved digital-analog resources first, that is, the digital-analog resources need to be in an editable state. Therefore, the state parameters of each digital-analog resource are editable or locked. When the state parameter is locked, it means that the digital-analog resource has been saved; when the state parameter is editable, it means that the digital-analog resource has not been saved.
[0061] S103, saving the second digital model resource to the file system library.
[0062] Specifically, the digital and analog resources are saved in the file system library to make them link components, so that the digital and analog resources can be called from the file system library to the simulation environment when applied.
[0063] In an embodiment of the present invention, by traversing the digital and analog resource queue and selecting the digital and analog resources in an editable state as the second digital and analog resource, the unsaved digital and analog resources can be orderly selected from a large number of digital and analog resources and saved in sequence, thereby avoiding repeated saving. While realizing batch saving of digital and analog resources, the risk of data loss is reduced, labor costs and time costs are saved, and the efficiency of digital and analog resource preservation is improved.
[0064] As a further optional implementation, step S101 of acquiring the first digital and analog resources and establishing a digital and analog resource queue according to the first digital and analog resources can be implemented using two solutions, as shown below.
[0065] For an embodiment of step S101, it is specifically as follows:
[0066] S1011. Determine a first digital-analog resource through a human-computer interaction module, and establish a digital-analog resource queue according to the first digital-analog resource;
[0067] Specifically, there may be multiple first digital and analog resources, and multiple digital and analog resources may be picked up from the resource list in the simulation software as the first digital and analog resources, and a digital and analog resource queue may be established based on these digital and analog resources.
[0068] For another embodiment of step S101, it is specifically as follows:
[0069] S1012. Determine a resource group through a human-computer interaction module, obtain all digital and analog resources in the resource group as first digital and analog resources, and establish a digital and analog resource queue according to the first digital and analog resources.
[0070] Specifically, there can be multiple resource groups, and multiple resource groups can be picked up from the resource group hierarchy list in the simulation software, and then all digital and analog resources in the multiple resource groups are obtained, and a digital and analog resource queue is established based on these digital and analog resources. In an embodiment of the present invention, a resource group is a collection of several digital and analog resources. During simulation, logically related digital and analog resources are usually divided into a resource group to facilitate the management of digital and analog resources.
[0071] In the embodiment of the present invention, by acquiring the first digital-analog resource in the above two ways, the first digital-analog resource can be quickly acquired and a queue can be established in different scenarios to facilitate subsequent orderly batch storage of the digital-analog resource.
[0072] As an optional implementation, the step S102 of traversing the digital-analog resource queue, detecting the state parameter of the first digital-analog resource, and selecting the second digital-analog resource according to the state parameter includes:
[0073] S1021, traverse the digital and analog resource queue to detect the state parameter of the first digital and analog resource;
[0074] S1022. Acquire a first digital-analog resource whose state parameter is editable, and obtain a second digital-analog resource.
[0075] Specifically, the digital and analog resource queue is traversed to detect the status parameters of each digital and analog resource in the digital and analog resource queue, where the status parameters are editable or locked; when it is detected that the current digital and analog resource is in an editable state, the current digital and analog resource is obtained as the second digital and analog resource, and then the digital and analog resource queue is continued to be traversed.
[0076] In the embodiment of the present invention, the digital-analog resource queue is traversed in a loop to select the second digital-analog resource, so that the digital-analog resources to be saved can be screened out in an orderly manner, while avoiding omission or repeated selection.
[0077] As a further optional implementation, the step S103 of saving the second digital-analog resource to the file system library can be implemented by two solutions, as shown below.
[0078] For an embodiment of step S103, it is specifically as follows:
[0079] S1031, when it is detected that the second digital analog resource exists in the file system library path, the second digital analog resource is saved in the directory corresponding to the file system library path;
[0080] S1032: when it is detected that the second digital model resource does not exist in the file system library path, obtaining the saving path input by the user through the human-computer interaction module, and saving the second digital model resource to the directory corresponding to the saving path in the file system library;
[0081] Specifically, the second digital and analog resource selected by the above step S102 can be a digital and analog resource newly created or newly copied into the system, or it can be a digital and analog resource that has been saved in the past and is in an editable state. For the second case, the digital and analog resource already has a corresponding file system library path, and it can be saved to the directory corresponding to the original file system library path; for the first case, it is necessary to obtain the save path input by the user through the visualization window, and then save it. This embodiment is suitable for the situation where digital and analog resources with different logical relationships are saved separately. For each newly created digital and analog resource, its save path is manually determined to facilitate subsequent unified management and calling.
[0082] For another embodiment of step S103, it includes:
[0083] S1033: When it is detected that the second digital model resource does not exist in the file system library path, obtain a preset saving path, and save the second digital model resource to a directory corresponding to the preset saving path in the file system library.
[0084] Specifically, the preset save path can be stored in a specific folder in text form, which can be read by the program, or the team can reach a consensus and use a specific path within the software (such as creating a path with the same name as the current digital and analog resource under the library path of the current project), or the user can enter a specific path before starting the software of the embodiment of the present invention. Thus, the save path can be set in advance before batch saving of digital and analog resources, and all second digital and analog resources can be saved to the directory corresponding to the path. This embodiment can further improve the saving efficiency, without the need to manually set the save path for each digital and analog resource that is newly created or copied into the system. The overall flow chart of the embodiment of the present invention is shown in FIG. Figure 4 shown.
[0085] Optionally, the method further comprises the following steps:
[0086] S104, output log document;
[0087] The content of the log document includes the name of the second digital model resource, the saving time and the saved directory.
[0088] Specifically, the output log document is used to record the relevant information of all digital and analog resources saved this time, so as to facilitate subsequent management and calling.
[0089] Reference Figure 2 The embodiment of the present invention further provides a digital-analog resource preservation system, comprising:
[0090] The queue module 201 is used to obtain a first digital-analog resource and establish a digital-analog resource queue according to the first digital-analog resource;
[0091] A selection module 202 is used to traverse the digital-analog resource queue, detect the state parameter of the first digital-analog resource, and select the second digital-analog resource according to the state parameter;
[0092] The saving module 203 is used to save the second digital model resource to the file system library.
[0093] Further as an optional implementation, the selection module 202 includes:
[0094] A first detection unit, configured to traverse the digital-analog resource queue and detect a state parameter of a first digital-analog resource;
[0095] The first acquisition unit is used to acquire a first digital-analog resource whose state parameter is editable, and obtain a second digital-analog resource.
[0096] Further as an optional implementation, the saving module 203 includes:
[0097] A first saving unit is used to save the second digital analog resource to a directory corresponding to the file system library path when it is detected that the second digital analog resource exists in the file system library path;
[0098] A second saving unit is used for obtaining a saving path input by a user through a human-computer interaction module when it is detected that the second digital model resource does not exist in the file system library path, and saving the second digital model resource to a directory corresponding to the saving path in the file system library;
[0099] or,
[0100] The third saving unit is used to obtain a preset saving path when it is detected that the second digital and analog resource does not exist in the file system library path, and save the second digital and analog resource to a directory corresponding to the preset saving path in the file system library.
[0101] As an optional implementation, the method further includes:
[0102] Log output module, used to output log documents;
[0103] The content of the log document includes the name of the second digital model resource, the saving time and the saved directory.
[0104] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0105] Reference Figure 3 The embodiment of the present invention further provides a digital-analog resource storage device, comprising:
[0106] at least one processor 301;
[0107] At least one memory 302, used to store at least one program;
[0108] When the at least one program is executed by the at least one processor 301, the at least one processor 301 implements the digital-analog resource preservation method.
[0109] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0110] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores instructions executable by the processor 301 , and when the instructions are executed by the processor 301 , they are used to execute the digital-analog resource preservation method.
[0111] The digital and analog resource preservation method, system, device and storage medium of the present invention establish a digital and analog resource queue based on a first digital and analog resource, traverse the digital and analog resource queue, detect the state parameters of the first digital and analog resource, select a second digital and analog resource based on the state parameters and save it to the file system library. It can orderly screen out unsaved digital and analog resources from a large number of digital and analog resources and save them in sequence, avoiding repeated saving. While realizing batch saving of digital and analog resources, it reduces the risk of data loss, saves labor costs and time costs, and improves the efficiency of digital and analog resource preservation.
[0112] The above is a specific description of the implementation mode of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A method for preserving digital and analog resources, characterized in that: The following steps are involved: Acquire a first digital-analog resource, and establish a digital-analog resource queue according to the first digital-analog resource; Traversing the digital-analog resource queue, detecting a state parameter of the first digital-analog resource, and selecting a second digital-analog resource according to the state parameter; Saving the second digital-analog resource to a file system library; The step of traversing the digital-analog resource queue, detecting the state parameter of the first digital-analog resource, and selecting the second digital-analog resource according to the state parameter includes: Traversing the digital and analog resource queue to detect the state parameters of the first digital and analog resource; The first digital-analog resource whose state parameter is editable is obtained to derive the second digital-analog resource.
2. A method for preserving digital and analog resources according to claim 1, characterized in that: The step of acquiring the first digital-analog resource and establishing a digital-analog resource queue according to the first digital-analog resource is specifically as follows: Determine a first digital-analog resource through a human-computer interaction module, and establish a digital-analog resource queue according to the first digital-analog resource; or, A resource group is determined through a human-computer interaction module, all digital and analog resources in the resource group are acquired as first digital and analog resources, and a digital and analog resource queue is established according to the first digital and analog resources.
3. A method for preserving digital and analog resources according to claim 1, characterized in that: The step of saving the second digital model resource to the file system library includes: When it is detected that the second digital analog resource exists in the file system library path, the second digital analog resource is saved in the directory corresponding to the file system library path; When it is detected that the second digital model resource does not exist in the file system library path, the saving path input by the user is obtained through the human-computer interaction module, and the second digital model resource is saved in the directory corresponding to the saving path in the file system library.
4. A method for preserving digital and analog resources according to claim 1, characterized in that: The step of saving the second digital model resource to the file system library includes: When it is detected that the second digital model resource does not exist in the file system library path, a preset saving path is obtained, and the second digital model resource is saved in a directory corresponding to the preset saving path in the file system library.
5. A digital and analog resource preservation system, characterized in that: include: A queue module, configured to obtain a first digital-analog resource and establish a digital-analog resource queue according to the first digital-analog resource; A selection module, configured to traverse the digital-analog resource queue, detect a state parameter of the first digital-analog resource, and select a second digital-analog resource according to the state parameter; A saving module, used for saving the second digital-analog resource to a file system library; The selection module includes: A first detection unit, configured to traverse the digital and analog resource queue and detect a state parameter of the first digital and analog resource; The first acquisition unit is used to acquire the first digital-analog resource whose state parameter is editable, and obtain the second digital-analog resource.
6. A digital and analog resource preservation system according to claim 5, characterized in that: The storage module comprises: A first saving unit is configured to save the second digital and analog resource to a directory corresponding to the file system library path when detecting that the second digital and analog resource exists in the file system library path; A second saving unit is used for, when it is detected that the second digital and analog resource does not exist in the file system library path, obtaining the saving path input by the user through the human-computer interaction module, and saving the second digital and analog resource to the directory corresponding to the saving path in the file system library; or, The third saving unit is used to obtain a preset saving path when it is detected that the second digital and analog resource does not exist in the file system library path, and save the second digital and analog resource to a directory corresponding to the preset saving path in the file system library.
7. A digital and analog resource storage device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the digital and analog resource preservation method as described in any one of claims 1 to 4.
8. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute the digital-analog resource preservation method as described in any one of claims 1 to 4 when executed by the processor.
Citation Information
Patent Citations
User Data Backup Method and Apparatus
US20140236902A1
