Link library universal system, and controlling method and apparatus for link library universal system
By storing multiple link libraries on the workstation and communicating with multiple emulators, many-to-many settings of link libraries and emulators are realized, and the problem that link libraries can only be set one-to-one in the existing technology is solved, which improves users Experience and reduce maintenance costs.
Patent Information
- Application Number
- PCT/CN2024/089712
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-31
- Filing Date
- 2024-04-25
- Publication Date
- 2024-12-05
AI Technical Summary
In the existing technology, link libraries can only be set one-on-one with the corresponding simulation platform, and users can only use one simulation platform to simulate, resulting in poor user experience.
Provide a common system for link libraries, which stores multiple link libraries through workstations and communicates with multiple emulators through common devices, realizes many-to-many settings for link libraries and emulators, allowing users to use different platforms and link libraries. Perform simulation.
The sharing of link libraries is realized, and users can use different platforms and link libraries to simulate, which improves the user experience effect and reduces the need for new energy manufacturers to maintain link libraries of multiple real-time simulation platforms.
Smart Images

Figure CN2024089712_05122024_PF_FP_ABST
Abstract
Description
Universal system of link library, control method and device of universal system of link library
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 31, 2023, with application number 202310645213.9 and invention name “Universal system for link library, control method and device for universal system for link library”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of link libraries, and in particular to a universal system of link libraries, a control method of the universal system of link libraries, and a control device of the universal system of link libraries. Background Art
[0003] Currently, there are a wide variety of new energy manufacturers and product lines. The accuracy of real-time simulation of their new energy equipment depends on the digital simulation models provided by the manufacturers. There are many mainstream real-time simulators, such as RTDS (real time digital simulation system), RTLAB (Real Time Laboratory), HyperSim (power system real-time digital simulation system) and ADPSS (Advanced Digital Power System Simulator, all-digital real-time simulation device). The existing solution is to use mainstream real-time simulators to simulate new energy power grid equipment, and new energy manufacturers develop digital package models (link libraries) for specific real-time simulators to simulate new energy controllers in real time.
[0004] However, in the current solution, the link library can only be set one-to-one with the corresponding simulation platform (also called simulator), and the user can only use one simulation platform for simulation, resulting in a poor user experience.
[0005] Summary of the Invention
[0006] The main purpose of this application is to provide a universal system of a link library, a control method of the universal system of a link library, and a control device of the universal system of a link library, so as to at least solve the problem in the prior art that the link library can only be set one-to-one with the corresponding simulation platform, the user can only use one simulation platform for simulation, and the user experience is poor.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a general system of link libraries is provided, comprising: a workstation for storing multiple link libraries, wherein the link libraries are a collection of library files used in the linking process; multiple emulators, each of which is used to implement hardware simulation; a general device, which is respectively communicatively connected to the workstation and the multiple emulators, and the general device is used to call any one of the link libraries and send the called link library to any one of the emulators.
[0008] Optionally, the general device also includes: a network interface, through which the general device is communicated with the workstation, and the general device receives the link library sent by the workstation through the network interface; and a fiber optic interface, through which the general device is communicated with multiple emulators respectively.
[0009] Optionally, the plurality of link libraries include an RTLAB link library, an ADPSS link library and a HyperSim link library, and the plurality of simulators include an RTDS simulator, an RTLAB simulator, an ADPSS simulator and a HyperSim simulator.
[0010] Optionally, the general device further includes: an RTLinux operating system, which is used to provide a set of support functions for hardware real-time processes and control the simulation process; and a GCC compiler, which is used to cooperate with the RTLinux operating system to implement code compilation.
[0011] According to another aspect of the present application, a control method for a general system of any link library is provided, the method comprising: obtaining first interface information of multiple first calling interfaces, wherein the first calling interfaces correspond one-to-one to the link libraries, and the first calling interfaces are used to call the corresponding link libraries; obtaining second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface; and using the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0012] Optionally, after obtaining the second interface information of the second calling interface, the method further includes: obtaining a task scheduling list, wherein the task scheduling list includes multiple tasks, each of the tasks includes the pre-called link library; traversing the task scheduling list, and executing multiple tasks in sequence.
[0013] Optionally, executing multiple tasks in sequence includes: obtaining the priorities of the multiple tasks, and executing the multiple tasks in sequence in order from high to low priority; obtaining the association relationship between the multiple tasks, and executing the multiple tasks in sequence according to the association relationship, wherein the association relationship includes a series relationship and a parallel relationship, the series relationship is a relationship in which the multiple tasks are executed in sequence, and the parallel relationship is a relationship in which the multiple tasks are executed in parallel.
[0014] Optionally, after using the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method also includes: controlling the simulator corresponding to the link library to perform simulation; and determining that the simulator is abnormal if the time length for not receiving a reply from the simulator is greater than or equal to a predetermined time length.
[0015] Optionally, after using the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method also includes: when an end command is received, based on the end command, stopping continuing to call the link library, wherein the end command is generated by the workstation.
[0016] According to another aspect of the present application, a control device for a general system of any link library is provided, the device comprising: a first acquisition unit, for acquiring first interface information of multiple first calling interfaces, wherein the first calling interfaces correspond one-to-one to the link libraries, and the first calling interfaces are used to call the corresponding link libraries; a second acquisition unit, for acquiring second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface; and a first processing unit, for using the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0017] By applying the technical solution of the present application, multiple link libraries are combined, and multiple simulators are also combined. A general device is used to call any link library, and the called link library is sent to any simulator. In this way, the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and users can use different platforms and different link libraries for simulation, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings that constitute part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0019] FIG1 shows a schematic structural diagram of a general system of a link library according to an embodiment of the present application;
[0020] FIG2 shows a hardware structure block diagram of a mobile terminal according to a method for controlling a general system for executing a link library provided in an embodiment of the present application;
[0021] FIG3 is a schematic flow chart showing a method for controlling a universal system of a link library according to an embodiment of the present application;
[0022] FIG4 shows a schematic diagram of the software logic of the universal system of the link library according to the present application;
[0023] FIG5 shows a structural block diagram of a control device of a universal system of a link library provided according to an embodiment of the present application.
[0024] Among them, the above-mentioned drawings include the following figure marks: 102, processor; 104, memory; 106, transmission equipment; 108, input and output equipment; 10, workstation; 11, link library; 12, emulator; 13, general device; 14, network interface; 15, optical fiber interface; 16, RTLinux operating system; 17, GCC compiler; 18, hardware. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention 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 in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] For ease of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0029] New energy technologies are the backbone of high technology, encompassing nuclear energy, solar energy, coal-fired power generation, magnetohydrodynamic power generation, geothermal energy, and ocean energy. Nuclear and solar energy are the primary hallmarks of new energy technologies. Their development and utilization have dismantled the traditional energy concept, dominated by oil and coal, ushering in a new era of energy. Currently, wind and solar energy are the most mainstream, and the devices that control them are called controllers.
[0030] A photovoltaic controller is an automatic control device used in solar power generation systems to control the charging of batteries by multiple solar cell arrays and the power supply from the batteries to the solar inverter load. Utilizing a high-speed CPU microprocessor and a high-precision A / D converter, the photovoltaic controller is a microcomputer-based data acquisition and monitoring control system. It can rapidly collect the current operating status of the photovoltaic system in real time, providing instant access to PV station operating information. It also accumulates detailed historical data from PV stations, providing an accurate and comprehensive basis for evaluating the rationality of PV system design and verifying the quality and reliability of system components. Furthermore, the photovoltaic controller features serial communication data transmission, enabling centralized management and remote control of multiple PV system substations.
[0031] The wind turbine controller regulates and controls the electrical energy generated by the wind turbine. It delivers the regulated energy to DC or AC loads and uses excess energy to charge the battery pack according to the battery's characteristic curve. When the generated energy cannot meet the load's needs, the controller delivers the battery's energy to the load. When the battery is fully charged, the controller prevents overcharging. When the battery's stored energy is exhausted, the controller prevents overdischarge to protect the battery.
[0032] The controller uses PWM (Pulse Width Modulation) for stepless unloading to control the wind turbine and intelligently charge the battery. When the energy generated by the wind turbine exceeds the battery's storage capacity, the control system must dissipate the excess energy. Conventional control methods connect the entire unloading system. At this point, the battery is typically not fully charged, but all the energy is consumed by unloading, resulting in energy waste. Some methods implement unloading in stages. More stages improve control effectiveness, but typically only five or six stages are achieved, making the results less than ideal. The optimal control method uses PWM for stepless unloading, which can achieve thousands of stages. Therefore, under normal unloading conditions, the battery voltage remains stable at the float charge voltage, with excess energy only being released to the unloading system. This ensures optimal battery charging characteristics and maximizes energy utilization.
[0033] As introduced in the background technology, in the prior art, the link library can only be set up one-to-one with the corresponding simulation platform, and the user can only use one simulation platform for simulation, and the user experience is poor. To solve the above problems, the embodiments of the present application provide a general system of a link library, a control method of the general system of a link library, and a control device of the general system of a link library.
[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0035] This application provides a general system for linking libraries, as shown in FIG1 , including:
[0036] A workstation 10 is used to store a plurality of link libraries 11, wherein the link library 11 is a collection of library files used in the linking process;
[0037] Multiple simulators 12, each of the simulators 12 is used to implement hardware simulation;
[0038] The general device 13 is respectively connected to the workstation 10 and the plurality of simulators 12 for communication. The general device 13 is used to call any one of the link libraries 11 and send the called link library 11 to any one of the simulators 12 .
[0039] In the above system, multiple link libraries are combined, multiple simulators are also combined, and a general device is used to call any link library, and the called link library is sent to any simulator. In this way, the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0040] Current new energy manufacturers have no incentive to maintain new energy model libraries for so many real-time simulation platforms. Most manufacturers currently provide libraries for RTLAB or ADPSS real-time simulation platforms. The new energy controller library for a specific real-time simulation platform can only be used for that platform and cannot be used for other real-time simulation platforms. For example, the RTLAB library .a file can only be used on RTLAB and cannot be used on RTDS, HyperSim, and ADPSS platforms.
[0041] Specifically, the above system can be applied to the field of new energy, and specifically can be applied to photovoltaic controllers, wind power generation controllers or other controllers.
[0042] A workstation can be a regular computer or other operating platform. It runs the Windows operating system and RTLink modeling software. This software is used to map I / O ports in the new energy link library, bind computing tasks to CPU cores, and control the compilation, execution, and monitoring of real-time tasks on the real-time simulator. It communicates with the real-time simulator via Ethernet.
[0043] The general device is responsible for transparently forwarding interface communication data between simulators such as the RTDS and the new energy link library. A small form pluggable (SFP) optical port between the real-time FPGA (Field Programmable Gate Array) and the RTDS can transmit 64 32-bit digital quantities in full duplex. The real-time FPGA and the real-time simulator communicate via Gigabit Ethernet, using a custom data link layer protocol with excellent real-time performance.
[0044] The communication between the workstation (also called the command workstation) and the emulator is based on a general device. Specifically, some interfaces can be set up to receive and send data. In a specific implementation, as shown in Figure 1, the above-mentioned general device 13 also includes a network interface 14 and an optical fiber interface 15. The above-mentioned general device 13 is communicated with the above-mentioned workstation 10 through the above-mentioned network interface 14. The above-mentioned general device 13 receives the above-mentioned link library 11 sent by the above-mentioned workstation 10 through the above-mentioned network interface 14; the above-mentioned general device 13 is communicated with the multiple above-mentioned emulators 12 respectively through the above-mentioned optical fiber interface 15.
[0045] In this solution, the general device has a network interface and a fiber optic interface. The network interface is used to receive the link library of the simulator sent from the workstation, and then the link library is sent to the simulator through the fiber optic interface, so that the simulator performs simulation based on the link library. This can further ensure that multiple link libraries and multiple simulators can communicate with each other.
[0046] The optical fiber interface can be a 10G optical fiber interface that is relatively common in real-time simulators, generally using an SFP optical module interface. Using this interface allows the real-time simulator and the device to communicate once within each real-time simulation step.
[0047] The workstation and the network interface can communicate via the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol.
[0048] In some embodiments, the plurality of link libraries include an RTLAB link library, an ADPSS link library, and a HyperSim link library, and the plurality of simulators include an RTDS simulator, an RTLAB simulator, an ADPSS simulator, and a HyperSim simulator. This solution proposes the above simulators and link libraries, so that the above link libraries can be shared, and link libraries and simulators do not need to be set up one-to-one.
[0049] Specifically, the new energy controller link library refers to a dynamic or static link library compiled from logic source codes of a device for controlling new energy.
[0050] Dynamic Link Library (DLL) is a way to implement the concept of a shared library of functions. These libraries have file extensions such as .dll, .ocx (for libraries containing ActiveX controls), or .drv (for legacy system drivers).
[0051] The .lib files used in the old static link library are the ones that need to be linked to the executable file. Therefore, the statically linked executable files are generally larger, and the format is like: #pragma comment(lib, "XXX.lib").
[0052] The general device can actually also include a software system to better control the simulation process. In the specific implementation process, as shown in Figure 1, the above-mentioned general device 13 also includes an RTLinux operating system 16 and a GCC (GNU Compiler Collection) compiler 17. The RTLinux operating system 16 is used to provide a set of support functions for hardware real-time processes and control the simulation process; the GCC compiler 17 is used to cooperate with the above-mentioned RTLinux operating system 16 to implement code compilation.
[0053] In this solution, an RTLinux operating system 16 is also configured in the general device 13, so that the simulation process can be controlled, so that the user can also understand the simulation process, further improving the user experience. The GCC compiler 17 is used in conjunction with the RTLinux operating system 16 to compile the program code in the simulation process, so that the compiled link library can be directly sent to the emulator for execution.
[0054] This device can also be installed with a real-time Linux operating system based on x86-64 for real-time operation of the new energy control and protection link library. It includes four SFP optical ports for joint real-time simulation with simulators such as RTDS.
[0055] A free and open-source real-time Linux operating system was used, along with the Linux kernel real-time patch preempt_rt. A series of optimization measures, including startup parameter optimization, manual kernel interrupt allocation, adjustment of real-time task priorities, and memory pre-allocation, significantly reduced jitter in real-time tasks, ensuring their real-time performance. Testing revealed that with a 50-μs simulation step, jitter during long-term operation was less than 5 μs. The real-time Linux operating system utilizes the Intel x86-64 architecture, supporting the loading and execution of both 32-bit and 64-bit new energy control and protection libraries. Both the commonly used static library .a files under the RTLAB platform and the .so file control and protection libraries under the ADPSS platform are based on the Intel x86-64 architecture and can be run directly without recompilation.
[0056] Specifically, RTLink modeling software can also be run on the command workstation to map the IO ports of the new energy link library, bind computing tasks to CPU cores, and control the compilation, operation, monitoring and recording control of real-time tasks of the real-time simulator, and communicate with the real-time simulator via Ethernet.
[0057] Specifically, as shown in FIG1 , the general device 13 may further include hardware 18 such as a storage, a memory, and a hard disk.
[0058] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking operation on a mobile terminal as an example, FIG2 is a hardware structure block diagram of a mobile terminal of a control method of a general system of a link library in an embodiment of the present invention. As shown in FIG2 , the mobile terminal may include one or more (only one is shown in FIG2 ) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG2 is only for illustration and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG2 , or have a configuration different from that shown in FIG2 .
[0059] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the device information display method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0060] In this embodiment, a control method for a general system of a link library running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] FIG3 is a flow chart of a control method for a universal system of a link library according to an embodiment of the present application. As shown in FIG3 , the method includes the following steps:
[0062] Step S201, obtaining first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond one-to-one to the link libraries, and the first calling interfaces are used to call the corresponding link libraries;
[0063] Specifically, specific packaging calling programs can be written for link libraries of specific platforms such as RTLAB, ADPSS and HyperSim, that is, first calling interfaces corresponding to different link libraries can be written.
[0064] Step S202: Acquire second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface;
[0065] Specifically, a second calling interface may be compiled, and the first calling interface may be called through the second calling interface subsequently, thereby realizing real-time calling of link libraries of different platforms.
[0066] Step S203: Using the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0067] Specifically, the real-time scheduling and running of each link library is realized through the second calling interface, so as to realize the real-time calling of link libraries of different platforms.
[0068] Through this embodiment, any first calling interface can be called through the second calling interface, so that the first calling interface can call the corresponding link library, and the second calling interface can call any link library, so that the called link library can be sent to any emulator, so that the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and then users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0069] Specifically, real-time communication with real-time simulators can be achieved through optical fiber interfaces, enabling real-time simulation runs with mainstream simulators such as RTDS, RTLAB, ADPSS, and HyperSim.
[0070] Specifically, the software logic of the above system is shown in Figure 4. From a software logic perspective, the system includes a link call module, a link real-time scheduling and operation module, a real-time emulator communication interface, multiple link libraries, and multiple emulators. The arrows between the link call module and the link library represent the first call interface and the network interface. The link real-time scheduling and operation module is used to call the second call interface. The real-time emulator communication interface is a fiber optic interface that communicates with multiple emulators.
[0071] The second calling interface is a calling compatibility layer that can provide the same calling interface for different types of link libraries. This is because the calling interfaces of RTLAB, ADPSS and HyperSim are not necessarily the same. The specific method is to dynamically generate C language code for different types of link library calling modules, and then call GCC to compile it into an executable file.
[0072] Whether there is one link library or multiple link libraries, calling the link library is to complete a task, so a task scheduling list can be constructed to schedule the link library according to the tasks in the task scheduling list. In the specific implementation process, after obtaining the second interface information of the second calling interface, the above method also includes the following steps: obtaining a task scheduling list, wherein the above task scheduling list includes multiple tasks, and each of the above tasks includes the pre-called link library; traversing the above task scheduling list, and executing multiple of the above tasks in sequence.
[0073] In this solution, multiple tasks can be executed in sequence according to the task scheduling list. Each time a task is executed, the link library is called once to implement the link library needed to run this simulation, thereby ensuring that the calling process is controllable and the calling order is reasonable.
[0074] Specifically, a timer and a task scheduling list can be set up in the general device. Each link library has a different scheduling run period, but they are all integer multiples of the real-time simulation step. Every time the timer counts a real-time simulation step, it traverses the task scheduling list and runs the link library required for this simulation step in real time.
[0075] Furthermore, scheduling tasks can be performed using a real-time task scheduler. RTLinkD, a real-time task scheduler, runs in the background in a non-real-time mode. Its primary function is to receive and execute instructions sent from the command workstation, such as compile, run, and stop link libraries. RTLinkD is written in the GoLang programming language, suitable for developing concurrent network programs, and is registered as a systemctl service under Linux. It automatically starts at boot, remains in the background, and automatically restarts upon detecting an abnormal exit, ensuring long-term stable operation of RTLinkD.
[0076] In order to further execute multiple tasks efficiently and accurately, the present application executes multiple tasks in sequence, which can be achieved through the following steps: obtain the priorities of the multiple tasks, and execute the multiple tasks in sequence in order from high to low priority; obtain the association relationship between the multiple tasks, and execute the multiple tasks in sequence according to the association relationship, wherein the association relationship includes a series relationship and a parallel relationship, the series relationship is the relationship in which the multiple tasks are executed in sequence, and the parallel relationship is the relationship in which the multiple tasks are executed in parallel.
[0077] In this solution, the association relationship between multiple tasks can also be determined. For tasks, there are serial relationships and parallel relationships. Multiple tasks can be executed in series or in parallel. In this way, multiple tasks can be executed efficiently and accurately according to the association relationship, and multiple tasks can also be executed efficiently and accurately according to their priority order, avoiding scheduling problems between multiple tasks.
[0078] During the simulation process, the simulator may be abnormal, so it is also possible to detect whether the simulator is abnormal. In some embodiments, after the second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further includes the following steps: controlling the simulator corresponding to the link library to perform simulation; and determining that the simulator is abnormal when the time length for not receiving a reply from the simulator is greater than or equal to a predetermined time length.
[0079] In this scheme, during the simulation process using the link library and the simulator, the simulator should return a reply message regardless of whether it has received the link library file or the simulation has ended. After the link library is sent to the simulator, the timing starts. If the timing reaches the predetermined time, it can be determined that the simulator is abnormal. This can realize the abnormal detection of the simulator, avoid the simulator being unable to perform normal simulation for a long time, and cause the subsequent simulation process to be unable to run, thereby further improving the efficiency of the simulation.
[0080] Specifically, the predetermined time length may be 50 us, or may be other predetermined time lengths.
[0081] When calling a link library, the process of calling the link library can also be stopped according to the user's instructions. In some embodiments, after the second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further includes the following steps: when an end command is received, based on the end command, stop calling the link library, wherein the end command is generated by the workstation.
[0082] In this solution, the workstation can also send a stop command. When the stop command is received, the process of calling the link library can be stopped. In this way, the user can control the process of calling the link library, further improving the user experience.
[0083] Specifically, when a start command is received, the link library is called based on the start command, wherein the start command is generated by the workstation.
[0084] Specifically, the working process of the above system is as follows: After the workstation sends the link libraries of various platforms, such as RTDS and ADPSS, to the general device via a network protocol such as HTTP (Hypertext Transfer Protocol), the service program resident in the general device generates specific C language call codes based on the link libraries of each platform and provides a unified link library call interface (second call interface). These C language codes are compiled by GCC into (first call interface). Finally, the second call interface is used to call the first call interface, so that the called first call interface calls the link library corresponding to the first call interface according to the first interface information.
[0085] The following describes the configuration process of the general device and running software of the new energy control and protection link library:
[0086] 1.1 Create a new RTLink project
[0087] Right-click a blank area in the left workspace -> New -> RTLink Project. In the dialog box that pops up, enter the project name and click OK to create a project. The newly created project does not contain the link library.
[0088] 1.2 Set the project sampling time
[0089] Double-click the project you want to set up in the workspace on the left. The project window will open on the right side of the workspace. You can enter the project sampling time in microseconds. This sampling time must be set to the same value as the RTDS simulation step size.
[0090] 1.3 Importing Link Libraries
[0091] Right-click on the project -> Import Library or right-click on the project library folder -> Import Library. Then, in the dialog box that pops up, select the library you want to import. You can also drag the library file directly onto the project library folder icon.
[0092] After the link library is successfully imported, different icons will be displayed according to the situation. It can display 64-bit link library and 32-bit link library. There are different functions under the link library, which can display 64-bit functions and 32-bit functions.
[0093] 1.4 Parsing the link library
[0094] Parsing a library involves obtaining information about a function's input and output ports, dimensions, and other information. This operation requires an online real-time simulator. No further operations can be performed on the library before parsing it. Unparsed library functions have a red question mark over their icons.
[0095] When importing a library, if any real-time simulator is online, the library will be automatically parsed. If no real-time simulator is online, automatic parsing will not occur. Even if a real-time simulator is online after the library is imported, it will not be automatically parsed. In this case, the library must be parsed manually. To do this, right-click on the library folder and click Parse Library to parse all unresolved libraries in the project. Right-click on a single library and click Parse Library to parse only the library for that single simulator.
[0096] 1.5 Viewing Link Library Information
[0097] Double-click the resolved library you want to view to open the Library View window. Information displayed includes the number of library input and output ports, dimensions, number of dialog box parameters, sampling period, and more. By default, the function's input and output port names begin with the meaningless "In" and "Out." Double-click these names to change them to meaningful ones, making it easier to view the recording channel and observe the library's input and output variable values in real time.
[0098] 1.6 Setting the target real-time simulator
[0099] Simply drag a simulator on the real-time simulator to the target machine icon under the project folder. After the setting is successful, the real-time simulator name will be displayed on the right side of the target machine.
[0100] 1.7 Setting the number of CPUs used by the real-time simulator
[0101] By default, the target real-time simulator uses 6 CPUs. You can right-click on the target machine -> Set the number of CPUs to use. This number can be filled in according to actual needs, but it cannot exceed the authorized number of CPUs of the real-time simulator.
[0102] 1.8 CPU Computing Task Allocation
[0103] CPU task allocation refers to the process of assigning functions in a library to specific CPUs. Allocation is simple: simply drag a function from the library to a specific CPU. Multiple function instances can be assigned to the same CPU, but the distribution of function instances across CPUs should be as even as possible.
[0104] It should be noted that 32-bit link library functions and 64-bit link library functions cannot be assigned to the same CPU for calculation.
[0105] 1.9 Library function input and output port mapping configuration
[0106] Library function input and output port mapping configuration is the process of mapping the input and output ports of each CPU's library function to the communication channels of the physical optical port. On the RTDS side, each optical port corresponds to a GT FPGA module, and each GT FPGA module can bidirectionally transmit 64 32-bit integers or floating-point numbers per step.
[0107] Double-click the function under CPU to open the library function port mapping interface. In this interface, you need to set the optical port number, channel number, and channel type for each library input and output port. Each optical port number corresponds to a physical SFP optical port. The platform currently supports up to four optical ports, so the range is 1-4. The channel number is the channel number of the GTFGPA on the RTDS side, so the range is 1-64. The channel type is the channel type of the GTFPGA on the RTDS side, which can be either float or int. The channel type must be set to the same as the channel type of the GTFPGA on the RTDS side. Note that if any port number or channel number is set to 0, the port is considered unused. For input ports, this input value is always 0, and for output ports, these output values are meaningless.
[0108] 1.9.1 Quickly set port information
[0109] Under normal circumstances, you can directly double-click or single-click the optical port number or channel number and then modify it directly on the keyboard. However, for regular optical port numbers and channel numbers, the following introduces several methods for quickly setting port information.
[0110] (1) Set bits to the same value in batches.
[0111] Use the mouse to drag and select the optical port numbers or channel numbers of multiple channels, then right-click and select the Set menu. A dialog box will pop up to enter the optical port number or channel number. Use the mouse to drag and select the optical port number or channel number of multiple channels, then right-click and select the Set to 0 (or other value) menu. Use the mouse to drag and select the channel type of multiple channels, then select Set to Int or Set to Float.
[0112] (2) Batch setting to incremental value.
[0113] First, manually set two consecutive equally spaced optical port numbers or channel numbers, such as 1 and 2. Then select these two and right-click -> Increment. In the dialog box that pops up, enter the increment amount, such as 10, and the following 3-12 will be automatically set. This method is very suitable for setting consecutively numbered channel numbers.
[0114] (3) Batch setting to incremental value.
[0115] First, drag the mouse to batch select the optical port number, channel number, and channel type, then right-click the selected area and select Copy in the pop-up shortcut menu. Finally, right-click where you want to paste and select Paste in the pop-up menu.
[0116] 1.9.2 Port multiplexing settings
[0117] Many libraries use on / off signals with only two possible values: 0 or 1. Using a single 32-bit integer to transmit these signals would waste limited channels. RTLink supports mapping multiple on / off signals to a single bit of the same integer channel. To set this up, right-click on the channel type and select Set to Int Low N Bits. This approach conserves channels.
[0118] 1.9.3 Time-division multiplexing port settings
[0119] If the project's sampling time is set to 50us and the library's function sampling time is 250us, the library will only run once every five simulation steps on the RTDS side. During four of these simulation steps, the library will not run, and the data transmitted during these steps will not be used, wasting channel resources. If five instances of the library function need to be run, with each simulation step transmitting the input and output of one of the library functions, the same number of channels as the previous one can be used to transmit the input and output of all five libraries in a time-sharing manner, saving a significant amount of channel resources. However, to identify different library function instances, dedicated input and output channels are required to transmit different library function instance IDs.
[0120] To set this up, select the "Time-Division Multiplexing Port" checkbox in the link library function's input / output port mapping configuration interface, set the number of instances to be multiplexed, and specify the optical port and channel numbers for the instance ID channel in the input / output port mapping. Simultaneously, you'll need to write logic on the RTDS side to input and output data for different instances based on the instance ID.
[0121] 1.10 Compiling and Running the RTLink Project
[0122] A dialog box for the project can be displayed.
[0123] 1.10.1 Building and Running
[0124] Double-click the project. The Ribbon area displays the Build, Run, and Stop buttons, which control the compilation, running, and stopping of the library, respectively. It is recommended to run the RTDS model first, then the library model.
[0125] 1.10.2 Waveform Recording
[0126] RTLink can record all input and output ports of a library function instance. The specific method is to first run the library project model, then double-click the library function instance under the CPU, set the appropriate recording duration in the opened input and output port mapping model, and finally click to trigger the recording.
[0127] The following is a verification of the universal platform of the new energy control and protection link library, as follows:
[0128] 2.1 Comparative test
[0129] The test used a 12MW direct-drive wind turbine dynamic link library and carried out simulation tests and comparative analysis under the following power ranges and fault conditions according to the test categories required by relevant standards. The analysis results are shown in Table 1.
[0130] Table 1 Simulation test results
[0131] The measurement values are different for different channels, and the measurement values of each channel are shown in Table 2.
[0132] Table 2 Channel measurement values
[0133] The following is a comparison of simulated fault data for different fault conditions under high and low power using the dynamic link library of a 12MW direct-drive wind turbine. The blue curve is the simulation test result of Matlab calling the dynamic link library, and the red curve is the joint simulation test result of RTDS and RTLink calling the dynamic link library.
[0134] 3.1.1 Low-power simulation test results
[0135] Based on the above content, the low-power simulation test results are obtained.
[0136] 3.1.2 Low-power simulation test results
[0137] Based on the above content, high-power simulation test results are obtained.
[0138] In summary, in order to verify the accuracy of this platform, a comparative analysis of large and small power was performed using the 12MW direct-drive wind turbine dynamic link library. The comparison results show that the high and low wear characteristics of the joint simulation using this platform and RTDS are highly consistent with the Matlab offline simulation, proving the feasibility and accuracy of this platform.
[0139] The present application also provides a control device for a universal system of a link library. It should be noted that the control device for the universal system of the link library of the embodiment of the present application can be used to execute the control method for the universal system of the link library provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions thereof will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.
[0140] The following introduces the control device of the universal system of the link library provided in the embodiment of the present application.
[0141] FIG5 is a block diagram of a control device for a universal system of a link library according to an embodiment of the present application. As shown in FIG5 , the device includes:
[0142] A first acquiring unit 100 is configured to acquire first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond one-to-one to the link libraries, and the first calling interfaces are used to call the corresponding link libraries;
[0143] A second acquiring unit 200 is configured to acquire second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface;
[0144] The first processing unit 300 is configured to use the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
[0145] Through this embodiment, any first calling interface can be called through the second calling interface, so that the first calling interface can call the corresponding link library, and the second calling interface can call any link library, so that the called link library can be sent to any emulator, so that the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and then users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0146] Whether there is one link library or multiple link libraries, calling the link library is to complete a task, so a task scheduling list can be constructed to schedule the link library according to the tasks in the task scheduling list. In the specific implementation process, the above-mentioned device also includes a third acquisition unit and a second processing unit. The third acquisition unit is used to obtain the task scheduling list after obtaining the second interface information of the second calling interface, wherein the above-mentioned task scheduling list includes multiple tasks, and each of the above-mentioned tasks includes the above-mentioned link library that is pre-called; the second processing unit is used to traverse the above-mentioned task scheduling list and execute multiple of the above-mentioned tasks in sequence.
[0147] In this solution, multiple tasks can be executed in sequence according to the task scheduling list. Each time a task is executed, the link library is called once to implement the link library needed to run this simulation, thereby ensuring that the calling process is controllable and the calling order is reasonable.
[0148] In order to further execute multiple tasks efficiently and accurately, the second processing unit of the present application includes a first processing module and a second processing module. The first processing module is used to obtain the priorities of the multiple tasks mentioned above, and execute the multiple tasks in order from high to low priority; the second processing module is used to obtain the association relationship between the multiple tasks mentioned above, and execute the multiple tasks in order according to the association relationship, wherein the association relationship includes a series relationship and a parallel relationship. The series relationship is the relationship in which the multiple tasks are executed in sequence, and the parallel relationship is the relationship in which the multiple tasks are executed in parallel.
[0149] In this solution, the association relationship between multiple tasks can also be determined. For tasks, there are serial relationships and parallel relationships. Multiple tasks can be executed in series or in parallel. In this way, multiple tasks can be executed efficiently and accurately according to the association relationship, and multiple tasks can also be executed efficiently and accurately according to their priority order, avoiding scheduling problems between multiple tasks.
[0150] During the simulation process, the simulator may be abnormal, so it is also possible to detect whether the simulator is abnormal. In some embodiments, the above-mentioned device also includes a control unit and a determination unit. The control unit is used to control the above-mentioned simulator corresponding to the above-mentioned link library to perform simulation after using the above-mentioned second calling interface to call the above-mentioned first calling interface according to the above-mentioned second interface information, so that the called above-mentioned first calling interface calls the above-mentioned link library corresponding to the above-mentioned first calling interface according to the above-mentioned first interface information; the determination unit is used to determine that the above-mentioned simulator is abnormal when the time length for not receiving a reply from the above-mentioned simulator is greater than or equal to the predetermined time length.
[0151] In this scheme, during the simulation process using the link library and the simulator, the simulator should return a reply message regardless of whether it has received the link library file or the simulation has ended. After the link library is sent to the simulator, the timing starts. If the timing reaches the predetermined time, it can be determined that the simulator is abnormal. This can realize the abnormal detection of the simulator, avoid the simulator being unable to perform normal simulation for a long time, and cause the subsequent simulation process to be unable to run, thereby further improving the efficiency of the simulation.
[0152] When calling the link library, the process of calling the link library can also be stopped according to the user's instructions. In some embodiments, the above-mentioned device also includes a third processing unit, which is used to call the above-mentioned first calling interface according to the above-mentioned second interface information using the above-mentioned second calling interface, so that the called above-mentioned first calling interface calls the above-mentioned link library corresponding to the above-mentioned first calling interface according to the above-mentioned first interface information. When an end command is received, the third processing unit stops continuing to call the above-mentioned link library based on the above-mentioned end command, wherein the above-mentioned end command is generated by the above-mentioned workstation.
[0153] In this solution, the workstation can also send a stop command. When the stop command is received, the process of calling the link library can be stopped. In this way, the user can control the process of calling the link library, further improving the user experience.
[0154] The control device of the universal system of the aforementioned link library includes a processor and a memory. The first acquisition unit, the second acquisition unit, the first processing unit, and the like are all stored as program units in the memory. The processor executes the program units stored in the memory to implement the corresponding functions. The aforementioned modules are all located in the same processor; alternatively, the aforementioned modules may be located in different processors in any combination.
[0155] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured. By adjusting kernel parameters, this solves the existing problem of link libraries being limited to a one-to-one configuration with corresponding simulation platforms, limiting users to a single simulation platform for simulation and resulting in a poor user experience.
[0156] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0157] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is run, a method for controlling a general system of controlling a device where the computer-readable storage medium is located to execute the link library.
[0158] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a control method of a general system of the link library when running.
[0159] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps of a general system control method of a link library are implemented.
[0160] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the control method for initializing a general system having at least the following link library.
[0161] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0162] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0163] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0164] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0166] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0167] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0168] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0169] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0170] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0171] 1) The universal system of the link library of the present application combines multiple link libraries and multiple simulators, uses a universal device to call any link library, and sends the called link library to any simulator. In this way, the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0172] 2) The control method of the general system of the link library of the present application can call any first calling interface through the second calling interface, so that the first calling interface can call the corresponding link library, and the second calling interface can call any link library, so that the called link library can be sent to any simulator, so that the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and then users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0173] 3) The control device of the universal system of the link library of the present application can call any first calling interface through the second calling interface, so that the first calling interface can call the corresponding link library, and the second calling interface can call any link library, so that the called link library can be sent to any simulator, so that the link library and the simulation platform can be set up in a many-to-many manner, that is, the link library is shared, and then users can use different platforms and different link libraries for simulation, thereby improving the user experience.
[0174] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A general system of link libraries, It is characterized in that include: A workstation, used to store a plurality of link libraries, wherein the link library is a collection of library files used in the linking process; A plurality of simulators, each of which is used to implement hardware simulation; A general device is respectively connected to the workstation and the plurality of simulators for communication, and is used for calling any one of the link libraries and sending the called link library to any one of the simulators.
2. The universal system of link library according to claim 1, It is characterized in that The general device also includes: A network interface, through which the universal device is connected to the workstation for communication, and through which the universal device receives the link library sent by the workstation; An optical fiber interface, through which the universal device is respectively connected to communicate with the plurality of simulators.
3. The universal system of link library according to claim 1, It is characterized in that The plurality of link libraries include an RTLAB link library, an ADPSS link library and a HyperSim link library, and the plurality of simulators include an RTDS simulator, an RTLAB simulator, an ADPSS simulator and a HyperSim simulator.
4. The universal system of link library according to claim 1, It is characterized in that The general device also includes: RTLinux operating system, used to provide a set of support functions for hardware real-time processes and control the simulation process; The GCC compiler is used to cooperate with the RTLinux operating system to implement code compilation.
5. A control method for a universal system of a link library according to any one of claims 1 to 4, It is characterized in that The method comprises: Acquire first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond to link libraries one by one, and the first calling interfaces are used to call the corresponding link libraries; Acquire second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface; The second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
6. The method according to claim 5, It is characterized in that After acquiring the second interface information of the second calling interface, the method further includes: Acquire a task scheduling list, wherein the task scheduling list includes a plurality of tasks, and each of the tasks includes the pre-called link library; The task scheduling list is traversed, and a plurality of the tasks are executed in sequence.
7. The method according to claim 6, It is characterized in that Performing a plurality of said tasks in sequence includes: Obtaining priorities of the plurality of tasks, and executing the plurality of tasks in descending order of priority; Obtain the association relationship between the multiple tasks, and execute the multiple tasks in sequence according to the association relationship, wherein the association relationship includes a series relationship and a parallel relationship, the series relationship is a relationship in which the multiple tasks are executed in sequence, and the parallel relationship is a relationship in which the multiple tasks are executed in parallel.
8. The method according to claim 5, It is characterized in that After the second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further includes: Controlling the simulator corresponding to the link library to perform simulation; When the time period during which no reply from the simulator is received is greater than or equal to a predetermined time period, it is determined that the simulator is abnormal.
9. The method according to claim 5, It is characterized in that After the second calling interface is used to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information, the method further includes: In case of receiving an end command, the link library is stopped from being called based on the end command, wherein the end command is generated by the workstation.
10. A control device for a universal system of a link library according to any one of claims 1 to 4, It is characterized in that The device comprises: A first acquisition unit, used to acquire first interface information of a plurality of first calling interfaces, wherein the first calling interfaces correspond to the link libraries one by one, and the first calling interfaces are used to call corresponding link libraries; A second acquiring unit, used to acquire second interface information of a second calling interface, wherein the second calling interface is used to call the first calling interface; The first processing unit is used to use the second calling interface to call the first calling interface according to the second interface information, so that the called first calling interface calls the link library corresponding to the first calling interface according to the first interface information.
Citation Information
Patent Citations
Joint simulation method, device and equipment for wind turbine generator, and storage medium
CN108614447A
Electromagnetic transient modeling simulation method and system for wind turbine generator
CN111832141A
Simulation model file processing method and device and electronic equipment
CN113238834A
Universal system of link library and control method and device of universal system of link library
CN116756945A
Method, apparatus, and computer program product for replacing a dynamic link library (DLL) of a first computing environment with a DLL of a second computing environment that can be invoked from the first computing environment in a transparent manner
US6442752B1
