CN102467313A - Method and device for applying readings of spectrum analyzer - Google Patents
Method and device for applying readings of spectrum analyzer Download PDFInfo
- Publication number
- CN102467313A CN102467313A CN2010105311032A CN201010531103A CN102467313A CN 102467313 A CN102467313 A CN 102467313A CN 2010105311032 A CN2010105311032 A CN 2010105311032A CN 201010531103 A CN201010531103 A CN 201010531103A CN 102467313 A CN102467313 A CN 102467313A
- Authority
- CN
- China
- Prior art keywords
- value
- reading
- coordinate
- created
- target location
- 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.)
- Granted
Links
- 238000001228 spectrum Methods 0.000 title claims abstract description 57
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000008569 process Effects 0.000 claims description 4
- 230000000052 comparative effect Effects 0.000 claims 3
- 238000010521 absorption reaction Methods 0.000 claims 1
- 238000004364 calculation method Methods 0.000 abstract description 3
- 241000699666 Mus <mouse, genus> Species 0.000 description 66
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 21
- 238000004590 computer program Methods 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 6
- 241000699670 Mus sp. Species 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 238000001179 sorption measurement Methods 0.000 description 2
- 238000010183 spectrum analysis Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000116 mitigating effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Analysing Materials By The Use Of Radiation (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
本发明公开了一种频谱分析仪的读值应用方法及装置,其中方法包括:获取频谱分析仪显示画面上鼠标点击的坐标值;获取所述显示画面已创建的读值的坐标值;计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;将最小偏移值对应的已创建的读值设定为选中状态。装置包括:第一获取模块,用于获取频谱分析仪显示画面上鼠标点击的坐标值;第二获取模块,用于获取所述显示画面已创建的读值的坐标值;偏移值计算模块,用于计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;选中设定模块,用于将最小偏移值对应的已创建的读值设定为选中状态。采用本发明可以快速、高效地实现频谱分析仪读值功能,从而大幅度地提高频谱分析仪的易用性。
The invention discloses a reading value application method and device of a spectrum analyzer, wherein the method includes: obtaining the coordinate value of the mouse click on the display screen of the spectrum analyzer; obtaining the coordinate value of the reading value created on the display screen; The offset value between the clicked coordinate value and the coordinate value of the created reading value; set the created reading value corresponding to the minimum offset value to the selected state. The device includes: a first acquisition module, used to acquire the coordinate value of the mouse click on the display screen of the spectrum analyzer; a second acquisition module, used to obtain the coordinate value of the reading value created on the display screen; an offset value calculation module, It is used to calculate the offset value between the coordinate value of the mouse click and the coordinate value of the created reading value; the selected setting module is used to set the created reading value corresponding to the minimum offset value to the selected state. By adopting the invention, the reading function of the spectrum analyzer can be quickly and efficiently realized, thereby greatly improving the usability of the spectrum analyzer.
Description
技术领域 technical field
本发明涉及频谱分析仪技术,尤其涉及频谱分析仪的读值应用方法及装置。The invention relates to spectrum analyzer technology, in particular to a reading value application method and device of the spectrum analyzer.
背景技术 Background technique
从与PC(Personal Computer,个人计算机)的关系来分,频谱分析仪一般有两种:一种是基于PC的仪器,该仪器内置在PC中作为PC的一特殊设备存在,仪器本身的显示键盘等部分借助PC的资源来实现;另一种是嵌入式仪器,仪器本身自有一套系统来实现其所有功能(显示、键盘、电源供电等)。第二种方式使用PC资源的仪器,该仪器需要与PC相连,PC通过传输控制命令来实现对仪器的操作,其实现方式是基于频谱分析仪基本功能,以SCPI(Standard Commands for Programmable Instruments,即可编程仪器标准命令集)和VISA(Virtual Instrumentation Software Architecture,虚拟仪器体系结构)驱动为媒介,借助PC强大的资源进行频谱分析的应用工具软件,一般称这类软件为“上位机”(对应仪器“下位机”而言)。类似的技术也被称为虚拟仪器技术(仪器被划分成数据采集卡硬件、数据采集卡软件、PC端数据处理软件三大部分)。图1为现有技术中基于VISA以SCPI为载体的PC仪器应用示意图。From the relationship with PC (Personal Computer, personal computer), there are generally two types of spectrum analyzers: one is a PC-based instrument, which exists as a special device built in the PC, and the display keyboard of the instrument itself The other is the embedded instrument, which has its own system to realize all its functions (display, keyboard, power supply, etc.). The second way is to use the instrument with PC resources. The instrument needs to be connected to the PC. The PC realizes the operation of the instrument through the transmission of control commands. The implementation method is based on the basic functions of the spectrum analyzer. Programmable instrument standard command set) and VISA (Virtual Instrumentation Software Architecture, virtual instrument architecture) driver as the medium, the application tool software for spectrum analysis with the help of powerful resources of PC, generally called this kind of software as "host computer" (corresponding instrument "lower computer"). Similar technologies are also called virtual instrument technology (the instrument is divided into three parts: data acquisition card hardware, data acquisition card software, and PC-side data processing software). FIG. 1 is a schematic diagram of the application of a PC instrument based on VISA and using SCPI as a carrier in the prior art.
由于仪器成本的限制,一般仪器都构建在嵌入式系统上,但各种应用受限于嵌入式系统资源(存储空间、运算速度等等)。上述嵌入式仪器使用PC资源的方法缓解了这一问题。Due to the limitation of instrument cost, general instruments are built on embedded systems, but various applications are limited by embedded system resources (storage space, computing speed, etc.). The above-mentioned method of using PC resources for embedded instruments alleviates this problem.
现有技术中,频谱分析仪作为一种分析仪器,一般都提供读值功能,即读取频谱数据横纵坐标值的功能,这种功能称其为Mark功能,顾名思义Mark即在数据上标记位置,并在标记位置后读取显示该位置的值信息。图2为现有技术中一般频谱分析仪提供的Mark功能的显示画面示意图。In the prior art, as an analytical instrument, a spectrum analyzer generally provides a reading function, that is, the function of reading the horizontal and vertical coordinates of the spectrum data. This function is called the Mark function. As the name implies, the Mark is to mark the position on the data , and read the value information showing the location after marking the location. FIG. 2 is a schematic diagram of a display screen of a Mark function provided by a general spectrum analyzer in the prior art.
发明人在实现本发明的过程中,发现上述现有技术存在如下不足:In the process of realizing the present invention, the inventor found that the above-mentioned prior art has the following deficiencies:
由于频谱分析仪一般为嵌入式设备,不支持标准键盘、鼠标等外设,即便是基于PC的频谱分析仪,也只是由于有操作系统的原因支持鼠标、键盘,而鼠标、键盘对仪器的控制并不常用,所以一般都使用仪器键盘(区别于标准PC键盘)、旋钮来控制仪器,例如图3所示的仪器键盘和旋钮示意图中所示。因此,对Mark功能的应用,通常是使用仪器键盘、旋钮来控制完成,使Mark功能的应用实现操作不太便捷、仪器的易用性较差。Since the spectrum analyzer is generally an embedded device, it does not support standard keyboards, mice and other peripherals. Even a PC-based spectrum analyzer only supports the mouse and keyboard because of the operating system, and the mouse and keyboard control the instrument. It is not commonly used, so the instrument keyboard (different from the standard PC keyboard) and knobs are generally used to control the instrument, such as the schematic diagram of the instrument keyboard and knobs shown in Figure 3. Therefore, the application of the Mark function is usually controlled by using the instrument keyboard and knobs, which makes the operation of the Mark function application inconvenient and the usability of the instrument is poor.
发明内容 Contents of the invention
本发明实施例提供一种频谱分析仪的读值应用方法,用以快速、高效地实现频谱分析仪读值功能,提高频谱分析仪的易用性,该方法包括:An embodiment of the present invention provides a reading application method of a spectrum analyzer, which is used to quickly and efficiently realize the reading function of the spectrum analyzer and improve the usability of the spectrum analyzer. The method includes:
获取频谱分析仪显示画面上鼠标点击的坐标值;Obtain the coordinate value of the mouse click on the display screen of the spectrum analyzer;
获取所述显示画面已创建的读值的坐标值;Obtain the coordinate value of the reading value created on the display screen;
计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;Calculate the offset value between the coordinate value of the mouse click and the coordinate value of the created reading value;
将最小偏移值对应的已创建的读值设定为选中状态。Sets the created reading corresponding to the minimum offset value to checked.
本发明实施例还提供一种频谱分析仪的读值应用装置,用以快速、高效地实现频谱分析仪读值功能,提高频谱分析仪的易用性,该装置包括:The embodiment of the present invention also provides a reading application device of a spectrum analyzer, which is used to quickly and efficiently realize the reading function of the spectrum analyzer and improve the usability of the spectrum analyzer. The device includes:
第一获取模块,用于获取频谱分析仪显示画面上鼠标点击的坐标值;The first obtaining module is used to obtain the coordinate value of the mouse click on the display screen of the spectrum analyzer;
第二获取模块,用于获取所述显示画面已创建的读值的坐标值;The second obtaining module is used to obtain the coordinate value of the reading value created on the display screen;
偏移值计算模块,用于计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;An offset value calculation module, which is used to calculate the offset value between the coordinate value of the mouse click and the coordinate value of the created reading value;
选中设定模块,用于将最小偏移值对应的已创建的读值设定为选中状态。The selected setting module is used to set the created reading value corresponding to the minimum offset value as a selected state.
本发明实施例中,获取频谱分析仪显示画面上鼠标点击的坐标值;取所述显示画面已创建的读值的坐标值;计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;将最小偏移值对应的已创建的读值设定为选中状态,从而基于PC的外设鼠标来实现频谱分析仪读值功能,实现起来快速、高效,大大提高了频谱分析仪的易用性。In the embodiment of the present invention, the coordinate value of the mouse click on the spectrum analyzer display screen is obtained; the coordinate value of the reading value created on the display screen is obtained; the coordinate value between the coordinate value of the mouse click and the created reading value is calculated The offset value; set the created reading value corresponding to the minimum offset value to the selected state, so that the spectrum analyzer reading function can be realized based on the peripheral mouse of the PC, which is fast and efficient, and greatly improves the spectrum analysis. The ease of use of the instrument.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort. In the attached picture:
图1为现有技术中基于VISA以SCPI为载体的PC仪器应用示意图;Fig. 1 is the PC instrument application schematic diagram based on VISA with SCPI as carrier in the prior art;
图2为现有技术中一般频谱分析仪提供的Mark功能的显示画面示意图;FIG. 2 is a schematic diagram of a display screen of a Mark function provided by a general spectrum analyzer in the prior art;
图3为现有技术中仪器键盘和旋钮示意图;Fig. 3 is the schematic diagram of instrument keyboard and knob in the prior art;
图4为本发明实施例中使用索引选中Mark的频谱分析仪显示画面示意图;4 is a schematic diagram of a spectrum analyzer display screen using an index to select Mark in an embodiment of the present invention;
图5为本发明实施例中通过鼠标点击的方式选中Mark的频谱分析仪显示画面示意图;Fig. 5 is the schematic diagram of the spectrum analyzer display screen of Mark selected by the mode of mouse click in the embodiment of the present invention;
图6为本发明实施例中频谱分析仪的读值应用方法的处理流程图;Fig. 6 is the processing flowchart of the reading application method of the spectrum analyzer in the embodiment of the present invention;
图7为本发明实施例中选中Mark的一个具体实例的频谱分析仪显示画面示意图;Fig. 7 is the schematic diagram of the spectrum analyzer display screen of a specific example of Mark selected in the embodiment of the present invention;
图8为本发明实施例中频谱分析仪的读值应用装置的结构示意图;8 is a schematic structural diagram of a reading application device of a spectrum analyzer in an embodiment of the present invention;
图9为本发明实施例中图8所示的频谱分析仪的读值应用装置的具体实例的示意图。FIG. 9 is a schematic diagram of a specific example of the reading application device of the spectrum analyzer shown in FIG. 8 in an embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.
作为被广泛应用的人机交互设备,在PC领域鼠标和键盘被广泛使用,随着Windows的推广,人们也越来越使用习惯使用键盘和鼠标。鼠标的灵活性与键盘的丰富性可以用来更好地控制和使用仪器。本发明实施例中的上位机基于PC来控制和使用仪器,考虑通过PC的外设使用形式(例如鼠标单击或双击)在仪器上设计出新的仪器使用方法,从而快速、高效的实现仪器Mark功能的应用,提高仪器的易用性。As widely used human-computer interaction devices, mice and keyboards are widely used in the PC field. With the promotion of Windows, people are becoming more and more accustomed to using keyboards and mice. The flexibility of the mouse and the richness of the keyboard can be used to better control and use the instrument. The upper computer in the embodiment of the present invention controls and uses the instrument based on the PC, and considers designing a new method of using the instrument on the instrument through the use of PC peripherals (such as mouse click or double-click), so as to realize the instrument quickly and efficiently. The application of the Mark function improves the usability of the instrument.
Mark功能的应用操作一般包括创建Mark、选中Mark、移动Mark、设置Mark显示属性、删除Mark、Mark定位等。上述操作中除创建Mark以外,其它操作都基于选中Mark,因此高效的解决选中问题会给其它操作带来方便。The application operation of the Mark function generally includes creating a Mark, selecting a Mark, moving a Mark, setting a Mark display property, deleting a Mark, and positioning a Mark, etc. In the above operations, except for creating Mark, other operations are based on selecting Mark, so efficiently solving the selection problem will bring convenience to other operations.
本发明实施例中,选中Mark的实现可以通过索引选中指定Mark,对已创建的Mark建立索引表,选中索引表中的索引即选中该索引对应的Mark,例如图4所示的使用索引选中Mark的频谱分析仪显示画面示意图所示。In the embodiment of the present invention, the implementation of selecting a Mark can be achieved by selecting a specified Mark through an index, and establishing an index table for the created Mark, and selecting an index in the index table means selecting the Mark corresponding to the index, for example, using an index to select a Mark as shown in Figure 4 The schematic diagram of the spectrum analyzer display screen is shown.
基于索引表可以方便的找到索引对应的Mark,但前提需要知道索引是什么,如何在不知道索引的前提下直观的找到需要的Mark?本发明实施例中考虑到,鼠标是一种有效的空间定位工具,通过它可以根据视觉以及鼠标的机械运动来定位鼠标显示运动范围内的物体,基于此可以通过鼠标点击的方式来选中Mark,例如图5所示的通过鼠标点击的方式选中Mark的频谱分析仪显示画面示意图中所示。Based on the index table, you can easily find the Mark corresponding to the index, but you need to know what the index is. How can you intuitively find the required Mark without knowing the index? It is considered in the embodiment of the present invention that the mouse is an effective spatial positioning tool, through which the objects within the range of motion displayed by the mouse can be positioned according to the vision and the mechanical movement of the mouse, based on which the Mark can be selected by clicking the mouse, For example, as shown in FIG. 5 , the schematic diagram of the spectrum analyzer display screen where Mark is selected by clicking the mouse is shown.
图5中的圆圈即鼠标,此时需要鼠标瞄准Mark进行点击以选中Mark,由于Mark是一个较精确的点标记,当信号变化较频繁时,Mark为了锁定信号(与信号一起变化)也会频繁变化,这种情况下用鼠标瞄准该Mark较为困难。为了缓解该问题,本发明实施例中考虑放大Mark可选择区域,即将可以选中Mark的鼠标点击的坐标值区域放大,方便被鼠标瞄准点中。但这种缓解方案适用于信号变化幅度不大的情况,当信号变化幅度大时该方案实现起来有一定难度(例如不可能过大的放大Mark鼠标选中区域)。The circle in Figure 5 is the mouse. At this time, the mouse needs to be aimed at the Mark and click to select the Mark. Since the Mark is a more accurate point mark, when the signal changes frequently, the Mark will also frequently lock the signal (change with the signal) In this case, it is more difficult to aim the Mark with the mouse. In order to alleviate this problem, in the embodiment of the present invention, it is considered to enlarge the Mark selectable area, that is, to enlarge the coordinate value area of the mouse click on which the Mark can be selected, so as to be easily targeted by the mouse. However, this mitigation solution is applicable to the situation where the signal variation range is not large, and it is difficult to implement the solution when the signal variation range is large (for example, it is impossible to enlarge the area selected by the Mark mouse too much).
经分析,本发明实施例提供如下频谱分析仪的读值(Mark)应用方法,如图6所示,可以包括:After analysis, the embodiment of the present invention provides the following reading value (Mark) application method of the spectrum analyzer, as shown in Figure 6, which may include:
步骤601、获取频谱分析仪显示画面上鼠标点击的坐标值;
步骤602、获取所述显示画面已创建的读值的坐标值;
步骤603、计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;
步骤604、将最小偏移值对应的已创建的读值设定为选中状态。Step 604: Set the created reading value corresponding to the minimum offset value as a selected state.
由图6所示的处理流程可以得知,通过获取频谱分析仪显示画面上鼠标点击的坐标值;取所述显示画面已创建的读值的坐标值;计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;将最小偏移值对应的已创建的读值设定为选中状态,能够基于PC的外设鼠标来实现频谱分析仪读值功能,实现起来快速、高效,大大提高了频谱分析仪的易用性。As can be known from the processing flow shown in Figure 6, by obtaining the coordinate value of the mouse click on the display screen of the spectrum analyzer; getting the coordinate value of the reading value created on the display screen; calculating the coordinate value of the mouse click and the created The offset value between the coordinate values of the reading value; the created reading value corresponding to the minimum offset value is set to the selected state, and the spectrum analyzer reading function can be realized based on the peripheral mouse of the PC, which is fast and efficient Efficient, greatly improving the usability of the spectrum analyzer.
图6所示的处理流程中,通过将鼠标点击的坐标值与已创建的读值的坐标值相结合,确定选中读值,不仅可以在不知道索引的前提下直观的找到需要的Mark,还可以精确地选中需要的Mark。In the processing flow shown in Figure 6, by combining the coordinate value of the mouse click with the coordinate value of the created reading value to determine the selected reading value, not only can the required Mark be found intuitively without knowing the index, but also You can precisely select the desired Mark.
基于图6所示处理流程选中Mark的方式,对使用者而言是在较大的区域内点击鼠标,而选中Mark的动作可以由图6所示处理流程自动完成。Based on the way of selecting Mark in the processing flow shown in FIG. 6 , the user clicks the mouse in a larger area, and the action of selecting Mark can be automatically completed by the processing flow shown in FIG. 6 .
图7为选中Mark的一个具体实例的频谱分析仪显示画面示意图。图7中圆圈标出当前鼠标点击位置(可以定义双击该位置有效),矩形框为目标Mark(要选中该Mark),在鼠标点击后获取鼠标点击位置的坐标值,获取已创建的Mark的坐标值,计算所有Mark与鼠标点击位置的坐标值之间的偏移值(这里只计算图7中所示箭头线),经过比较发现矩形框的Mark的坐标值的偏移值最小(坐标值的差值最小),则将该Mark设定为选中状态。FIG. 7 is a schematic diagram of a spectrum analyzer display screen of a specific example of Mark being selected. In Figure 7, the circle marks the current mouse click position (you can define that double-clicking is valid), and the rectangular box is the target Mark (to select the Mark). After the mouse is clicked, the coordinate value of the mouse click position is obtained, and the coordinates of the created Mark are obtained. value, calculate the offset value between all Mark and the coordinate value of the mouse click position (here only calculate the arrow line shown in Figure 7), after comparison, it is found that the offset value of the coordinate value of the Mark of the rectangular box is the smallest (the coordinate value of The difference is the smallest), then set the Mark to the selected state.
即,上述选中Mark的方式为:在Mark的附近点击鼠标(可以定义为双击鼠标),此时距离鼠标点击处最近的Mark会被选中,这使得Mark的选中更加快捷有效。That is, the above-mentioned way of selecting Mark is: click the mouse near the Mark (can be defined as double-clicking the mouse), and at this time the Mark closest to the mouse click will be selected, which makes the selection of Mark more efficient and effective.
具体实施时,前述显示画面已创建的读值的坐标值在实施步骤602之前被记录,实施步骤602时可以获取到所记录的已创建的读值的坐标值。记录方法可以有多种,例如可以通过前述建立索引表的方法进行记录,可以有其它的记录方法,例如建立一文件进行记录。一个实施例中,获取所述显示画面已创建的读值的坐标值之前,还可以包括:对所述显示画面已创建的读值建立索引表,所述索引表中记录所述显示画面已创建的读值的坐标值;则,获取所述显示画面已创建的读值的坐标值,可实施为:从所述索引表中获取所述显示画面已创建的读值的坐标值。During specific implementation, the coordinates of the created readings on the aforementioned display screen are recorded before
具体实施时,步骤604的实施可能会出现如下情况:最小偏移值可以包括多个相同的偏移值,即出现等距情况。此时,可以预设有优先规则,在最小偏移值包括多个相同的偏移值时,根据预设的优先规则,从所述多个相同的偏移值中选择一个偏移值;将选择的偏移值对应的已创建的读值设定为选中状态。这样在出现等偏移点时可以保证处于选中状态的读值只有一个。优先规则可以根据实际需要进行预设。例如,可以设为选中是鼠标左边第一个Mark,当然也可以根据需要定义其它优先规则。During specific implementation, the following situation may occur in the implementation of step 604: the minimum offset value may include multiple identical offset values, that is, an equidistant situation occurs. At this time, a priority rule may be preset, and when the minimum offset value includes multiple identical offset values, an offset value is selected from the multiple identical offset values according to the preset priority rule; The created reading corresponding to the selected offset value is set to the selected state. In this way, it can be guaranteed that there is only one reading value in the selected state when the equi-offset point occurs. Priority rules can be preset according to actual needs. For example, it can be set to select the first Mark on the left of the mouse, and of course other priority rules can also be defined as required.
具体实施时,在选中Mark后,移动Mark到需要的位置并读取其值,即Mark的定位,是Mark常用的一种应用方式,由于有鼠标的存在只要将Mark设定为吸附在信号上(通过编程控制可达到吸附效果),拖动选中的Mark即可拖动到需要读值的位置。即,一个实施例中,在将最小偏移值对应的已创建的读值设定为选中状态之后,还可以包括:将选中的读值设定为吸附在信号上;通过拖动选中的读值,将选中的读值定位至目标位置。In the specific implementation, after selecting the Mark, move the Mark to the desired position and read its value, that is, the positioning of the Mark, which is a common application method of the Mark. Because of the existence of the mouse, just set the Mark to be attached to the signal (The adsorption effect can be achieved through programming control), drag the selected Mark to the position where the value needs to be read. That is to say, in one embodiment, after setting the created read value corresponding to the minimum offset value to the selected state, it may further include: setting the selected read value to be attached to the signal; dragging the selected read value to value to position the selected reading value to the target position.
除了上述这种拖动定位的方法外,具体实施时还可以采取跳跃定位的方式来定位Mark,即可以通过鼠标点击目标位置,将选中的读值定位至目标位置。在Mark被选中后,鼠标点击(单击)哪里就将Mark定位到哪里。这种方式下定位Mark更加快捷。由于这种跳跃定位的方式下,鼠标点击的位置不一定是在信号上,因此可以在对鼠标点击的位置进行处理后,再设置Mark位置。处理过程中可以选择对Mark的定位方式是基于纵轴定位还是基于横轴定位。通过键盘与鼠标点击动作的组合就能很好的完成的定位过程。In addition to the above-mentioned method of dragging and positioning, the Mark can also be positioned by means of jump positioning during specific implementation, that is, the selected reading value can be positioned to the target position by clicking the target position with the mouse. After the Mark is selected, wherever the mouse clicks (clicks), the Mark will be positioned there. In this way, locating Mark is faster. Because in this jump positioning method, the position of the mouse click is not necessarily on the signal, so the Mark position can be set after the position of the mouse click is processed. During processing, you can choose whether to position the Mark based on the vertical axis or the horizontal axis. The positioning process can be well completed through the combination of keyboard and mouse click actions.
即,前述通过鼠标点击目标位置,将选中的读值定位至目标位置,可以包括:在鼠标点击目标位置时,通过键盘按键选择基于纵轴定位或者基于横轴定位的定位方式;根据选择的定位方式,检索信号的坐标值,并将检索到的信号的坐标值与鼠标点击目标位置的坐标值进行比较;根据比较结果确定目标位置,并将选中的读值定位至目标位置。That is, the aforementioned positioning of the selected reading value to the target position by clicking the target position with the mouse may include: when the mouse clicks on the target position, select a positioning method based on vertical axis positioning or horizontal axis positioning through keyboard keys; method, retrieve the coordinate value of the signal, and compare the retrieved signal coordinate value with the coordinate value of the mouse click target position; determine the target position according to the comparison result, and locate the selected reading value to the target position.
具体实施时,若通过键盘选择基于纵轴定位的定位方式,则检索信号的纵坐标值,并将检索到的信号的纵坐标值与鼠标点击目标位置的纵坐标值进行比较;确定偏移最小的纵坐标值对应的信号位置为目标位置,并将选中的读值定位至该位置;若通过键盘选择基于横轴定位的定位方式,则检索信号的横坐标值,并将检索到的信号的横坐标值与鼠标点击目标位置的横坐标值进行比较;确定偏移最小的横坐标值对应的信号位置为目标位置,并将选中的读值定位至该位置。During specific implementation, if the positioning method based on the vertical axis positioning is selected by the keyboard, the vertical coordinate value of the signal is retrieved, and the vertical coordinate value of the retrieved signal is compared with the vertical coordinate value of the mouse click target position; it is determined that the offset is the smallest The signal position corresponding to the ordinate value of the ordinate value is the target position, and the selected reading value is positioned to this position; if the positioning method based on the horizontal axis positioning is selected through the keyboard, the abscissa value of the signal is retrieved, and the retrieved signal’s Compare the abscissa value with the abscissa value of the mouse click target position; determine the signal position corresponding to the abscissa value with the smallest deviation as the target position, and locate the selected reading value to this position.
鼠标点击可以得到点击的横纵坐标,根据键盘按键的不同可以设置Mark的纵坐标(或横坐标)值,即通过键盘按键选择基于纵轴定位或者基于横轴定位的定位方式(这里可以定义键盘Ctrl键为设置纵坐标,Alt为设置横坐标),例如:当点击鼠标的同时按下Ctrl键,则将鼠标点击的横坐标赋给以选中的Mark,这时会检索所有信号的纵坐标值,找到与鼠标点击的纵坐值最近的第一个点并移动过去(此时忽略横坐标)。Mouse click can get the horizontal and vertical coordinates of the click, and the vertical coordinate (or horizontal coordinate) value of Mark can be set according to the different keyboard keys, that is, the positioning method based on vertical axis positioning or horizontal axis positioning can be selected by keyboard keys (here you can define the keyboard Ctrl key is to set the ordinate, Alt is to set the abscissa), for example: when the mouse is clicked and the Ctrl key is pressed at the same time, the abscissa of the mouse click is assigned to the selected Mark, and the ordinate values of all signals will be retrieved , find the first point closest to the ordinate value clicked by the mouse and move it there (ignoring the abscissa at this time).
由于Mark可能获取信号上的值,因此通过对Mark坐标值的运算,可以对信号进行分析。具体实施时提供一种Mark的运算功能,可以进行减法、加法和乘法运算,公式可以为:A+B或A-B或A*B,其中A为被选中的Mark的坐标值,B为其他所有已创建的Mark的坐标值,运算的结果分为两种情况:一、已创建的Mark坐标值不更新,则运算结果不变;二、已创建的Mark坐标值更新,则运算结果变化。以减法为例,选取一个Mark(根据鼠标选中的Mark)的坐标值作为减数,将所有已创建的Mark的坐标值作为被减数,分别将选中的Mark的坐标值与所有已创建的Mark的坐标值相减(纵轴数据减纵轴数据,横轴数据减横轴数据),此时会得到所有已创建的Mark与选中Mark的坐标值差值。即,在将最小偏移值对应的已创建的读值设定为选中状态之后,还可以包括:将已创建的读值的坐标值与选中的读值的坐标值进行加法、减法或乘法运算;根据运算结果确定对应信号间的差值。Since the Mark may obtain the value on the signal, the signal can be analyzed through the operation of the Mark coordinate value. During the specific implementation, a Mark operation function is provided, which can perform subtraction, addition and multiplication operations. The formula can be: A+B or A-B or A*B, where A is the coordinate value of the selected Mark, and B is all other The coordinate value of the created Mark, the result of the operation is divided into two cases: 1. If the created Mark coordinate value is not updated, the operation result will not change; 2. If the created Mark coordinate value is updated, the operation result will change. Take subtraction as an example, select the coordinate value of a Mark (according to the Mark selected by the mouse) as the subtrahend, use the coordinate values of all created Marks as the minuend, and compare the coordinate values of the selected Mark with all created Marks respectively. Subtract the coordinate values (vertical axis data minus vertical axis data, horizontal axis data minus horizontal axis data), and then you will get the difference between the coordinate values of all created Marks and the selected Mark. That is, after setting the created reading value corresponding to the minimum offset value to the selected state, it may also include: performing an addition, subtraction or multiplication operation on the coordinate value of the created reading value and the coordinate value of the selected reading value ; Determine the difference between the corresponding signals according to the operation result.
本发明实施例中还提供了一种频谱分析仪的读值应用装置,如下面的实施例所述。由于该装置解决问题的原理与频谱分析仪的读值应用方法相似,因此该装置的实施可以参见频谱分析仪的读值应用方法的实施,重复之处不再赘述。An embodiment of the present invention also provides a reading value application device of a spectrum analyzer, as described in the following embodiments. Since the problem-solving principle of the device is similar to the reading value application method of the spectrum analyzer, the implementation of the device can refer to the implementation of the reading value application method of the spectrum analyzer, and the repetition will not be repeated.
如图8所示,本发明实施例中频谱分析仪的读值应用装置,可以包括:As shown in Figure 8, the reading value application device of the spectrum analyzer in the embodiment of the present invention may include:
第一获取模块801,用于获取频谱分析仪显示画面上鼠标点击的坐标值;The first obtaining
第二获取模块802,用于获取所述显示画面已创建的读值的坐标值;The second acquiring
偏移值计算模块803,用于计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;Offset
选中设定模块804,用于将最小偏移值对应的已创建的读值设定为选中状态。The selected
图9为图8所示的频谱分析仪的读值应用装置的具体实例的示意图。由图9可知:FIG. 9 is a schematic diagram of a specific example of the reading value application device of the spectrum analyzer shown in FIG. 8 . It can be seen from Figure 9 that:
一个实施例中,图8所示的频谱分析仪的读值应用装置还可以包括:In one embodiment, the reading value application device of the spectrum analyzer shown in Figure 8 may also include:
索引表建立模块901,用于对所述显示画面已创建的读值建立索引表,所述索引表中记录所述显示画面已创建的读值的坐标值;An index
所述第二获取模块802具体用于:从所述索引表中获取所述显示画面已创建的读值的坐标值。The second obtaining
一个实施例中,所述选中设定模块804可以包括:In one embodiment, the
选择单元902,用于在最小偏移值包括多个相同的偏移值时,根据预设的优先规则,从所述多个相同的偏移值中选择一个偏移值;A
设定单元903,用于将选择的偏移值对应的已创建的读值设定为选中状态。The
一个实施例中,图8所示的频谱分析仪的读值应用装置还可以包括:In one embodiment, the reading value application device of the spectrum analyzer shown in Figure 8 may also include:
吸附设定模块904,用于将选中的读值设定为吸附在信号上;
定位模块905,用于通过拖动选中的读值,将选中的读值定位至目标位置;或者,用于通过鼠标点击目标位置,将选中的读值定位至目标位置。The
一个实施例中,所述定位模块905可以包括:In an embodiment, the
定位方式选择单元906,用于在鼠标点击目标位置时,通过键盘按键选择基于纵轴定位或者基于横轴定位的定位方式;A positioning
检索比较单元907,用于根据选择的定位方式,检索信号的坐标值,并将检索到的信号的坐标值与鼠标点击目标位置的坐标值进行比较;The retrieval and
定位单元908,用于根据比较结果确定目标位置,并将选中的读值定位至目标位置。The
一个实施例中,所述检索比较单元907具体用于:通过键盘选择基于纵轴定位的定位方式,检索信号的纵坐标值,并将检索到的信号的纵坐标值与鼠标点击目标位置的纵坐标值进行比较;所述定位单元908具体用于:确定偏移最小的纵坐标值对应的信号位置为目标位置,并将选中的读值定位至该位置;In one embodiment, the retrieval and
或者,所述检索比较单元907具体用于:通过键盘选择基于横轴定位的定位方式,检索信号的横坐标值,并将检索到的信号的横坐标值与鼠标点击目标位置的横坐标值进行比较;所述定位单元908具体用于:确定偏移最小的横坐标值对应的信号位置为目标位置,并将选中的读值定位至该位置。Alternatively, the retrieval and
一个实施例中,图8所示的频谱分析仪的读值应用装置还可以包括:In one embodiment, the reading value application device of the spectrum analyzer shown in Figure 8 may also include:
坐标值运算模块909,用于将已创建的读值的坐标值与选中的读值的坐标值进行加法、减法或乘法运算;The coordinate
信号间差值确定模块910,用于根据运算结果确定对应信号间的差值。The inter-signal
综上所述,本发明实施例中,通过获取频谱分析仪显示画面上鼠标点击的坐标值;取所述显示画面已创建的读值的坐标值;计算鼠标点击的坐标值与已创建的读值的坐标值之间的偏移值;将最小偏移值对应的已创建的读值设定为选中状态,能够基于PC的外设鼠标来实现频谱分析仪读值功能,实现起来快速、高效,大大提高了频谱分析仪的易用性。In summary, in the embodiment of the present invention, by obtaining the coordinate value of the mouse click on the spectrum analyzer display screen; getting the coordinate value of the reading value created on the display screen; calculating the coordinate value of the mouse click and the created reading value The offset value between the coordinate values of the value; the created reading value corresponding to the minimum offset value is set to the selected state, and the spectrum analyzer reading function can be realized based on the peripheral mouse of the PC, and the implementation is fast and efficient , greatly improving the usability of the spectrum analyzer.
通过将鼠标点击的坐标值与已创建的读值的坐标值相结合,确定选中读值,不仅可以在不知道索引的前提下直观的找到需要的Mark,还可以精确地选中需要的Mark。By combining the coordinate value of the mouse click with the coordinate value of the created reading value to determine the selected reading value, not only can the required Mark be found intuitively without knowing the index, but also the required Mark can be accurately selected.
基于本发明实施例中上述选中Mark的技术方案,基于PC的外设(鼠标、键盘),移动Mark、设置Mark显示属性、删除Mark、Mark定位等Mark功能的应用操作也能够快速、高效地实现,进一步提高了频谱分析仪的易用性。Based on the above-mentioned technical scheme of selecting Mark in the embodiment of the present invention, based on PC peripherals (mouse, keyboard), the application operations of Mark functions such as moving Mark, setting Mark display attributes, deleting Mark, and Mark positioning can also be realized quickly and efficiently. , which further improves the usability of the spectrum analyzer.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010531103.2A CN102467313B (en) | 2010-11-03 | 2010-11-03 | The readings application process of spectrum analyzer and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010531103.2A CN102467313B (en) | 2010-11-03 | 2010-11-03 | The readings application process of spectrum analyzer and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102467313A true CN102467313A (en) | 2012-05-23 |
CN102467313B CN102467313B (en) | 2016-08-10 |
Family
ID=46071003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010531103.2A Active CN102467313B (en) | 2010-11-03 | 2010-11-03 | The readings application process of spectrum analyzer and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102467313B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750092A (en) * | 2012-06-08 | 2012-10-24 | 天津市视讯软件开发有限公司 | Method for improving acceptance line recording efficiency in frequency domain monitoring field |
CN110825305A (en) * | 2019-10-29 | 2020-02-21 | 王稔秋 | Fuzzy input character judgment method and character input method for screen touch virtual keyboard |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1555008A (en) * | 2003-12-29 | 2004-12-15 | 秦树人 | Method for producing intelligent virtual display |
KR100878199B1 (en) * | 2008-07-28 | 2009-01-13 | 주식회사 뉴스테크놀러지 | Automatic test data analysis system using switch box and its method |
EP2228659A2 (en) * | 2009-03-13 | 2010-09-15 | Tektronix, Inc. | Occupancy measurement and triggering in frequency domain bitmaps |
-
2010
- 2010-11-03 CN CN201010531103.2A patent/CN102467313B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1555008A (en) * | 2003-12-29 | 2004-12-15 | 秦树人 | Method for producing intelligent virtual display |
KR100878199B1 (en) * | 2008-07-28 | 2009-01-13 | 주식회사 뉴스테크놀러지 | Automatic test data analysis system using switch box and its method |
EP2228659A2 (en) * | 2009-03-13 | 2010-09-15 | Tektronix, Inc. | Occupancy measurement and triggering in frequency domain bitmaps |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750092A (en) * | 2012-06-08 | 2012-10-24 | 天津市视讯软件开发有限公司 | Method for improving acceptance line recording efficiency in frequency domain monitoring field |
CN102750092B (en) * | 2012-06-08 | 2014-10-15 | 天津市视讯软件开发有限公司 | Method for improving acceptance line recording efficiency in frequency domain monitoring field |
CN110825305A (en) * | 2019-10-29 | 2020-02-21 | 王稔秋 | Fuzzy input character judgment method and character input method for screen touch virtual keyboard |
Also Published As
Publication number | Publication date |
---|---|
CN102467313B (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8446389B2 (en) | Techniques for creating a virtual touchscreen | |
US12093506B2 (en) | Systems and methods for a touchscreen user interface for a collaborative editing tool | |
CN103914260B (en) | Control method and device for operation object based on touch screen | |
US8581901B2 (en) | Methods and apparatus for interactive rotation of 3D objects using multitouch gestures | |
US8525776B2 (en) | Techniques for controlling operation of a device with a virtual touchscreen | |
CN105094411B (en) | Electronic device, drawing method thereof, and computer program product | |
JP2013545380A (en) | Automatic adjustment of input settings | |
US20150331590A1 (en) | User interface application launcher and method thereof | |
JP2011123773A (en) | Device having touch sensor, tactile feeling presentation method, and tactile feeling presentation program | |
CN106844181B (en) | Method, system and mobile terminal for recording user behavior | |
US11205220B2 (en) | System and method for visual traceability of requirements for products | |
CN106227449B (en) | Input control method and system based on touch-vision technology | |
US8977950B2 (en) | Techniques for selection and manipulation of table boarders | |
CN104024983B (en) | Interaction models for indirect interaction equipment | |
US20130007612A1 (en) | Manipulating Display Of Document Pages On A Touchscreen Computing Device | |
CN112667218A (en) | Processing method, device, equipment and storage medium | |
TW201401157A (en) | Text editing system and method of electronic device | |
CN102467313B (en) | The readings application process of spectrum analyzer and device | |
Tu et al. | Evaluation of flick and ring scrolling on touch-based smartphones | |
US20140380188A1 (en) | Information processing apparatus | |
CN102455798B (en) | The method of operating of spectrum analyzer and device | |
CN106020471A (en) | Operation method of mobile terminal and mobile terminal | |
US20170285902A1 (en) | Modifying Settings of an Electronic Test or Measurement Instrument | |
JP2014164764A (en) | Electronic apparatus and human-computer interaction method | |
JP2014048894A (en) | Display control device and program |
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 |