CN109189633A - Holographic model running monitoring method in real time - Google Patents
Holographic model running monitoring method in real time Download PDFInfo
- Publication number
- CN109189633A CN109189633A CN201810848356.9A CN201810848356A CN109189633A CN 109189633 A CN109189633 A CN 109189633A CN 201810848356 A CN201810848356 A CN 201810848356A CN 109189633 A CN109189633 A CN 109189633A
- Authority
- CN
- China
- Prior art keywords
- output information
- specified
- information
- web page
- real time
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
The invention discloses a kind of holographic model running monitoring methods in real time, and the method step includes: the preset webpage under the specified directory of model engineering file, and the write-in control script in preset webpage;Every output information of real-time interception CMD console;Every output information is encoded with html language, the web page contents of form format;The formatted output information of each is appended in preset web page files;WebBrowser control is loaded in the specified display panel of main program, the specified web page display information of WebBrowser control control operation, pass through all output informations of real-time interception CMD console, output information is saved to webpage and shown, facilitate user to be tracked model running process to reach, solves the purpose that output information saves and shows balance;Multiple windows are loaded in the display panel of main program, are avoided the mode of traditional continuous switching task window, are facilitated user monitoring and manipulate the operation of model.
Description
Technical field
The present invention relates to model runnings to monitor interaction technique field, and in particular to a kind of holographic model running monitoring in real time
Method.
Background technique
As the mankind are to deepening constantly of recognizing of natural process and the continuous development of computer technology, there will be physical mechanism
Process model be coupled together to solve or understand global question, be the basic research of earth environment scientific domain and technical research
An important trend.For example, the hydrology-biogeochemical cycle combined simulation device SWAT-DayCent Coupler is exactly logical
Overcoupling Watershed Scale hydrologic process model SWAT and biogeochemical cycle process model DayCent are to realize to nature
The understanding and exploration of the cyclic process of the substances such as water-carbon-to-nitrogen and its interaction.Generally, with physical mechanism process model and
Its coupling model calculation procedure is complicated, and parameter is numerous, needs to consume a large amount of computing resource;The requirement for simulating fining is higher,
The model running time is also longer.For characterization model operating status and carry out model debugging, model is generally all provided with detailed
Information output, whole operational process would generally generate hundreds of thousands of or even up to a million information output.For Capturing Models whole
Operating status check and analyze for user, not only to save all output informations, and to pay close attention to current output information.
Prior art introduction
Using SWAT-DayCent Coupler as the example of complicated coupling model, operational process is usually directed to multiple journeys
Sequence: CMD console, R window and the resource manager of Windows.It can be printed line by line in console window during model running
Model output data, output information perhaps directly show in console or are output to specified file by order;Meanwhile mould
Type is also required to link with R platform;Model can also generate a large amount of text file and graphic file in specified folder.Cause
This, CMD console window, three windows of R window and window explorer need display model operating status simultaneously.Mesh
Preceding processing mode is that user needs to open simultaneously three above window, and continuous manual switching window carrys out monitoring model each section fortune
Row state.
Prior art disadvantage
The CMD console window default of Windows only shows newest 300 row information, is not surpassed by the way that at most display is arranged
Cross 9999 rows.Easily hundreds of thousands of are exported, console window can not save all output informations, hinder user tracking mould
Type operational process.Although CMD console is supported information being output to text file, since output information update is very fast
(the minimum output time of every information is about 0.1 second), in order to check current output, needs ceaselessly manual refreshing text text
Part, although information can be saved all, it can be difficult to trace model current output information in time, especially three windows not
In the case of disconnected switching.That is current technology problem is: the advantage of CMD console window is to show current information output, disadvantage
It is to be difficult to save all information;And the advantage of output file mode is to save all information, disadvantage is the current information that defies capture.
Two ways can not accomplish to balance, and be unable to satisfy user to the monitoring requirement of model running state.
Summary of the invention
In order to solve the above technical problems, the invention proposes a kind of holographic model running monitoring methods in real time, to reach
Facilitate user to be tracked model running process, solves the purpose that output information saves and shows balance.
In order to achieve the above objectives, technical scheme is as follows: a kind of holographic model running monitoring method in real time, institute
Stating method and step includes: the preset webpage under the specified directory of model engineering file, and the write-in control script in preset webpage;
Every output information of real-time interception CMD console;Every output information is encoded with html language, form format
Web page contents;The formatted output information of each is appended in preset web page files;In the specified display surface of main program
WebBrowser control, the specified web page display information of WebBrowser control control operation are loaded in plate.
Further, the specific method of every output information of the real-time interception CMD console is: using Process
Object reference CMD Console program, real-time interception output stream line by line capture output information.
Further, the specific method formatted output information of each being appended in preset web page files
It is: the output information after coding is appended to one by one in preset webpage with the IO method of flow control in programming language file.
Further, Script controlling skill is used when the web page display information that the WebBrowser control control operation is specified
Art controls the automatic refreshing and roll screen of webpage.
Further, R program and resource manager are also loaded in the specified display panel of the main program.
Further, the specific method that R program is loaded in the specified display panel of the main program is: main program reads R
R window is loaded into specified show in conjunction with non-managed function using Progress object reference R program by the installation path of program
Show in panel.
Further, the specific method that resource manager is loaded in the specified display panel of the main program is: utilizing
Resource manager is loaded into specified by the explorer process of Progress object reference Windows in conjunction with non-managed function
In display panel.
The present invention has the advantage that
(1) the present invention passes through all output informations of real-time interception CMD console, and output information is saved to webpage simultaneously
It shows, user is facilitated to be tracked model running process, while avoiding Windows Form control and receiving information for a long time
And seemingly-dead problem.
(2) the present invention loads multiple windows in the display panel of main program, avoids traditional continuous switching task window
The mode of mouth, facilitates user to check and manipulates the operation of model.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is holographic model running monitoring method flow chart in real time disclosed by the embodiments of the present invention;
Fig. 2 is the method and step schematic diagram that main program panel disclosed by the embodiments of the present invention loads each window.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
The present invention provides a kind of holographic model running monitoring methods in real time, its working principle is that passing through real-time interception
All output informations of CMD console, output information is saved to webpage and is shown, facilitates user to model running mistake to reach
Journey is tracked, and solves the purpose that output information saves and shows balance.
Below with reference to embodiment and specific embodiment, the present invention is described in further detail.
As depicted in figs. 1 and 2, a kind of holographic model running monitoring method in real time, the method step includes: in model
Preset webpage under the specified directory of project file, and the write-in control script in preset webpage;Real-time interception CMD console it is every
Output information;Every output information is encoded with html language, the web page contents of form format;By each wiht strip-lattice type
Output information after change is appended in preset web page files;WebBrowser control is loaded in the specified display panel of main program
Part, the specified web page display information of WebBrowser control control operation.
Wherein, the specific method of every output information of the real-time interception CMD console is: using Process object
CMD Console program is called, real-time interception output stream line by line captures output information.
Wherein, the specific method that the formatted output information of each is appended in preset web page files is:
The output information after coding is appended to one by one in preset webpage with the IO method of flow control in programming language file.
Wherein, the output information after coding is appended to one by one in preset webpage using the IO control method in C# file.
Wherein, the control of Script controlling technology is used when the web page display information that the WebBrowser control control operation is specified
The automatic refreshing of webpage processed and roll screen.
Wherein, R program and resource manager are also loaded in the specified display panel of the main program.
Wherein, the specific method that R program is loaded in the specified display panel of the main program is: main program reads R program
Installation path R window is loaded into specified display surface in conjunction with non-managed function using Progress object reference R program
In plate.
Wherein, the specific method that resource manager is loaded in the specified display panel of the main program is: utilizing
Resource manager is loaded into specified by the explorer process of Progress object reference Windows in conjunction with non-managed function
In display panel.
It is write in preset webpage in the preset webpage of specified directory of model engineering file to save and show information first
Control script, the automatic refreshing of script function control and auto Scroll are entered, have realized similar to CMD console window output information
Effect, demonstrate one's ability since webpage is powerful, the ways of presentation such as webpage refresh time, font, font size, foreground, background colour
It can dynamically adjust, meet the individual demand of user, the single output effect of console be avoided, using Process object
CMD Console program is called, output stream is intercepted, line by line captures output information.
Secondly, the preservation after information capture: although the control based on Windows Form and Windows WPF technology is (such as
RichTextBox control) information can be shown and temporarily store, and support information unloading at file, but due to model running
Time is long (a few hours or dozens of hour), and control has reception information for a long time and seemingly-dead, is directly opened up using control
The scheme shown and store information is abandoned.Due to webpage be different from control, have it is not seemingly-dead, can store, shows information, control
Convenient feature, so system uses cookie instead, shape after the CMD console output stream of interception is encoded with html language
At the web page contents of formatting, is written in preset webpage in real time with the file I/O control method of C#, has reached storage information
Purpose.
The real-time exhibition and auto Scroll of last information: system is used embeds WebBrowser control in main program,
Specified webpage is called with WebBrowser control, and the automatic refreshing and automatic rolling of webpage are completed using Script controlling technology
Screen, realizes such as the effect the moving model in CMD console window.So far, it not only realizes and protects all information
There are in webpage, and the mode similar to the real-time output information of CMD console window is realized, more perfectly solves preservation
With the equilibrium problem of displaying.
By call dynamic link library user32.dll in non-managed function SendMessage, SetParent,
Different types of window is loaded into preset Panel panel by the methods of ShowWindow, and loading method is as follows:
1) for model running window, using preset WebBrowser control, WebBrowser control in specified Panel
Load the mode of preset webpage;
2) for R window, using reading R program installation path, with the mode of Progress object reference R program, in conjunction with
R window is loaded into specified Panel by non-managed function;
3) for resource manager, with the explorer process of Progress object reference Windows, in conjunction with non-managed letter
Number, resource manager is loaded into specified Panel.By the combined application of a variety of loading techniques, by model running window, R
Window and window explorer window are loaded into the Panel of preset parallel arranged, are merged and are incorporated single interface body,
Realize open-and-shut " the more windows of monomer " display effect and necessary human-computer interaction.
Above-described is only a kind of preferred implementation of holographic model running monitoring method in real time disclosed in this invention
Mode, it is noted that for those of ordinary skill in the art, without departing from the concept of the premise of the invention, also
Several modifications and improvements can be made, these are all within the scope of protection of the present invention.
Claims (7)
1. a kind of holographic model running monitoring method in real time, which is characterized in that the method step includes: in model engineering text
Preset webpage under the specified directory of part, and the write-in control script in preset webpage;Every output of real-time interception CMD console
Information;Every output information is encoded with html language, the web page contents of form format;Each is formatted
Output information is appended in preset web page files;WebBrowser control is loaded in the specified display panel of main program,
The specified web page display information of WebBrowser control control operation.
2. holographic model running monitoring method in real time according to claim 1, which is characterized in that the real-time interception
The specific method of every output information of CMD console is: using Process object reference CMD Console program, real-time interception
Output stream line by line captures output information.
3. holographic model running monitoring method in real time according to claim 2, which is characterized in that described by each grid
The specific method that output information after formula is appended in preset web page files is: with the IO flow control in programming language file
Output information after coding is appended in preset webpage by method one by one.
4. holographic model running monitoring method in real time according to claim 3, which is characterized in that the WebBrowser
Using the automatic refreshing of Script controlling technical controlling webpage and roll screen when the web page display information that control control operation is specified.
5. holographic model running monitoring method in real time according to claim 1 or 4, which is characterized in that the main program
Specified display panel in be also loaded with R program and resource manager.
6. holographic model running monitoring method in real time according to claim 5, which is characterized in that the finger of the main program
The specific method for determining to load R program in display panel is: main program reads the installation path of R program, utilizes Progress object
R program is called, R window is loaded into specified display panel in conjunction with non-managed function.
7. holographic model running monitoring method in real time according to claim 6, which is characterized in that the finger of the main program
The specific method for determining to load resource manager in display panel is: utilizing the explorer of Progress object reference Windows
Resource manager is loaded into specified display panel by process in conjunction with non-managed function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810848356.9A CN109189633A (en) | 2018-07-27 | 2018-07-27 | Holographic model running monitoring method in real time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810848356.9A CN109189633A (en) | 2018-07-27 | 2018-07-27 | Holographic model running monitoring method in real time |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189633A true CN109189633A (en) | 2019-01-11 |
Family
ID=64937799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810848356.9A Pending CN109189633A (en) | 2018-07-27 | 2018-07-27 | Holographic model running monitoring method in real time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189633A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020196279A1 (en) * | 1995-11-13 | 2002-12-26 | Marc Bloomfield | Interacting with software applications displayed in a web page |
CA2501364C (en) * | 2003-10-24 | 2012-01-03 | Microsoft Corporation | Mechanism for providing extended functionality to command line instructions |
CN106708711A (en) * | 2015-11-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Log information output control method and device |
CN106993046A (en) * | 2017-04-13 | 2017-07-28 | 儒安科技有限公司 | The method and apparatus for realizing remote operating system order line console in page end |
CN107092483A (en) * | 2017-03-24 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The method and system of data type in a kind of automatic parsing daily record storehouse |
CN107885634A (en) * | 2016-09-29 | 2018-04-06 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of abnormal information in monitoring |
-
2018
- 2018-07-27 CN CN201810848356.9A patent/CN109189633A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020196279A1 (en) * | 1995-11-13 | 2002-12-26 | Marc Bloomfield | Interacting with software applications displayed in a web page |
CA2501364C (en) * | 2003-10-24 | 2012-01-03 | Microsoft Corporation | Mechanism for providing extended functionality to command line instructions |
CN106708711A (en) * | 2015-11-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Log information output control method and device |
CN107885634A (en) * | 2016-09-29 | 2018-04-06 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of abnormal information in monitoring |
CN107092483A (en) * | 2017-03-24 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The method and system of data type in a kind of automatic parsing daily record storehouse |
CN106993046A (en) * | 2017-04-13 | 2017-07-28 | 儒安科技有限公司 | The method and apparatus for realizing remote operating system order line console in page end |
Non-Patent Citations (3)
Title |
---|
NOTHING_KATU: "《怎么可以实现前台页面实时打印控制台的消息》", 《HTTPS://ASK.CSDN.NET/QUESTIONS/644538》 * |
叉叉哥: "《Java用WebSocket+tail命令实现Web实时日志》", 《HTTPS://BLOG.CSDN.NET/XIAO__GUI/ARTICLE/DETAILS/50041673》 * |
看瓜人: "《在Web 页中嵌入Windows Media Player》", 《HTTPS://WWW.CNBLOGS.COM/8942/ARCHIVE/2006/05/14/399985.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108664245B (en) | Method and device for generating web page interface based on JSON self-description structure | |
CN104699602B (en) | Method and computer for detecting influence | |
CN111651079B (en) | Handwriting display method, device, equipment and computer storage medium | |
CN103810089A (en) | Application of automatic test based on posture | |
WO2016095728A1 (en) | Multi-window display method and device | |
US20240037060A1 (en) | Computing device, virtualization acceleration device, remote control method and storage medium | |
CN105653438B (en) | The striding course automated testing method and device of Android device | |
CN112114916A (en) | Method and device for compatibly running Android application on Linux operating system | |
CN105138316A (en) | Automatic clicking method and device based on super sketchpad | |
CN111143200A (en) | Method and device for recording and playing back touch event, storage medium and equipment | |
CN106354355A (en) | User interface layout method, device and system | |
CN108491195A (en) | Equipment controls page generation method and system | |
US20130232494A1 (en) | Automating sequential cross-application data transfer operations | |
CN107066377A (en) | Page elements acquisition methods and terminal device based on android system | |
CN102929688A (en) | Method for realizing simulator for simulating touch screen and simulator | |
US10386985B2 (en) | User interface pattern mapping | |
CN104239121A (en) | Display card redirection system and method for realizing graphic display by using system | |
CN112306297A (en) | Method for realizing low delay of handwriting input of conference whiteboard | |
CN109491974A (en) | Asynchronous blog management method and system and computer readable storage medium | |
CN109189633A (en) | Holographic model running monitoring method in real time | |
CN103902137A (en) | Keyboard adjusting method and device of touch device | |
CN108399058A (en) | A kind of signal display control method and device | |
Billah et al. | Sinter: Low-bandwidth remote access for the visually-impaired | |
CN102736901A (en) | Implementation method for WinCE platform self-defining desktop | |
US20140250251A1 (en) | Automatically and transparently preserving testing state across sessions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |