CN103048929A - Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine - Google Patents

Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine Download PDF

Info

Publication number
CN103048929A
CN103048929A CN2012105705495A CN201210570549A CN103048929A CN 103048929 A CN103048929 A CN 103048929A CN 2012105705495 A CN2012105705495 A CN 2012105705495A CN 201210570549 A CN201210570549 A CN 201210570549A CN 103048929 A CN103048929 A CN 103048929A
Authority
CN
China
Prior art keywords
control
data
configuration
layer
matlab
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012105705495A
Other languages
Chinese (zh)
Inventor
曹卫华
王冠华
吴敏
陈都
安剑奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Central South University
Original Assignee
Central South University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Central South University filed Critical Central South University
Priority to CN2012105705495A priority Critical patent/CN103048929A/en
Publication of CN103048929A publication Critical patent/CN103048929A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a visualization process control real-time simulation method based on a matrix laboratory (MATLAB) engine. The method realizes real-time simulation based on a simulation system with a three-layer structure: a user interface layer loads a Visual Graph Active X control to form a user interface in the Visual c++, i.e. in the VC environment; a data management layer is used for realizing operating data management and model data management; and a simulation operation layer accesses the data which is stored in an MATLAB workspace and data files which are generated when the MATLAB operates and computes the data on the basis of the MATLAB engine so as to obtain simulation result data. The visualization process control real-time simulation method based on the MATLAB engine not only fully utilizes a strong MATLAB data processing function, but also has the advantages of VC interface humanization and convenience in operation and use.

Description

Visualization process control real-time emulation method based on the MATLAB engine
Technical field
The present invention relates to a kind of visualization process control real-time emulation method based on the MATLAB engine, is a kind of method for designing of controlling real-time emulation system based on the visualization process of user's operation layer, data management layer, three layers of composition of running background layer.
Background technology
Along with the growth at full speed of China's economy and the quick raising of industrial automatization, various computer simulation systems are widely used in various industrial processes.The employed control algolithm of these systems, the overwhelming majority provides the conventional control methods such as single argument PID, and rare advanced person's control strategy.The analogue system of these conventional control methods is simple and easy to use, deeply be subjected to the welcome of industry member, but along with industrial processes popularization and day by day complicated, industrial processes have multivariate, strong coupling, non-linear, large dead time and the characteristics such as uncertain, so that the production scene is difficult to automated system and corresponding Advanced Control Software are fully debugged and tested.Though some computer control system has disposed Advanced Process Control Software, need to adopt the script form to realize the control algolithm configuration, this have real process control experience for those and lack use the user of the knowledge of programme very difficult.Even if for the user who is proficient in programming knowledge, the configuration of complex control system is a non-easy thing also.
Through for many years autonomous innovation and external cooperation, enterprise has had higher automatization level, has now had various comparatively advanced control system.The technician, is greatly improved no matter be theoretical level or actual operating ability by in the study of colleges and universities and operation for many years.The control of continuous industry process with optimize research usually can not the direct control process units, but ability practical application will verify by experiment after.In order to reduce the cost of repeatedly testing, it is necessary developing and design corresponding software experimentation platform.Abroad Experiences in Developing Software has for many years been arranged, and some has formed monopolization.The specific aim of these softwares is not strong, and expensive even if so.And the exploitation of the existing automatization level of domestic enterprise and advanced control algorithm and utilization and the leading level in the world also have a certain distance.Now face built control system and safeguard and optimize, need a general process control simulation platform badly, come producing various object models and configuration control module model provides Data support.
In present process control simulation platform, emulation platform is more intense to the dependence of software and hardware, simultaneously emulation platform often for be that certain process lacks certain versatility.Develop one towards industry spot, visual, graphical control, can very intuitively, vivo simulate industrial system, break away from the measurement that relies on actual hardware, realization centered by software, can be in the environment similar with the real process system that control program, strategy and the algorithm of advanced person's control carried out the process control simulation experiment porch of a large amount of emulation experiments is imperative.
Summary of the invention
Technical matters to be solved by this invention provides a kind of visualization process control real-time emulation method based on the MATLAB engine, should be based on the visualization process control real-time emulation method of MATLAB engine, not only take full advantage of the powerful data processing function of MATLAB, also have the hommization of VC interface, advantage easy for operation.
The technical solution of invention is as follows:
A kind of visualization process control real-time emulation method based on the MATLAB engine, based on the analogue system realization real-time simulation of three-tier architecture, described three-tier architecture comprises user interface layer, data management layer and simulation run layer;
User interface layer: be under the VC environment at Visual c++, load Visual Graph ActiveX control, form user interface;
Data management layer: be used for realizing service data management and model data management; The service data management refers to reading and storing of service data, and the model data management refers to setting and the preservation to model information, and described model information comprises the structure and parameter information relevant with configuration figure with schematic diagram; The data management layer is communicated by letter with user's operation layer by the foreground communication interface, and the data management layer is communicated by letter with the simulation run layer by the background communication interface;
Simulation run layer: the data file that is stored in the data among the MATLAB workspace and generate when being moved by MATLAB is conducted interviews, and based on the MATLAB engine data are carried out computing, obtain Simulation result data, emulation relates to when connecting external hardware, and the simulation run layer also provides the communication interface of communicating by letter with external hardware;
Be provided with transmission and the preservation that the internal communication interface is used for data between three levels, realize the simulation process based on three-tier architecture, described internal communication interface comprises foreground communication interface and background communication interface.
User interface layer comprises following four parts:
(1) Component Gallery part: the element that need to use when comprising render component figure or virtual unit (comprising pipeline, valve, motor, water tank etc.), the Ctrl List control that uses MFC to carry shows Component Gallery; Use the Visual Graph control of external load with the Component Gallery File Open, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(2) configuration figure part: the element in the invocation component storehouse or virtual unit are drawn and are formed; Configuration figure is made of two parts, is respectively configuration figure Visual Graph control and configuration figure attribute Visual Graph control; Configuration figure Visual Graph control is responsible for showing the configuration interface, and configuration figure Visual Graph control is responsible for showing the attribute of each element among the configuration figure, and checking and revising component attributes is provided;
(3) widget library part: comprise that the controller control is (such as the PID controller, fuzzy controller etc.), input control (be used for characterizing analog input [being used for connecting outside simulating signal input equipment] and numeral input [step input, square-wave signal input etc.]), output control (simulation output and numeral output), arithmetic control (be used for carrying out add, subtract, the operation such as multiplication and division), delay time control, switch control and logical control (with or, non-etc.); Show widget library by Ctrl List control, open the widget library file by Visual Graph control, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(4) schematic diagram part: schematic diagram forms by the ActiveX drafting that calls in the widget library; By schematic diagram Visual Graph control displaying principle figure interface, by the attribute of each control among the schematic diagram attribute Visual Graph control displaying principle figure, provide observation and modification interface to control property.
MFC (Microsoft Foundation Classes) is one MicrosoftThe class libraries that provides (class libraries) has encapsulated the API of Windows with the form of C++ class, and comprises one Application programFramework is to reduce Application developmentPersonnel's workload.The class that wherein comprises comprises the built-in of a large amount of Windows handle encapsulation classes and a lot of Windows ControlEncapsulation class with assembly.
The simulation run layer comprises MATLAB engine and simulink, make VC generate simulink model and the data that read the simulink operation by Calling MATLAB Engine, constantly carry out computing and produce data, and upload the data to user interface layer by the data management layer and show, emulation relates to when connecting external hardware, be issued to the communication interface of communicating by letter with external hardware with the control external hardware, perhaps obtain data or instruction by the communication interface of communicating by letter with external hardware from external hardware.
Concrete emulation mode is any of following three kinds of modes:
Mode 1: use Virtual Controller control virtual objects:
The controller of Process Control System and control object all make up based on three-tier architecture, component construction in user interface layer (being user's operation layer) selection Component Gallery is used for the configuration figure of simulation control object, select the control in the widget library to make up the schematic diagram that is used for analog control system, at this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; Need not to adopt the working control device, also need not to adopt the working control object, whole simulation process is all finished in the inside of PC.
Mode 2: use Virtual Controller control practical object:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; Relate to the real time data of control object in configuration figure and the schematic diagram from described practical object;
The PC that is mounted with described analogue system directly receives the practical object control result data of storer (such as the DB module of the PLC) storage of external hardware device by integrated circuit board, described PC transmission data and control signal (such as the frequency of frequency converter) realize emulation to the storer (such as the DB module of PLC) of external hardware device;
Mode 3: use working control device control virtual objects:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; At this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; The control parameter of the controller that relates in the schematic diagram is from external hardware device;
The PC that is mounted with described analogue system directly receives the working control parameter of controller (such as the controller among the PLC) storage of external hardware device by integrated circuit board, it (is feedback signal that described PC sends the operation result data, such as water level, temperature etc.) to the controller (such as the controller among the PLC) of external hardware device, realize emulation.
Beneficial effect:
Visualization process control real-time emulation method based on the MATLAB engine of the present invention, visualization process control emulation mode based on three layers of composition of user's operation layer, data management layer, running background layer (being the simulation run layer), solve existing process control simulation platform and lack versatility, environment is relied on the problems such as stronger.
The present invention adopts three layers of emulation mechanisms, and for the configuration monitoring interface, this system provides abundant subject component, comprises the static components such as rectangle, text, pipeline, and based on dynamic assemblies such as the valve of mathematical model object, motor, water tanks.Can avoid not having good monitored picture such as softwares such as matlab, emulated interface is dull, and the shortcoming of image can generate vivid Simulation Interface simulation actual field equipment not, and easy operating, and intuitive is good.
Visual simulation system of the present invention adopts three layers of emulation mechanisms, in the schematic diagram of building for widget library, by matlab software, can set up the complex control system of neural network, fuzzy control etc., the abundant species of optional controller, and also powerful; Application demand by actual industrial control, set up as using more tailor-made algorithm control in the industrial processs such as classical PID control, fuzzy control, fuzzy control, expert's control, make simulation software more near the demand of commercial Application, solved that the analogue system individual character is stronger in the market, lacked the shortcoming of versatility algorithm control.
Visual simulation system of the present invention adopts three layers of emulation mechanisms, at the running background layer, call the method for matlab engine by use, and under the interface of simulation software, realize the operation of complicated control algolithm, having solved in the market simulation software does not anyway have the problem of powerful algorithms library, reduced the workload of research and development, computing is convenient, is easy to realize.
Visual simulation system of the present invention adopts three layers of emulation mechanisms, at the data management layer, by the management to service data and model data, organically Visual C++ programmed environment and Matlab developing instrument are combined togather, realized reading and preserving service data and object model information, realize carrying out in real time of emulation, the invention provides the simulation model of good, visual strong, powerful, the interface hommization of a kind of brand-new, practicality.
Description of drawings
Fig. 1 is Simulation System Interface figure;
Fig. 2 is on-the-spot water tank control structure figure;
Fig. 3 is control flow chart;
Fig. 4 is the schematic diagram that the working control device is controlled virtual water tank;
Fig. 5 is that the working control device is controlled virtual water tank data and the working control device is controlled actual water tank Data Comparison figure;
Fig. 6 is that the working control device is controlled virtual water tank data and the working control device is controlled virtual water tank data error number percent curve map;
Fig. 7 is the overall construction drawing of analogue system.
Embodiment
Below with reference to the drawings and specific embodiments the present invention is described in further details:
A kind of visualization process control real-time emulation method based on the MATLAB engine is characterized in that based on the analogue system realization real-time simulation of three-tier architecture, described three-tier architecture comprises user interface layer, data management layer and simulation run layer;
User interface layer: be under the VC environment at Visual c++, load Visual Graph ActiveX control, form user interface;
Data management layer: be used for realizing service data management and model data management; The service data management refers to reading and storing of service data, and the model data management refers to setting and the preservation to model information, and described model information comprises the structure and parameter information relevant with configuration figure with schematic diagram; The data management layer is communicated by letter with user's operation layer by the foreground communication interface, and the data management layer is communicated by letter with the simulation run layer by the background communication interface;
Simulation run layer: the data file that is stored in the data among the MATLAB workspace and generate when being moved by MATLAB is conducted interviews, and based on the MATLAB engine data are carried out computing, obtain Simulation result data, emulation relates to when connecting external hardware, and the simulation run layer also provides the communication interface of communicating by letter with external hardware;
Be provided with transmission and the preservation that the internal communication interface is used for data between three levels, realize the simulation process based on three-tier architecture, described internal communication interface comprises foreground communication interface and background communication interface.
User interface layer comprises following four parts:
(1) Component Gallery part: the element that need to use when comprising render component figure or virtual unit (comprising pipeline, valve, motor, water tank etc.), the Ctrl List control that uses MFC to carry shows Component Gallery; Use the Visual Graph control of external load with the Component Gallery File Open, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(2) configuration figure part: the element in the invocation component storehouse or virtual unit are drawn and are formed; Configuration figure is made of two parts, is respectively configuration figure Visual Graph control and configuration figure attribute Visual Graph control; Configuration figure Visual Graph control is responsible for showing the configuration interface, and configuration figure Visual Graph control is responsible for showing the attribute of each element among the configuration figure, and checking and revising component attributes is provided;
(3) widget library part: comprise that the controller control is (such as the PID controller, fuzzy controller etc.), input control (be used for characterizing analog input [being used for connecting outside simulating signal input equipment] and numeral input [step input, square-wave signal input etc.]), output control (simulation output and numeral output), arithmetic control (be used for carrying out add, subtract, the operation such as multiplication and division), delay time control, switch control and logical control (with or, non-etc.); Show widget library by Ctrl List control, open the widget library file by Visual Graph control, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(4) schematic diagram part: schematic diagram forms by the ActiveX drafting that calls in the widget library; By schematic diagram Visual Graph control displaying principle figure interface, by the attribute of each control among the schematic diagram attribute Visual Graph control displaying principle figure, provide observation and modification interface to control property.
The simulation run layer comprises MATLAB engine and simulink, make VC generate simulink model and the data that read the simulink operation by Calling MATLAB Engine, constantly carry out computing and produce data, and upload the data to user interface layer by the data management layer and show, emulation relates to when connecting external hardware, be issued to the communication interface of communicating by letter with external hardware with the control external hardware, perhaps obtain data or instruction by the communication interface of communicating by letter with external hardware from external hardware.
Concrete emulation mode is any of following three kinds of modes:
Mode 1: use Virtual Controller control virtual objects:
The controller of Process Control System and control object all make up based on three-tier architecture, component construction in user interface layer (being user's operation layer) selection Component Gallery is used for the configuration figure of simulation control object, select the control in the widget library to make up the schematic diagram that is used for analog control system, at this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; Need not to adopt the working control device, also need not to adopt the working control object, whole simulation process is all finished in the inside of PC.
Mode 2: use Virtual Controller control practical object:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; Relate to the real time data of control object in configuration figure and the schematic diagram from described practical object;
The PC that is mounted with described analogue system directly receives the practical object control result data of storer (such as the DB module of the PLC) storage of external hardware device by integrated circuit board, described PC transmission data and control signal (such as the frequency of frequency converter) realize emulation to the storer (such as the DB module of PLC) of external hardware device;
Mode 3: use working control device control virtual objects:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; At this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; The control parameter of the controller that relates in the schematic diagram is from external hardware device;
The PC that is mounted with described analogue system directly receives the working control parameter of controller (such as the controller among the PLC) storage of external hardware device by integrated circuit board, it (is feedback signal that described PC sends the operation result data, such as water level, temperature etc.) to the controller (such as the controller among the PLC) of external hardware device, realize emulation.
Embodiment 1:
As shown in Figure 7, when system moves, contact bed is crossed interface by interface with above-mentioned data communication device and is transferred to that the data management layer is preserved and be issued to the simulation calculation layer by interface simultaneously moves, and data return data administration and supervision authorities are preserved and fed back to contact bed and show after will moving.Runtime parameter setting value and the object model information of data management layer by reading user's operation layer, and import this partial data into the running background layer, make up the simulink simulation figure, because the simulation data of Simulink and input, original state, simulation time are relevant.The call Simulink engine real-time by external program moves and calculates, and imports the data management layer into through postrun data and preserve.
In addition, topworks or PLC that the simulation run layer also can be crossed system's operation and the data communication device that calculates Ethernet external communication interface and reality carry out communication, utilize this outside communication interface, use controller that the object of system building is carried out communication, realize real-time simulation, reach optimum effect by adjusting control strategy, for the controller of reality provides guidance.
During the constructing system schematic diagram, drag that corresponding control and line carry out in the process of drawing principle figure in the widget library, each time operation all can start on the backstage MATLAB engine, carries out simultaneously drawing in simulink corresponding figure.Complete when the schematic diagram drafting, the corresponding simulink analogous diagram in backstage is namely drawn complete.Thereby the effect that realization is carried out emulation by software interface.
At first, open visualization process control software, software interface as shown in Figure 1, the interface mainly is divided into following components:
Menu bar mainly is comprised of 5 parts.Engineering, the main function of assembly management be realize engineering, assembly, control newly-built, open, preserve, close and add assembly or control to Component Gallery or widget library.
The concrete structure of toolbar is from left to right once as follows, the switching of attribute column, the Component Gallery master opens at the interface, Component Gallery is opened, the original size of configuration figure, configuration figure dwindles, configuration figure amplifies, the combination of configuration figure element, configuration figure assembly decomposes, straight line, rectangle, circle, broken line, polygon, straight line with tie point, broken line with tie point, horizontal vertical line with tie point, curve with tie point, tie point, literal, the figure layer is toward last layer, the figure layer is one deck down, rotation, copy, sticking note, cancel, recover, real-time curve, history curve, compiling, operation, stop.
Component Gallery provides for building the configuration interface, and assembly can issue data to model, and real data that simultaneously also can be real-time can also be built various models for assembly simultaneously.Component Gallery is divided into 8 classes, mainly be pump, pipeline, alarm lamp, switch, indication mechanism, valve, other, self-defined assembly.
Widget library mainly provides for building schematic diagram, after putting up model for assembly, can use the control of widget library to put up complete schematic diagram, then carries out emulation.
The configuration interface is the place that shows the configuration figure that puts up, and by configuration figure, can understand industrial flow, and the assembly by configuration figure can issue and real data simultaneously.
After putting up configuration figure, after assembly is put up model, put up complete simulating schematic diagram by the control that uses widget library, schematic diagram is presented in the schematic diagram, and the parameter, controller parameter, setting value of object etc. can be set in schematic diagram.
Component property hurdle major function is the attribute of change assembly, after mouse is selected an assembly, can occur the attribute of the assembly of selection in the component property hurdle, can revise parameters by attribute column.
Then, come software is carried out by the water tank simulation example, test test mainly tests to test by 2 groups, and first group is that the water tank that uses actual controller control actual, second group are the virtual water tanks of building in the PID controller control analogue system of using in the actual PLC control system.By contrasting above two groups of simulation performances of testing verifying software.
The water tank that this example is chosen is a small-sized water tank of certain steel plant experimental center, and this water tank is comprised of two parts, and take H2 as boundary, top is divided into the round platform container, and the bottom is divided into cylindrical chamber.
The major parameter of this model has: R=275mm, r=50mm, H 1=500mm, H 2=155mm,
In addition, the water tank example also is furnished with Siemens's frequency converter, PLC, water pump, Level meter device, and the structural drawing of water tank example as shown in Figure 2.
In order to build above-mentioned water tank analogue system, this paper at first sets up realistic model to the water tank model at scene, by the method that Analysis on Mechanism combines with data-driven, has set up the water tank model.This water tank model mainly is divided into into the water model and fixedly goes out water model under the aperture.
1) water inlet pattern
h>H 2
dh = - 508 × v × v + 23750 × v - 177700 1.3362 h × h - 209.34 × h + 8199.17 - - - ( 1 )
h≤H 2
dh = - 508 × v × v + 23750 × v - 177700 7854 - - - ( 2 )
Wherein: dh: the liquid level increment; V: electric machine frequency is given; H: current liquid level
2) fixing aperture 25% water discharge mode of valve
h>H 2
dh = - 0.01646 × h × h + 6.153 × h - 7275 1.3362 h × h - 209.34 × h + 8199.17 - - - ( 3 )
h≤H 2
dh = - 0.01646 × h × h + 6.153 × h - 7275 7854 - - - ( 4 )
Engineering according to above water tank model is built first a water tank is input as frequency converter frequency, is output as liquid level.This engineering is preserved into self-defining assembly, and use when water tank is carried out emulation convenient next time.
The working control device adopts Siemens 300 to control, and water tank has two inputs, and one is the frequency converter input into water, and another input is the valve opening that discharges water.Because valve adopts manual operator to control, manual operator carries pid control algorithm and controls, but actual control effect is bad, and it is longer to have the adjusting time, and shock range is excessive.So we adopt valve opening fixedly to get rid of valve to the impact of system.According to the debugging of scene to the control effect, pid parameter is chosen for 2,20 seconds, 10 seconds, valve opening: 25%, and data each second adopts once, and PID control frequency converter frequency is realized control effect, setting value: 400mm.Process flow diagram and control principle drawing such as Fig. 3 and Fig. 4, actual PID control actual water tank design sketch as shown in Figure 5.
The mode that the virtual object of working control device control adopts is, realize by analog quantity transition card and digital quantity transition card, the object of emulation is built input/output signal, sends to the analog quantity transition card, and the analog input and output of PLC is realized communication by connecting analog amount transition card.Actual pid parameter: 2,20 seconds, 10 seconds, setting value: 400mm.
As shown in Figure 4, the w6 analog input is the input signal of working control device, and w7 and w1 are the signal conversion, W7:u1 (1) * 2, and W1:u (1)/73, w3 are the input of feedback signal, w4 is actual output.W0 corresponding expression formula (1)-(4);
According to the time trend graph of errors as can be known, adopt native system to emulation liquid level trend map and the percentage error of the high water tank trend map of reality minimum (maximum error is less than 0.05%) that water tank carries out, verified the validity of native system.

Claims (4)

1. the visualization process control real-time emulation method based on the MATLAB engine is characterized in that, based on the analogue system realization real-time simulation of three-tier architecture, described three-tier architecture comprises user interface layer, data management layer and simulation run layer;
User interface layer: be under the VC environment at Visual c++, load Visual Graph ActiveX control, form user interface;
Data management layer: be used for realizing service data management and model data management; The service data management refers to reading and storing of service data, and the model data management refers to setting and the preservation to model information, and described model information comprises the structure and parameter information relevant with configuration figure with schematic diagram; The data management layer is communicated by letter with user's operation layer by the foreground communication interface, and the data management layer is communicated by letter with the simulation run layer by the background communication interface;
Simulation run layer: the data file that is stored in the data among the MATLAB workspace and generate when being moved by MATLAB is conducted interviews, and based on the MATLAB engine data are carried out computing, obtain Simulation result data, emulation relates to when connecting external hardware, and the simulation run layer also provides the communication interface of communicating by letter with external hardware;
Be provided with transmission and the preservation that the internal communication interface is used for data between three levels, realize the simulation process based on three-tier architecture, described internal communication interface comprises foreground communication interface and background communication interface.
2. the visualization process based on the MATLAB engine according to claim 1 is controlled real-time emulation method, it is characterized in that user interface layer comprises following four parts:
(1) Component Gallery part: the element that need to use when comprising render component figure or virtual unit, the Ctrl List control that uses MFC to carry shows Component Gallery; Use the Visual Graph control of external load with the Component Gallery File Open, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(2) configuration figure part: the element in the invocation component storehouse or virtual unit are drawn and are formed; Configuration figure is made of two parts, is respectively configuration figure Visual Graph control and configuration figure attribute Visual Graph control; Configuration figure VisualGraph control is responsible for showing the configuration interface, and configuration figure Visual Graph control is responsible for showing the attribute of each element among the configuration figure, and checking and revising component attributes is provided;
(3) widget library part: comprise controller control, input control, output control, arithmetic control, time-delay control, switch control and logical control; Show widget library by Ctrl List control, open the widget library file by Visual Graph control, Ctrl List control becomes the icon transformation of Visual Graph control the icon of List control needs;
(4) schematic diagram part: schematic diagram forms by the ActiveX drafting that calls in the widget library; By schematic diagram VisualGraph control displaying principle figure interface, by the attribute of each control among the schematic diagram attribute Visual Graph control displaying principle figure, provide observation and modification interface to control property.
3. the visualization process based on the MATLAB engine according to claim 2 is controlled real-time emulation method, it is characterized in that, the simulation run layer comprises MATLAB engine and simulink, make VC generate simulink model and the data that read the simulink operation by Calling MATLAB Engine, constantly carry out computing and produce data, and upload the data to user interface layer by the data management layer and show, emulation relates to when connecting external hardware, be issued to the communication interface of communicating by letter with external hardware with the control external hardware, perhaps obtain data or instruction by the communication interface of communicating by letter with external hardware from external hardware.
4. each described visualization process based on the MATLAB engine is controlled real-time emulation method according to claim 1-3, it is characterized in that concrete emulation mode is any of following three kinds of modes:
Mode 1: use Virtual Controller control virtual objects:
The controller of Process Control System and control object all make up based on three-tier architecture, component construction in user interface layer selection Component Gallery is used for the configuration figure of simulation control object, select the control in the widget library to make up the schematic diagram that is used for analog control system, at this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; Need not to adopt the working control device, also need not to adopt the working control object, whole simulation process is all finished in the inside of PC.
Mode 2: use Virtual Controller control practical object:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; Relate to the real time data of control object in configuration figure and the schematic diagram from described practical object;
The PC that is mounted with described analogue system directly receives the practical object control result data of the memory stores of external hardware device by integrated circuit board, described PC transmission data and control signal realize emulation to the storer of external hardware device;
Mode 3: use working control device control virtual objects:
At the configuration figure that user's operation layer selects the component construction in the Component Gallery to be used for simulating control object, select the control in the widget library to make up the schematic diagram that is used for analog control system; At this moment, relate to the real time data of control object in configuration figure and the schematic diagram from emulated data; The control parameter of the controller that relates in the schematic diagram is from external hardware device;
The PC that is mounted with described analogue system directly receives the working control parameter of the controller storage of external hardware device by integrated circuit board, and described PC sends the operation result data to the controller of external hardware device, realizes emulation.
CN2012105705495A 2012-12-25 2012-12-25 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine Pending CN103048929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105705495A CN103048929A (en) 2012-12-25 2012-12-25 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105705495A CN103048929A (en) 2012-12-25 2012-12-25 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine

Publications (1)

Publication Number Publication Date
CN103048929A true CN103048929A (en) 2013-04-17

Family

ID=48061612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105705495A Pending CN103048929A (en) 2012-12-25 2012-12-25 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine

Country Status (1)

Country Link
CN (1) CN103048929A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019104A (en) * 2012-12-27 2013-04-03 中南大学 Visual process control system configuration simulation method
CN103399782A (en) * 2013-08-06 2013-11-20 南车株洲电力机车研究所有限公司 Method and device enabling Simulink module to output simulation data to interface
CN105469693A (en) * 2016-01-07 2016-04-06 西南石油大学 System and method for oil-gas gathering and transferring virtual control training
CN105677448A (en) * 2016-03-19 2016-06-15 张著岳 Online simulation method and system based on webpage programmable controller
CN105912751A (en) * 2016-03-31 2016-08-31 北京经纬恒润科技有限公司 Method and system for model joint simulation
CN106682323A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Transformation system for transforming architecture models into dynamic simulation models, and method thereof
CN109085780A (en) * 2018-08-03 2018-12-25 厦门大学 A kind of laboratory apparatus control system and method based on Unity3D
CN109977335A (en) * 2019-03-29 2019-07-05 江苏极熵物联科技有限公司 A kind of Web configuration method towards industrial equipment
CN110096261A (en) * 2019-04-29 2019-08-06 杭州杉石科技有限公司 Embedded system structure design method, device and equipment
CN112231608A (en) * 2020-10-30 2021-01-15 三峡机电工程技术有限公司 Method for realizing embedded Web configuration graphics primitive
CN114002966A (en) * 2020-11-06 2022-02-01 蘑菇物联技术(深圳)有限公司 Interpretation method of controller control algorithm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040168107A1 (en) * 2003-02-25 2004-08-26 Sheet Dynamics, Ltd. Graphical feedback of disparities in target designs in graphical development environment
US20070277151A1 (en) * 2006-05-17 2007-11-29 The Mathworks, Inc. Action languages for unified modeling language model
CN101533262A (en) * 2009-04-22 2009-09-16 北京航空航天大学 Method for realizing associative simulation of machine and control system based on service
CN102033739A (en) * 2009-09-24 2011-04-27 宗鹏 Combined programming of MATLAB and OPNET for solving problem of automatic tracking of array antenna in OPNET pipeline

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040168107A1 (en) * 2003-02-25 2004-08-26 Sheet Dynamics, Ltd. Graphical feedback of disparities in target designs in graphical development environment
US20070277151A1 (en) * 2006-05-17 2007-11-29 The Mathworks, Inc. Action languages for unified modeling language model
CN101533262A (en) * 2009-04-22 2009-09-16 北京航空航天大学 Method for realizing associative simulation of machine and control system based on service
CN102033739A (en) * 2009-09-24 2011-04-27 宗鹏 Combined programming of MATLAB and OPNET for solving problem of automatic tracking of array antenna in OPNET pipeline

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王芳等: "可视化过程控制实时仿真系统设计与开发", 《第23届过程控制会议论文集》 *
薛福珍等: "《基于环节的控制系统图形组态仿真软件》", 《系统仿真学报》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019104A (en) * 2012-12-27 2013-04-03 中南大学 Visual process control system configuration simulation method
CN103399782A (en) * 2013-08-06 2013-11-20 南车株洲电力机车研究所有限公司 Method and device enabling Simulink module to output simulation data to interface
CN103399782B (en) * 2013-08-06 2016-07-13 南车株洲电力机车研究所有限公司 A kind of Simulink of realization modular simulation data export method and the device at interface
CN105469693A (en) * 2016-01-07 2016-04-06 西南石油大学 System and method for oil-gas gathering and transferring virtual control training
CN105677448A (en) * 2016-03-19 2016-06-15 张著岳 Online simulation method and system based on webpage programmable controller
CN105677448B (en) * 2016-03-19 2021-07-20 张著岳 Online simulation method and system of programmable controller based on webpage
CN105912751B (en) * 2016-03-31 2019-01-29 北京经纬恒润科技有限公司 A kind of method and system of model associative simulation
CN105912751A (en) * 2016-03-31 2016-08-31 北京经纬恒润科技有限公司 Method and system for model joint simulation
CN106682323A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Transformation system for transforming architecture models into dynamic simulation models, and method thereof
CN106682323B (en) * 2016-12-30 2019-11-12 苏州同元软控信息技术有限公司 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model
CN109085780A (en) * 2018-08-03 2018-12-25 厦门大学 A kind of laboratory apparatus control system and method based on Unity3D
CN109085780B (en) * 2018-08-03 2021-06-04 厦门大学 Experimental instrument control system and method based on Unity3D
CN109977335A (en) * 2019-03-29 2019-07-05 江苏极熵物联科技有限公司 A kind of Web configuration method towards industrial equipment
CN110096261A (en) * 2019-04-29 2019-08-06 杭州杉石科技有限公司 Embedded system structure design method, device and equipment
CN112231608A (en) * 2020-10-30 2021-01-15 三峡机电工程技术有限公司 Method for realizing embedded Web configuration graphics primitive
CN112231608B (en) * 2020-10-30 2023-01-03 三峡机电工程技术有限公司 Method for realizing embedded Web configuration graphics primitive
CN114002966A (en) * 2020-11-06 2022-02-01 蘑菇物联技术(深圳)有限公司 Interpretation method of controller control algorithm

Similar Documents

Publication Publication Date Title
CN103048929A (en) Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine
CN103019104B (en) Visual process control system configuration simulation method
CN106257367A (en) A kind of nuclear power DCS platform test device based on analogue system and method for testing
Thompson et al. Specification-based prototyping for embedded systems
CN104794258A (en) Automobile hardware-in-loop simulation system
CN204856068U (en) Ship power station operation training simulation ware
CN104182272A (en) Simulation testing platform and controlling method for hypersonic flight vehicle assessment
CN104635669A (en) Instrument control system verification method
CN104598373A (en) Embedded software testing method capable of realizing multi-technology fusion
CN112036023A (en) Software integrated generation system for generator transformer bank protection device
CN110847111B (en) Method for acquiring hydropower station gate scheduling parameters based on semi-physical simulation
Jiang et al. Virtual reality training environment for electric systems
CN106295808A (en) Aircraft embedded real-time diagnosis reasoning algorithm test method
CN204926593U (en) Ship ballast water system operation training simulation ware
CN204576107U (en) The semi-matter simulating system of Chemical Engineering Process Control
CN113359414A (en) Liquid level unit process control digital twin system
CN113885426A (en) Automatic generation method, test method and visual test system for PLC (programmable logic controller) codes of excavator control program
CN101710233A (en) Design method of motion controller based on RCP
Fritzson The openmodelica environment for building digital twins of sustainable cyber-physical systems
CN106873465B (en) Ship alarm control system
CN106647419A (en) Matrix mapping method for hardware channel of relay protection device
CN104199660B (en) Customized type output and the method for achievement Dynamic Announce in water conservancy software
Chen Application of intelligent technology in electrical engineering automation
Liu et al. Research on Fault Diagnosis Training System Based on Virtual Space Launch Site
Pearce Interfacing the ESL simulation language to the virtual test bed

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130417