CN105353646A - Method and device for realizing instrument interface simulation - Google Patents

Method and device for realizing instrument interface simulation Download PDF

Info

Publication number
CN105353646A
CN105353646A CN201510742820.2A CN201510742820A CN105353646A CN 105353646 A CN105353646 A CN 105353646A CN 201510742820 A CN201510742820 A CN 201510742820A CN 105353646 A CN105353646 A CN 105353646A
Authority
CN
China
Prior art keywords
instrument
emulation
parameter
track data
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
CN201510742820.2A
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.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201510742820.2A priority Critical patent/CN105353646A/en
Publication of CN105353646A publication Critical patent/CN105353646A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Abstract

The invention discloses a method for realizing instrument interface simulation, which comprises the steps that: a user sets parameters of a simulation instrument; the simulation instrument calls a control instruction stored in a driver library according to the parameters in the step 1, sets corresponding parameters, and sends a control instruction to an actual instrument; the actual instrument receives the control instruction in the step 2, searches trajectory data corresponding to the parameters in the step 1 according to the control instruction, and sends the trajectory data to the simulation instrument; and the simulation instrument receives the trajectory data in the step 3, draws a signal trajectory according to the trajectory data, and displays the signal trajectory through a simulation interface. The method and a device for realizing instrument interface simulation have the beneficial effects that: the corresponding signal trajectory is displayed by the simulation instrument through controlling the interface of the actual instrument, thus the simulation intuitiveness is good; and through controlling the parameters of the simulation instrument, the actual instrument achieves the setting of corresponding parameters, and the simulation instrument is controlled to display the corresponding signal trajectory, the interface simulation degree is high.

Description

A kind of method and device realizing instrument interface emulation
Technical field
The present invention relates to signal processing technology field, especially a kind of method and device realizing instrument interface emulation.
Background technology
At present, for Experiment Course Teaching, virtual instrument is the important means helping Students ' Learning front line science knowledge.The front panel of emulation instrument is user interface, and user, by setting parameters on front panel, inputs various parameter in program, and outputs test result with the form of numeral or chart.The experience sense obtaining when operational simulation instrument as operation true instrument to enable user, this just requires that the interface of emulating instrument device is more similar better with the front panel of true instrument, reaches just the same user could be allowed to have more directly perceived more deep experience sense even.
Current emulation instrument interface is realized by coding, when using emulation instrument to realize emulation, the built-in program of emulation instrument is called to realize interface emulation only by the input on control imitation instrument, user cannot pass through emulating the control realization of instrument interface to the control of true instrument, and the signal trajectory corresponding with true instrument is shown by emulation instrument, and the signal trajectory intuitive of emulation instrument interface display is poor, the signal trajectory corresponding with true instrument has certain gap.
Summary of the invention
The object of the invention is for overcoming above-mentioned the deficiencies in the prior art, a kind of method realizing instrument interface emulation is provided.
For achieving the above object, the present invention adopts following technical proposals:
Realize a method for instrument interface emulation, comprise the following steps:
Step one: user arranges the parameter of emulation instrument;
Step 2: emulation instrument is stored in the steering order in Driver Library according to the parameter call in step one, and to true instrument sending controling instruction;
Step 3: the steering order in true instrument receiving step two, arranges relevant parameter, and the track data corresponding with the parameter of step one according to steering order search, and this track data is sent to emulation instrument;
Step 4: the track data in emulation instrument receiving step three, and draw signal trajectory according to track data, signal trajectory is shown by Simulation Interface.
Preferably, the parameter of described step one comprises the parameter corresponding with true instrument.
Preferably, the parameter arranging emulation instrument in described step one realizes by arranging button corresponding to this parameter on the Simulation Interface of emulation instrument.
Preferably, in described step 2, call steering order and realize by calling interface function corresponding in Driver Library.
Preferably, in described step 3, track data is equally spaced sent in emulation instrument by described true instrument timing.
Preferably, in step 4, the batch track data in emulation instrument receiving step three, and information processing is carried out to track data, obtain signal trajectory.
Preferred further, in step 4, track data is carried out described point, and point corresponding for track data is connected successively, obtain signal trajectory.
Emulation instrument receives the batch track data that true instrument sends, and draws with this track data, obtains signal trajectory.
The invention also discloses a kind of device realizing instrument interface emulation, comprise parameter setting unit, command unit, data transmission unit and Emulating display unit; Wherein,
Parameter setting unit, for arranging the parameter of emulation instrument;
Command unit, for being stored in the steering order in Driver Library, and to true instrument sending controling instruction according to the parameter call of emulation instrument;
Data transmission unit, for the track data corresponding with the parameter of emulation instrument according to steering order search, and sends to emulation instrument by this track data;
Emulating display unit, for drawing signal trajectory according to track data, is shown signal trajectory by Simulation Interface.
The invention has the beneficial effects as follows:
1, instrument interface emulation mode of the present invention is by making emulation instrument show corresponding signal trajectory to the control of true instrument, and emulation intuitive is better;
2, the present invention is by the parameter of control imitation instrument, make true instrument realize the setting of relevant parameter, and control imitation instrument carries out showing corresponding signal trajectory, easy to operate and interface fidelity is high.
3, emulation instrument of the present invention can realize the long-range Long-distance Control to true instrument by network, this is very practical in large-scale automatization test system, tester by just can control the true instrument of far-end to the operation of emulation instrument, saves the test duration before a computer.
Accompanying drawing explanation
Fig. 1 is the process flow diagram realizing the method for instrument interface emulation of the present invention;
Fig. 2 is the structural representation realizing the device of instrument interface emulation of the present invention.
Embodiment
Below in conjunction with drawings and Examples the present invention made and further illustrating.
As shown in Figure 1, a kind of method realizing instrument interface emulation, comprises the following steps:
Step one: user arranges the parameter of emulation instrument;
Step 2: emulation instrument is stored in the steering order in Driver Library according to the parameter call in step one, and to true instrument sending controling instruction; In this step, the steering order in described parameter and Driver Library has corresponding relation, the steering order that different parameters is corresponding different;
Step 3: the steering order in true instrument receiving step two, arranges relevant parameter, and the track data corresponding with the parameter of step one according to steering order search, and this track data is sent to emulation instrument;
Step 4: the track data in emulation instrument receiving step three, and draw signal trajectory according to track data, signal trajectory is shown by Simulation Interface.
Further, the parameter of described step one comprises the parameter corresponding with true instrument.
Such as: described parameter is frequency, amplitude, number of scan points, scan mode, video bandwidth, resolution bandwidth, peak value or source power etc.
Further, the parameter arranging emulation instrument in described step one realizes by arranging button corresponding to this parameter on the Simulation Interface of emulation instrument.
Further, in described step 2, call steering order and realize by calling interface function corresponding in Driver Library.
Further, in described step 3, track data is equally spaced sent in emulation instrument by described true instrument timing.
Further, in step 4, the batch track data in emulation instrument receiving step three, and information processing is carried out to track data, obtain signal trajectory.
Preferred further, in step 4, track data is carried out described point, and point corresponding for track data is connected successively, obtain signal trajectory.
In described step 4, track data quantity is equal with the number of scan points of true instrument.Because signal trajectory is made up of batch track data, track data quantity is determined by the number of scan points of true instrument, if the number of scan points of real equipment is K, then the track data that Simulation Interface receives is K, and namely track data quantity is equal with true instrument number of scan points.
Embodiment 1: true instrument is frequency spectrograph, to arrange frequency spectrograph centre frequency, to being described of this instrument interface emulation mode, comprises the following steps:
Step one: user, by clicking button corresponding to the upper frequency of heart of emulation instrument, arranges center frequency value;
Step 2: emulation instrument calls the steering order be stored in Driver Library according to the center frequency value of step one, and steering order is sent to frequency spectrograph, described steering order comprises and arranges centre frequency instruction, reads path instructions;
Step 3: centre frequency instruction is set and reads path instructions in frequency spectrograph receiving step two, and be the center frequency value of step one according to the centre frequency arranging centre frequency instruction and arrange self, read the track data corresponding with the center frequency value of step one according to reading path instructions simultaneously, and track data is sent to emulation instrument;
Step 4: the track data in emulation instrument receiving step three, and draw spectrogram according to track data, by Simulation Interface, the spectrogram corresponding with track data is shown.
Embodiment 2: true instrument is frequency spectrograph, to arrange frequency spectrograph peak value, to being described of this instrument interface emulation mode, comprises the following steps:
Step one: click the peak value button on frequency spectrograph Simulation Interface, peak value is set;
Step 2: emulation instrument calls this according to the peak value of step one and is stored in steering order in Driver Library, and to frequency spectrograph sending controling instruction, described steering order comprises peak value searching instruction, reads path instructions and read frequency marking instruction;
Emulation instrument realizes calling of steering order by calling interface function corresponding in Driver Library, and to frequency spectrograph sending controling instruction;
Step 3: frequency spectrograph receives the steering order that emulation instrument sends, and search for the peak value of current track according to peak value searching instruction and show frequency marking at peak value place, and then read track data corresponding to peak value according to reading path instructions, obtain frequency marking data corresponding to peak value according to reading frequency marking instruction, and timing sends track data and frequency marking data to emulation instrument at equal intervals simultaneously;
Step 4: the track data that emulation instrument received spectrum instrument sends and frequency marking data, and draw signal spectrum figure according to track data, and according to frequency marking Plotting data frequency marking, and signal spectrum figure and frequency marking are shown by the Simulation Interface emulating instrument.
Through above-mentioned emulation, emulation instrument Simulation Interface display spectrogram and frequency spectrograph in spectrogram completely the same.
Can find out through above-mentioned flow process:
1. the signal trajectory that the emulation instrument obtained by method of the present invention is shown is identical with the signal trajectory that true instrument shows, and simulated effect is good;
2. user realizes in instrument interface simulation process, only need to operate the parameter of emulation instrument, emulation instrument realizes the acquisition with track data of calling of steering order by the interface function calling Driver Library, thus reach the object controlling true instrument, can draw out the signal trajectory the same with true instrument, intuitive is strong simultaneously.
3. emulation instrument of the present invention can realize to true instrument by network Long-distance Control, and can be applicable to large automatic test macro, tester is by just controlling the true instrument of far-end, the saving test duration to the operation of emulation instrument.
The invention also discloses a kind of device realizing instrument interface emulation, comprise parameter setting unit, command unit, data transmission unit and Emulating display unit; Wherein,
Parameter setting unit, for arranging the parameter of emulation instrument;
Command unit, for being stored in the steering order in Driver Library, and to true instrument sending controling instruction according to the parameter call of emulation instrument;
Data transmission unit, for the track data corresponding with the parameter of emulation instrument according to steering order search, and sends to emulation instrument by this track data;
Emulating display unit, for drawing signal trajectory according to track data, is shown signal trajectory by Simulation Interface.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various amendment or distortion that creative work can make still within protection scope of the present invention.

Claims (8)

1. realize a method for instrument interface emulation, it is characterized in that, comprise the following steps:
Step one: user arranges the parameter of emulation instrument;
Step 2: emulation instrument is stored in the steering order in Driver Library according to the parameter call in step one, and to true instrument sending controling instruction;
Step 3: the steering order in true instrument receiving step two, arranges relevant parameter, and the track data corresponding with the parameter of step one according to steering order search, and this track data is sent to emulation instrument;
Step 4: the track data in emulation instrument receiving step three, and draw signal trajectory according to track data, signal trajectory is shown by Simulation Interface.
2. realize the method for instrument interface emulation as claimed in claim 1, it is characterized in that, the parameter of described step one comprises the parameter corresponding with true instrument.
3. realize the method for instrument interface emulation as claimed in claim 1, it is characterized in that, the parameter arranging emulation instrument in described step one realizes by arranging button corresponding to this parameter on the Simulation Interface of emulation instrument.
4. instrument interface emulation mode as claimed in claim 1, is characterized in that, in described step 2, calls steering order and realizes by calling interface function corresponding in Driver Library.
5. realize the method for instrument interface emulation as claimed in claim 1, it is characterized in that, in described step 3, track data is equally spaced sent in emulation instrument by described true instrument timing.
6. realize the method for instrument interface emulation as claimed in claim 1, it is characterized in that, in step 4, the batch track data in emulation instrument receiving step three, and information processing is carried out to track data, obtain signal trajectory.
7. realize the method for instrument interface emulation as claimed in claim 6, it is characterized in that, in step 4, track data is carried out described point, and point corresponding for track data is connected successively, obtain signal trajectory.
8., based on the arbitrary described device realizing instrument interface emulation of claim 1-7, it is characterized in that, comprise parameter setting unit, command unit, data transmission unit and Emulating display unit; Wherein,
Parameter setting unit, for arranging the parameter of emulation instrument;
Command unit, for being stored in the steering order in Driver Library, and to true instrument sending controling instruction according to the parameter call of emulation instrument;
Data transmission unit, for the track data corresponding with the parameter of emulation instrument according to steering order search, and sends to emulation instrument by this track data;
Emulating display unit, for drawing signal trajectory according to track data, is shown signal trajectory by Simulation Interface.
CN201510742820.2A 2015-11-04 2015-11-04 Method and device for realizing instrument interface simulation Pending CN105353646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510742820.2A CN105353646A (en) 2015-11-04 2015-11-04 Method and device for realizing instrument interface simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510742820.2A CN105353646A (en) 2015-11-04 2015-11-04 Method and device for realizing instrument interface simulation

Publications (1)

Publication Number Publication Date
CN105353646A true CN105353646A (en) 2016-02-24

Family

ID=55329635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510742820.2A Pending CN105353646A (en) 2015-11-04 2015-11-04 Method and device for realizing instrument interface simulation

Country Status (1)

Country Link
CN (1) CN105353646A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005053508A2 (en) * 2002-11-11 2005-06-16 Gaumard Scientific Company, Inc. Interactive education system for teaching patient care
CN101464923A (en) * 2009-01-16 2009-06-24 天津大学 Traffic control, inducement and cooperation oriented simulation intelligent traffic system
CN102890451A (en) * 2012-09-29 2013-01-23 浙江大学 Semi-physical simulation platform for vehicle-mounted controller test
CN102999043A (en) * 2012-12-17 2013-03-27 中联重科股份有限公司 Simulation testing system for vehicle control unit of hybrid power vehicle
CN103064298A (en) * 2012-12-17 2013-04-24 中海网络科技股份有限公司 Semi-physical simulation experiment system
CN202939195U (en) * 2012-08-17 2013-05-15 北京元厚教育科技有限公司 Remote oscilloscope
CN103885340A (en) * 2012-12-20 2014-06-25 中国北车股份有限公司 Electric locomotive semi-physical simulation system
CN104407519A (en) * 2014-10-31 2015-03-11 南车株洲电力机车研究所有限公司 Semi-physical simulation system of AC-DC-AC metallurgy rolling mill transmission system
CN204272134U (en) * 2014-12-12 2015-04-15 西华大学 A kind of radio monitoring Simulation Experimental Platform
CN204705887U (en) * 2015-05-26 2015-10-14 湖北工业大学 A kind of pneumatic servo weighted platform structure

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005053508A2 (en) * 2002-11-11 2005-06-16 Gaumard Scientific Company, Inc. Interactive education system for teaching patient care
CN101464923A (en) * 2009-01-16 2009-06-24 天津大学 Traffic control, inducement and cooperation oriented simulation intelligent traffic system
CN202939195U (en) * 2012-08-17 2013-05-15 北京元厚教育科技有限公司 Remote oscilloscope
CN102890451A (en) * 2012-09-29 2013-01-23 浙江大学 Semi-physical simulation platform for vehicle-mounted controller test
CN102999043A (en) * 2012-12-17 2013-03-27 中联重科股份有限公司 Simulation testing system for vehicle control unit of hybrid power vehicle
CN103064298A (en) * 2012-12-17 2013-04-24 中海网络科技股份有限公司 Semi-physical simulation experiment system
CN103885340A (en) * 2012-12-20 2014-06-25 中国北车股份有限公司 Electric locomotive semi-physical simulation system
CN104407519A (en) * 2014-10-31 2015-03-11 南车株洲电力机车研究所有限公司 Semi-physical simulation system of AC-DC-AC metallurgy rolling mill transmission system
CN204272134U (en) * 2014-12-12 2015-04-15 西华大学 A kind of radio monitoring Simulation Experimental Platform
CN204705887U (en) * 2015-05-26 2015-10-14 湖北工业大学 A kind of pneumatic servo weighted platform structure

Similar Documents

Publication Publication Date Title
Huang Framework for a smart adult education environment
CN104537903A (en) Interactive transmission electron microscopy virtual simulation teaching system and method
CN104331234B (en) A kind of method and apparatus for performing mapping operation
CN101087148A (en) Simulation and analysis system and method of high-speed differential signal
CN208351776U (en) A kind of chip circuit tutoring system based on VR virtual reality technology
CN110501918A (en) Intelligent electrical appliance control, device, electronic equipment and storage medium
CN111522701A (en) Test method, test system, electronic device and storage medium
CN102768308A (en) Method for carrying out visual simulation test on dielectric loss of current transformer
CN108010407A (en) A kind of Dancing Teaching Interactive Experience method and system
CN105867755A (en) Method for improving fluency of picture and terminal device
CN104731482A (en) Screen capturing method and device
CN104267380A (en) Associated display method for full-pulse signal multidimensional parameters
CN105530659A (en) Service test system, method and device of mobile terminal
CN105353646A (en) Method and device for realizing instrument interface simulation
CN206388409U (en) Mould electricity teaching platform
CN206162921U (en) Shield constructs analogue test platform system for teaching
CN204117397U (en) Multifunction radar simulator teaching equipment
CN115408968A (en) Construction method and system based on SVG virtual circuit
CN204406390U (en) A kind of Monkey test macro
CN103077000A (en) Method and device for adjusting display effect
Ge et al. Application and Practice of Remote Measurement and Control Platform in the Experiment Teaching Course of “Data Acquisition and Interface Technology”
CN209643850U (en) The real-time adjustment utensil of tobacco smoking set control process parameter
CN210119872U (en) VR uses supervise device based on operation function
CN114995649B (en) Role calling method, device, equipment and medium
CN110703801A (en) Unmanned aerial vehicle simulation method, device and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224