CN104850403A - Implementation method of remote control system of oscilloscope based on control component technology - Google Patents

Implementation method of remote control system of oscilloscope based on control component technology Download PDF

Info

Publication number
CN104850403A
CN104850403A CN201510256176.8A CN201510256176A CN104850403A CN 104850403 A CN104850403 A CN 104850403A CN 201510256176 A CN201510256176 A CN 201510256176A CN 104850403 A CN104850403 A CN 104850403A
Authority
CN
China
Prior art keywords
browser
activex
oscillograph
control
interface
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
CN201510256176.8A
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.)
Chongqing University
Laser Fusion Research Center China Academy of Engineering Physics
Original Assignee
Chongqing University
Laser Fusion Research Center China Academy of Engineering Physics
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 Chongqing University, Laser Fusion Research Center China Academy of Engineering Physics filed Critical Chongqing University
Priority to CN201510256176.8A priority Critical patent/CN104850403A/en
Publication of CN104850403A publication Critical patent/CN104850403A/en
Pending legal-status Critical Current

Links

Abstract

The present invention, relating to the field of instrument and device control technologies, discloses an implementation method of a remote control system of an oscilloscope based on the component controlling technology. The implementation method comprises: 1) implementing a system interface based on an HTML browser; 2) implementing logical functions of remote control of an oscilloscope based on an activeX control component; and 3) implementing a method using which a system supports various browsers. According to the implementation method provided by the present invention, the activeX control component is used, so that complex logic operation functions performed on the oscilloscope by the system are configured in the activeX control componen; when a computer locally performs the operation of controlling and reading the oscilloscope, and the oscilloscope does not need to be controlled through a server, so that the burden of the server is reduced, and the overall operation speed of the system can be increased. In addition, in the process of embedding the activeX control component into the browser, a plug-in technology is used, so that the activeX also has good compatibility with a browser without an IE kernel, the application range of the system is enlarged, and the system can independently and smoothly operate in any browser.

Description

A kind of implementation method of the oscillograph tele-control system based on ActiveX Techniques
Technical field
The present invention relates to instrument and equipment Long-distance Control, be specifically related to a kind of oscillograph tele-control system implementation method based on ActiveX Techniques.
Background technology
Along with the complexity day by day of environment residing for commercial production and scientific experiment, in a lot of situation, staff cannot utilize the mechanical parts such as oscillographic button, knob directly to operate on it in industry spot, just need the CPU (central processing unit) signal of industry spot being introduced pulpit time this, thus utilize PC to carry out Long-distance Control to oscillograph.
B/S structure (Browser/Server structure) i.e. browser and server structure.It is the rise along with Internet technology, to a kind of change of C/S structure or the structure of improvement.Under this configuration, user job interface is realized by browser, and few partial transaction logic realizes at front end (Browser), but major affairs logic realizes at server end (Server), forms so-called three-decker.So just enormously simplify client computer load, alleviate cost and the workload of system maintenance and upgrading, reduce the overall cost (TCO) of user.
Event is can the operation of controlled member identification, as pressed confirming button, selects certain radio button or check box.Each control has the event that oneself can identify, as forms loading, click, the event such as double-click, the text of edit box (text box) changes thing, etc.The object of trigger event is called Event senders; The object of reception event is called event listener.Use case mechanism can realize: when certain state of class object changes, and system will call the method for relevant this event of process in class by certain approach or the object of trigger control event will call all registered button.onreleases of this control etc.
At present, in the prior art, still there is not oscillograph long-range control method under the B/S pattern utilizing ActiveX Techniques.
Summary of the invention
Object of the present invention is just to provide a kind of oscillograph tele-control system implementation method based on ActiveX Techniques, this method changes traditional C/S model oscillograph tele-control system into B/S schema control system, simplify client computer load, alleviate cost and the workload of system maintenance and upgrading.And, system described in the present invention and general B/S system different, by the use of activeX control, complicated logical operation is not performed at server end, server end only needs gathering of responsible data file, and this just significantly reduces the load of server end.In addition, activeX control is being embedded in the process of browser, take into account non-ie kernel browser cannot directly register activeX and call, therefore NPAPI plug-in unit is created, by it as the bridge between non-ie kernel browser and activeX control, activeX control is made to go for multiple different browser.
The object of the invention is by such technical scheme realize, concrete steps are as follows:
1) based on the realization at the browser interface of Html;
2) based on activeX ActiveX Techniques, oscillograph is carried out to the realization of remote control logic function;
3) system supports the realization of the method for multiple browser.
Further, step 1) described in based on the concrete grammar that realizes at the browser interface of Html be: system interface is by Html code building, javascript code is embedded in html code, be used for catching the trigger event of user on interface, the Message Transmission obtained through trigger event to activeX in order to perform corresponding logic function.;
Further, step 2) described in based on realization oscillograph being carried out to remote control logic function of activeX, its step realized is:
MFC 2-1) is utilized to set up activeX control frameworks, make it have complete com component basic function, this framework is the framework based on dialog box, and the functions such as the oscillographic all optimum configurations of Long-distance Control, display graphics, transmission button all realize changing in dialog box;
2-2) in step 2-1) build on the basis of activeX control frameworks, utilize the connection that (SCPI) instruction of standard commands for programmable instruments collection and Virture Instrumentation Software Architecture (visa) storehouse realize between activeX and each oscillograph;
2-3) in step 2-2) on the basis of successful connection, the function interface provided by visa storehouse is sent SCPI and arranges instruction and arrange oscillograph;
2-4) after oscillograph triggers, utilize and send to oscillograph by interface function lift-launch query statement, at this moment can return a series of byte data, by written document programming, byte data be write the file of corresponding format, and be kept in pre-set file;
2-5) will step 2-4 being utilized) data file that gets is sent to server end, and data file can be shared by more user.
Further, step 3) described in system support that the implementation method of multiple browser is for setting up a browser adaptive allocation control module, this module to realize concrete steps as follows:
3-1) identify the type of browser, judge that whether this browser is the browser of IE kernel;
3-2) utilize step 3-1) recognition result, if the browser of IE kernel, then directly to register in activeX command prompt in a computer, a unique ID code can be generated after having registered in systems in which, in ie kernel browser, just directly can call the association attributes of control and method by this ID code.
3-3) utilize step 3-1) recognition result, if not the browser of IE kernel, then adopt the mode of loading of plug-in to call control.Its concrete steps are:
3-3-1) set up the plug-in unit of NPAPI form, this plug-in type is supplemented browser function by local code, it be independent of browser outside a dynamic link library;
3-3-2) utilize step 3-3-1) in the NPAPI plug-in unit set up the activeX control generated is loaded and is created, the corresponding interface of activeX is mapped on NPAPI plug-in unit;
3-3-3) non-IE kernel browser loads NPAPI plug-in unit, by the interface calling indirect call activeX to the corresponding interface in NPAPI plug-in unit, thus realizes browser calling control.
Owing to have employed technique scheme, beneficial effect of the present invention is:
1, traditional oscillograph tele-control system is modified to B/S pattern by C/S model by the present invention, simplifies client computer load, alleviates cost and the workload of system maintenance and upgrading;
2, by the use of activeX control, complicated logical operation is not performed at server end, and server end only needs gathering of responsible data file, and this just significantly reduces the load of server end;
3, activeX control is being embedded in the process of browser, take into account non-ie kernel browser cannot directly register activeX and call, therefore NPAPI plug-in unit is created, by it as the bridge between non-ie kernel browser and activeX control, make activeX control go for multiple different browser, make the scope of application of system wider.
Accompanying drawing explanation
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, wherein:
Fig. 1 is general frame schematic diagram of the present invention;
Fig. 2 is browser adaptive allocation control module implementation procedure schematic diagram.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described in detail.
Object of the present invention is exactly propose a kind of oscillograph tele-control system implementation method based on ActiveX Techniques, by this method, change traditional C/S model oscillograph tele-control system into B/S schema control system, activeX control is wherein used for performing complicated logical operation, and can adapt to multiple browser.
Accompanying drawing 1 is general frame schematic diagram of the present invention, and as shown in the figure, system is divided into server end, activeX control and browser end.Browser is by calling method in activeX control and attribute operates oscillograph, and server end is mainly used to perform the request of client and to carry out to the data file that activeX obtains arrangements shared for all clients.
Can be drawn by the general frame schematic diagram of foregoing invention, based on the oscillograph tele-control system implementation method of ActiveX Techniques, it is characterized in that, described method comprises following step:
1) based on the realization at the browser interface of Html;
2) based on activeX ActiveX Techniques, oscillograph is carried out to the realization of remote control logic function;
3) system supports the realization of the method for multiple browser.
By step 1) realize in the process of clothes based on the browser interface of Html, step 1) concrete methods of realizing as follows:
1-1) utilize Html to build browser basic interface, the function that interface represents comprises optimum configurations and digital independent two large divisions.Wherein optimum configurations part arranged by trigger parameter, time base parameter is arranged, sampling parameter arranges three parts and form; Data read portion mainly comprises that Wave data is saved on oscillograph, Wave data is saved on computing machine, the visual display of screenshot capture;
1-2) utilizing 1-1) put up basic browser interface after, javascript code is embedded in html code, be used for catching the trigger event of user on interface, the Message Transmission obtained through trigger event to activeX in order to perform corresponding logic function.
By step 2) realize oscillograph is carried out in the process of remote control logic function based on activeX, concrete methods of realizing is as follows:
MFC 2-1) is utilized to set up activeX control frameworks, make it have complete com component basic function, this framework is the framework based on dialog box, and the functions such as the oscillographic all optimum configurations of Long-distance Control, display graphics, transmission button all realize changing in dialog box;
2-2) in step 2-1) build on the basis of activeX control frameworks, utilize the connection that (SCPI) instruction of standard commands for programmable instruments collection and Virture Instrumentation Software Architecture (visa) storehouse realize between activeX and each oscillograph, mainly this header file of visa.h and this library file of visa.lib program to be imported here, so just computing machine and oscillograph can be connected by interface function smoothly;
2-3) in step 2-2) on the basis of successful connection, by consulting oscillographic relevant SCPI instruction, carry out optimum configurations and digital independent to oscillograph, concrete grammar is as follows:
2-3-1) when carrying out optimum configurations to oscillograph, the interface function mainly used is viWrite (), and SCPI instruction is sent to oscillograph by it, makes oscillograph complete corresponding parameter setting function;
2-3-2) when carrying out digital independent to oscillograph, the interface function formula viWrite () mainly used and viRead (), to read Wave data, first the instruction of waveform data is sent request by viWrite (), at this moment Wave data has been stored in oscillographic buffer memory with binary form, then viRead () function is utilized to be sent in activeX control by the Wave data of binary mode, in activeX control, through data conversion, binary data is changed into the actual time, voltage data, and write txt file, so just obtain the Wave data file facilitating user to identify, this mode is taked in the preservation of screenshot capture file equally,
2-4) will step 2-3 being utilized) data file that gets is sent to server end, and data file can be shared by more user.
Step 3) in system support the method for many browsers, realized by browser adaptive allocation control module, with reference to accompanying drawing 2, the concrete steps that described module realizes are as follows:
3-1) identify the type of browser, judge that whether this browser is the browser of IE kernel;
3-2) according to step 3-1) judged result, if browser is the browser of IE kernel, the concrete grammar that browser loads control is as follows:
3-2-1) register in generated activeX control command prompt in a computer, a unique ID code after having registered, can be generated in systems in which;
3-2-2) at completing steps 3-2-1) basis on, in the object label of the IE kernel browser Html page, arrange the activeX control that classid attribute just can load corresponding id, the property value of classid is exactly step 3-1) unique ID code of the activeX of middle generation.
3-3) according to 3-1) judged result, if browser is not the browser of IE kernel, the concrete grammar that browser loads control is as follows:
3-3-1) set up the plug-in unit of NPAPI form, this plug-in type is supplemented browser function by local code, it be independent of browser outside a dynamic link library;
3-3-2) utilize step 3-3-1) in the NPAPI plug-in unit set up the activeX control generated is loaded and is created, the corresponding interface of activeX is mapped on NPAPI plug-in unit;
3-3-3) non-IE kernel browser loads NPAPI plug-in unit, and in loading procedure, browser is undertaken by embed label the identification of plug-in unit, and the MIME value corresponding by the type setup of attribute plug-in unit of embed loads corresponding plug-in unit.There is provided an ActiveX control container to create and initialization ActiveX control after the viewed device of NPAPI plug-in unit loads, provide container and control to carry out alternately, completing establishment and the display of ActiveX control.When browser calls plug-in method by JavaScript, it can be transformed into calling method on ActiveX interface by calling accordingly.Being equivalent to plug-in unit is the bridge connecting browser and ActiveX control, so just can the non-ie kernel browser of simple realization to the support of ActiveX control.
In sum, the present invention improves the one of traditional oscillograph remote operating system, by method provided by the invention, change traditional C/S model oscillograph tele-control system into B/S schema control system, and be used for performing complicated logical operation with activeX control, reduce the load of server, and the multiple browser comprising IE kernel and non-IE kernel can be applicable to.
What finally illustrate is, above preferred embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although by above preferred embodiment to invention has been detailed description, but those skilled in the art are to be understood that, various change can be made to it in the form and details, and not depart from claims of the present invention limited range.

Claims (4)

1., based on the oscillograph tele-control system implementation method of ActiveX Techniques, it is characterized in that, concrete steps are as follows:
1) based on the realization at the browser interface of Html;
2) based on activeX ActiveX Techniques, oscillograph is carried out to the realization of remote control logic function;
3) system supports the realization of the method for multiple browser.
2. as claimed in claim 1 based on the oscillograph tele-control system implementation method of ActiveX Techniques, it is characterized in that, step 1) described in based on the concrete grammar of the realization at the browser interface of Html be: system interface is by Html code building, javascript code is embedded in html code, be used for catching the trigger event of user on interface, the Message Transmission obtained through trigger event to control in order to perform corresponding logic function.
3., as claimed in claim 2 based on the oscillograph tele-control system implementation method of ActiveX Techniques, it is characterized in that, step 2) described in based on activeX ActiveX Techniques, oscillograph to be carried out to the realization of remote control logic function, its concrete steps are as follows:
MFC 2-1) is utilized to set up activeX control frameworks, make it have complete com component basic function, this framework is the framework based on dialog box, and the functions such as the oscillographic all optimum configurations of Long-distance Control, display graphics, transmission button all realize changing in dialog box;
2-2) in step 2-1) build on the basis of framework, utilize the connection that (SCPI) instruction of standard commands for programmable instruments collection and Virture Instrumentation Software Architecture (visa) storehouse realize between activeX and each oscillograph;
2-3) in step 2-2) on the basis of successful connection, the function interface provided by visa storehouse is sent SCPI and arranges instruction and arrange oscillograph;
2-4) after oscillograph triggers, utilize and send to oscillograph by interface function lift-launch query statement, at this moment can return a series of byte data, by written document programming, byte data be write the file of corresponding format, and be kept in pre-set file;
2-5) will step 2-4 being utilized) data file that gets is sent to server end, and data file can be shared by more user.
4. as claimed in claim 3 based on the oscillograph tele-control system implementation method of ActiveX Techniques, it is characterized in that, step 3) described in system support multiple browser, its implementation is for setting up a browser adaptive allocation control module, and the concrete steps of the realization of this module are as follows:
4-1) identify the type of browser, judge that whether this browser is the browser of IE kernel;
4-2) according to step 4-1) recognition result, if the browser of IE kernel, then directly to register in activeX command prompt in a computer, a unique ID code can be generated after having registered in systems in which, in ie kernel browser, just directly can call the association attributes of control and method by this ID code.
4-3) according to step 4-1) recognition result, if not the browser of IE kernel, then adopt the mode of loading of plug-in to call control.Its concrete steps are:
4-3-1) set up the plug-in unit of NPAPI form, this plug-in type is supplemented browser function by local code, it be independent of browser outside a dynamic link library;
4-3-2) utilize step 4-3-1) in the NPAPI plug-in unit set up the activeX control generated is loaded and is created, the corresponding interface of activeX is mapped on NPAPI plug-in unit;
4-3-3) non-IE kernel browser loads NPAPI plug-in unit, by the interface calling indirect call activeX to the corresponding interface in NPAPI plug-in unit, thus realizes browser calling control.
CN201510256176.8A 2015-05-19 2015-05-19 Implementation method of remote control system of oscilloscope based on control component technology Pending CN104850403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510256176.8A CN104850403A (en) 2015-05-19 2015-05-19 Implementation method of remote control system of oscilloscope based on control component technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510256176.8A CN104850403A (en) 2015-05-19 2015-05-19 Implementation method of remote control system of oscilloscope based on control component technology

Publications (1)

Publication Number Publication Date
CN104850403A true CN104850403A (en) 2015-08-19

Family

ID=53850066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510256176.8A Pending CN104850403A (en) 2015-05-19 2015-05-19 Implementation method of remote control system of oscilloscope based on control component technology

Country Status (1)

Country Link
CN (1) CN104850403A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648628A (en) * 2016-11-30 2017-05-10 武汉斗鱼网络科技有限公司 Method and device for migrating live-streaming application software to IE browser
CN106648627A (en) * 2016-11-30 2017-05-10 武汉斗鱼网络科技有限公司 Method and device for migrating live-streaming application software to mozilla firefox browser
CN107315360A (en) * 2017-06-15 2017-11-03 南方电网科学研究院有限责任公司 The long-range control method and system of measuring instrument
CN108267629A (en) * 2018-01-26 2018-07-10 上海剑桥科技股份有限公司 Oscillograph control method, equipment and system
CN114244707A (en) * 2021-12-17 2022-03-25 中国人民解放军国防科技大学 Remote control and loading upgrading method for signal receiving and transmitting and channel simulation terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949412A (en) * 1996-01-22 1999-09-07 Extended Systems, Inc. Computer remote control system
CN103956096A (en) * 2014-03-31 2014-07-30 北京联合大学 Sensing detection experimental method based on networked virtual instruments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949412A (en) * 1996-01-22 1999-09-07 Extended Systems, Inc. Computer remote control system
CN103956096A (en) * 2014-03-31 2014-07-30 北京联合大学 Sensing detection experimental method based on networked virtual instruments

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DOUBLELI: "《博客:http://www.cnblogs.com/lidabo/p/3580643.html》", 4 March 2014 *
余成波等: "《虚拟仪器技术与设计》", 31 July 2006, 重庆大学出版社 *
陆立巧: "基于组件技术的虚拟仪器开发方法的研究", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *
霍志刚: "基于Silverlight的LXI示波器B/S模式软件设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648628A (en) * 2016-11-30 2017-05-10 武汉斗鱼网络科技有限公司 Method and device for migrating live-streaming application software to IE browser
CN106648627A (en) * 2016-11-30 2017-05-10 武汉斗鱼网络科技有限公司 Method and device for migrating live-streaming application software to mozilla firefox browser
CN106648628B (en) * 2016-11-30 2020-08-04 武汉斗鱼网络科技有限公司 Method and device for transplanting live broadcast application software to IE browser
CN107315360A (en) * 2017-06-15 2017-11-03 南方电网科学研究院有限责任公司 The long-range control method and system of measuring instrument
CN107315360B (en) * 2017-06-15 2019-06-28 南方电网科学研究院有限责任公司 The long-range control method and system of measuring instrument
CN108267629A (en) * 2018-01-26 2018-07-10 上海剑桥科技股份有限公司 Oscillograph control method, equipment and system
CN114244707A (en) * 2021-12-17 2022-03-25 中国人民解放军国防科技大学 Remote control and loading upgrading method for signal receiving and transmitting and channel simulation terminal
CN114244707B (en) * 2021-12-17 2023-11-28 中国人民解放军国防科技大学 Remote control and loading upgrading method for signal receiving and transmitting and channel simulation terminal

Similar Documents

Publication Publication Date Title
EP3011442B1 (en) Method and apparatus for customized software development kit (sdk) generation
US11445008B2 (en) Data processing methods, electronic devices, and storage media
CN104850403A (en) Implementation method of remote control system of oscilloscope based on control component technology
CN111625738B (en) APP target page calling method, device, equipment and storage medium
CN105872083A (en) Method and system supporting server access by different types of clients as well as server
CN101697139A (en) Method, device and registry for remote procedure call
KR20210040850A (en) Method, apparatus, device, and storage medium for parsing document
CN105224456A (en) A kind of test script generates methods, devices and systems
EP3525100B1 (en) Framework for developing and deploying applications
CN111831542B (en) API application debugging method and device and storage medium
US8751689B2 (en) Serialization and distribution of serialized content using socket-based communication
CN113050940A (en) Method for previewing small program, related device and computer program product
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN112966824A (en) Deployment method and device of inference library and electronic equipment
CN111767089A (en) Method, device and equipment for loading file and storage medium
CN108536584B (en) Automatic testing method based on Sikuli
CN112988267A (en) Loading method and device, storage medium and electronic equipment
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
CN111061743A (en) Data processing method and device and electronic equipment
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN116248526A (en) Method and device for deploying container platform and electronic equipment
CN113779122B (en) Method and device for exporting data
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN104102496A (en) Development method for bank self-service system cross-browser plugin based on WINDOWS platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150819

WD01 Invention patent application deemed withdrawn after publication