CN101360126B - B/S structure remote computing platform based on MATLAB and COM technology - Google Patents
B/S structure remote computing platform based on MATLAB and COM technology Download PDFInfo
- Publication number
- CN101360126B CN101360126B CN2008101675494A CN200810167549A CN101360126B CN 101360126 B CN101360126 B CN 101360126B CN 2008101675494 A CN2008101675494 A CN 2008101675494A CN 200810167549 A CN200810167549 A CN 200810167549A CN 101360126 B CN101360126 B CN 101360126B
- Authority
- CN
- China
- Prior art keywords
- matlab
- file
- module
- order
- user
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a B/S structure remote computing platform based on MATLAB, comprising a WEB client module, a WEB server, a command processing module, a file uploading module, an MATLAB control module and an MATLAB; modules are called according to different requests after uploading a .m file or a .mdl model file to the WEB server; the processed MATLAB command or the file uploading module acquires the uploaded file which is then delivered to the MATLAB control module; the MATLAB control module produces a COM object of MATLAB through the COM technique and obtains an execution result; and the execution result is returned to the client through the WEB server. The invention provides a framework for the WEB application development based on MATLAB, and has no special limitation to varieties of WEB techniques, programming language and WEB servers, and the framework can be used to develop various remote applications.
Description
Technical field
The present invention relates to B/S structure remote computing platform, belong to applications of computer network field based on MATLAB and COM technology.
Background technology
MATLAB is a general-purpose computations software that scientific and engineering calculates that is widely used in, and has powerful numerical computations function, and comprises the tool box that is used for different scientific domains.Yet its global function software price is but up to 1,000,000 yuans, and for small-sized R﹠D institution or individual, this is unacceptable.
For making full use of software, one is MATLAB Web the assembly of Server in a lot of R﹠D institutions, the use MATLAB of the colleges and universities earlier version, and exploitation is based on the remote computing platform of MATLAB.The current B/S structure applications based on MATLAB all is based on this assembly, because the restriction of this assembly function, can only develop the application that some are simple, pattern is fixing, use the telecomputing machine platform of setting forth to make the user comprise nearly all Core Features such as MATLAB control desk, MATLAB compiler, Simulink herein by all functions module of Web mode random access MATLAB.Can also carry out the remote live control operation by Simulink and RealtimeWorkshop, carry out tele-experimentation.
Summary of the invention
The invention provides a kind of B/S structure remote computing platform, make that the user can break through and the restriction in space, use MATLAB by network whenever and wherever possible,, also make resource be fully used for the user facilitates based on MATLAB and COM technology.Use Simulink and Realtime Workshop tool box can also carry out matter emulation,, can carry out tele-experimentation, carry out tele-experimentation chamber construction based on Internet by the WEB operation.
B/S structure remote computing platform based on MATLAB mainly is divided into following components: transmission module, MATLAB control module, MATLAB on WEB client modules, WEB server, command processing module, the file.
(1) WEB client modules: the interactive interface that a close friend is provided to the user by client scripts such as HTML and JavaScript;
(2) WEB server: be responsible for handling the HTTP request of client;
(3) transmission module on the file: responsible process user is uploaded * .m program file and * .mdl model file;
(4) command processing module: consider for safety factor, the order of user's input is filtered, formatd;
(5) MATLAB control module: use the COM technology, call MATLAB, carry out user's request, and fetch execution result;
(6) MATLAB: carry out MATLAB order or program, finish calculation task.
It is as follows that the user carries out workflow:
(1) user will upload onto the server in order to .m file or the .mdl model file of carrying out by WEB interface editing MATLAB order or selection that client modules provides, and submits request to the WEB server.
(2) the WEB server is received after user's the request, the module different according to different request calls.
If the user need carry out the MATLAB order, the WEB server directly sends order to command processing module, and command string is handled, and mainly comprises the processing of two aspects: 1. remove the order of the system that might damage, mainly be "! " order of character beginning because in MATLAB can by "! " character heel system command comes the executive system order, particularly! Format,! Del,! Copy,! Orders such as move, if these orders are not limited, the MATLAB program of malice or wrong MATLAB program are damaged the file system of server probably, even damage significant data; 2. increase the carriage return character at the order end, because the MATLAB order just brings into operation when end up with carriage return, may not have the carriage return character from the command string end of client upload, this module is these command strings increase carriage return characters.
If the user will move .m program file or the emulation of .mdl model file, then call on the file transmission module and upload user's file; .m after program file was uploaded, for security consideration, the command string of uploading with the user was the same, all will can be sent to the MATLAB control module through command processing module, was carried out by MATLAB then.
(3) file that the user that transmission module obtains on MATLAB order after command processing module is handled or the file uploads is submitted to the MATLAB control module;
(4) the MATLAB control module produces the com object of a MATLAB by the COM technology, carries out MATLAB order or .m or .mdl file by this object, and obtains execution result;
If there is hardware device to be connected to the MATLAB server, the user just can control, operate equipment by program or Simulink model, this is Long-distance Control just, use promptly that this programme not only can MATLAB share, telecomputing, can also realize tele-experimentation platform based on MATLAB.
(5) execution result is handed to the WEB server, returns to client by the WEB server as http response, and client just can be seen execution result with forms such as chart or curves, perhaps downloads initial data.So far the request that once long-range science is calculated is just finished.
Beneficial effect:
The present invention provides a framework for the WEB application and development based on MATLAB, and the kind of the WEB technology, programming language and the WEB server that use is not particularly limited, use this framework can utilize the various remote application of functional development of MATLAB, for example, by developing different MATLAB control module functions, can develop various emulation experiments based on MATLAB, use the Real-Time Workshop tool box of MATLAB, can also develop various tele-experimentations, or the like.
Description of drawings
Fig. 1 is the system architecture diagram that the present invention relates to based on the B/S structure remote computing platform of MATLAB and COM technology;
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
The present invention is a kind of scheme, WEB application system and programming language there is not specific requirement, as long as can realize user interactions, and support com component to call to get final product, be the WEB server below with IIS, realizing technology with ASP.NET as WEB, is that programming language is an example with C#, and embodiments of the present invention are described.
(1) installs and disposes the IIS server;
(2) MATLAB software is installed;
(3) difference design user interface, promptly the WEB client modules is used to write online order or upload file;
(4) user will upload onto the server in order to the .m file of carrying out by WEB interface editing MATLAB order or selection that client modules provides, and submits request to the WEB server.
(5) the WEB server is received after user's the request, the user need carry out the MATLAB order, and the WEB server directly sends order to command processing module, and command string is handled, mainly comprise the processing of two aspects: 1. remove the order of the system that might damage, mainly be "! " order of character beginning because in MATLAB can by "! " character heel system command comes the executive system order, particularly! Format,! Del,! Copy,! Orders such as move; 2. increase the carriage return character at the order end, because the MATLAB order just brings into operation when end up with carriage return, may not have the carriage return character from the command string end of client upload, this module is these command strings increase carriage return characters.
(6) file that the user that transmission module obtains on MATLAB order after command processing module is handled or the file uploads is submitted to the MATLAB control module;
(7) the MATLAB control module produces the com object of a MATLAB by the COM technology, carries out the MATLAB order by this object, and obtains execution result;
(8) execution result is handed to the WEB server, returns to client by the WEB server as http response, and client just can be seen execution result with forms such as chart or curves, perhaps downloads initial data.So far the request that once long-range science is calculated is just finished.
Claims (1)
1. based on the B/S structure remote computing platform of MATLAB, comprise transmission module, MATLAB control module, MATLAB module on WEB client modules, WEB server, command processing module, the file; It is characterized in that: the WEB client modules: provide an interactive interface to the user by HTML and JavaScript client script;
WEB server: be responsible for handling the HTTP request of client;
Transmission module on the file: responsible process user is uploaded * .m program file and * .mdl model file;
Command processing module: consider for safety factor, the order of user's input is filtered, formatd; MATLAB control module: use the COM technology, call the MATLAB module, carry out user's request, and fetch execution result;
The MATLAB module: fill order or program, finish calculation task;
Its feature is that also job step is as follows:
(1) user will upload onto the server in order to .m file or the .mdl model file of carrying out by WEB interface editing MATLAB order or selection that client modules provides, and submits request to the WEB server;
(2) the WEB server is received after user's the request, the module different according to different request calls; If the user need carry out MATLAB order, the WEB server directly is sent to command processing module with order, and command string is handled, and mainly comprises the processing of two aspects: 1. remove with "! " order of character beginning because in MATLAB can by "! " character heel system command comes the executive system order, if these orders are not limited, the MATLAB program of malice or wrong MATLAB program are damaged the file system of server probably, even damage significant data; 2. increase the carriage return character at the order end, because the MATLAB order just brings into operation when end up with carriage return, may not have the carriage return character from the command string end of client upload, this module is these command strings increase carriage return characters;
If the user will move .m program file or the emulation of .mdl model file, then call on the file transmission module and upload user's file; .m after program file was uploaded, for security consideration, the command string of uploading with the user was the same, all will can be sent to the MATLAB control module through command processing module, was carried out by the MATLAB module then;
(3) file that the user that transmission module obtains on MATLAB order after command processing module is handled or the file uploads is submitted to the MATLAB control module;
(4) the MATLAB control module produces the com object of a MATLAB by the COM technology, by this object fill order or .m .mdl file, and obtains execution result;
(5) execution result is handed to the WEB server, returns to client by the WEB server as http response, and client is just seen execution result with chart or curve form, perhaps downloads initial data; So far the request that once long-range science is calculated is finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101675494A CN101360126B (en) | 2008-10-10 | 2008-10-10 | B/S structure remote computing platform based on MATLAB and COM technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101675494A CN101360126B (en) | 2008-10-10 | 2008-10-10 | B/S structure remote computing platform based on MATLAB and COM technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101360126A CN101360126A (en) | 2009-02-04 |
CN101360126B true CN101360126B (en) | 2011-07-27 |
Family
ID=40332462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101675494A Expired - Fee Related CN101360126B (en) | 2008-10-10 | 2008-10-10 | B/S structure remote computing platform based on MATLAB and COM technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101360126B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604239B (en) * | 2009-07-16 | 2011-12-21 | 浪潮电子信息产业股份有限公司 | Storage management software architectural method based on request response |
CN101840336A (en) * | 2010-04-30 | 2010-09-22 | 大连海事大学 | Method for processing external data through combined programming |
CN102289572A (en) * | 2011-07-26 | 2011-12-21 | 北京市计算中心 | Method for reducing computing cost in engineering computing process |
CN103365715A (en) * | 2013-06-17 | 2013-10-23 | 广东电网公司电力调度控制中心 | Method and system for quickly calling BPA transient calculation program |
CN107844675B (en) * | 2017-12-18 | 2021-03-02 | 国家电网公司 | System based on gas-steam combined cycle and rapid modeling method thereof |
CN109991876A (en) * | 2019-03-29 | 2019-07-09 | 浙江大学 | A kind of emulation platform of long-range control multi-model scheduling |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149867A (en) * | 2007-10-16 | 2008-03-26 | 浙江大学 | Tea garden microdomain monitoring method and system based on radio sensor network |
-
2008
- 2008-10-10 CN CN2008101675494A patent/CN101360126B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149867A (en) * | 2007-10-16 | 2008-03-26 | 浙江大学 | Tea garden microdomain monitoring method and system based on radio sensor network |
Non-Patent Citations (2)
Title |
---|
张文东, 易轶虎.基于ASP与Matlab COM实现Web数据可视化.《青岛科技大学学报》.2006,第27卷(第3期),第251-253页. * |
林峰, 韩峻, 刘乡荫.Web环境下的MatLab远程仿真.《河海大学常州分校学报》.2007,第21卷(第2期),第42-45页. * |
Also Published As
Publication number | Publication date |
---|---|
CN101360126A (en) | 2009-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101360126B (en) | B/S structure remote computing platform based on MATLAB and COM technology | |
EP3143498B1 (en) | Code service for language-independent dispatch | |
US20160041819A1 (en) | Updating service applications | |
CN103092581A (en) | Method and device for setting up Web front-end local development environment | |
CN102929604A (en) | Screen capturing apparatus and method | |
CN104281455A (en) | Interface calling method and device and terminal | |
US9678814B2 (en) | Implementing a java method | |
CN104063407A (en) | Browser architecture based on cloud computing and analysis method | |
CN104580501A (en) | Http interface dynamic publishing method and system based on reflex mechanism | |
CN104156213A (en) | Android application running method and device | |
CN104572084A (en) | Method and device for user interface generating and data issuing in card business | |
CN107273140A (en) | Scaffold management method, device and electronic equipment | |
CN109936605A (en) | A kind of method and apparatus of loading interface data | |
CN105468398A (en) | Module uploading method, request method and loading method for cross-terminal architecture | |
CN112346976A (en) | Interface document generation method, device and system based on webpage and computer equipment | |
CN102752332B (en) | A kind of service activation method and device | |
CN111857695A (en) | Software project processing method, device, equipment and storage medium | |
CN102055623B (en) | Method and system for automatically testing embedded type browser | |
Vepsäläinen et al. | Resumability-a New Primitive for Developing Web Applications | |
Silva et al. | nuboinc: Boinc extensions for community cycle sharing | |
CN114489850A (en) | Calling method and device of design software, computer equipment and storage medium | |
CN112486460A (en) | Method, system, device and medium for automatically importing interface document | |
CN114371982A (en) | Simulation test method, device, equipment and readable storage medium | |
CN112491940A (en) | Request forwarding method and device of proxy server, storage medium and electronic equipment | |
CN112734453A (en) | Electronic ticket collecting method, electronic ticket issuing method, electronic ticket collecting device, electronic ticket issuing device, electronic ticket equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110727 Termination date: 20141010 |
|
EXPY | Termination of patent right or utility model |