Vector network analyzer for entity key touch control

文档序号:1085926 发布日期:2020-10-20 浏览:23次 中文

阅读说明:本技术 一种实体按键触控化的矢量网络分析仪 (Vector network analyzer for entity key touch control ) 是由 廖轲 于 2020-06-15 设计创作,主要内容包括:本发明提供一种实体按键触控化的矢量网络分析仪,所述矢量网络分析仪采用全屏化触控屏,所述全屏化触控屏的触控区域独立设置于该全屏化触控屏的右侧,该触控区域的实现通过发送键盘按钮事件触发模拟键盘API函数Keybd_event()来触发键盘值响应事件,或通过服务端、接收端和发送端之间的数据传输实现触控按键的非键盘值响应事件。本发明能够实现矢量网络分析仪的物理按键触控化,通过设置发送按键的虚拟键值就能够满足一个按钮实现多个功能的需求,减少了用户在界面上设计的负担;在此基础上,触控按键面板根据需要可以显示或者隐藏,实现了更加人性化的设计,同时也能够使得相同尺寸的面板更加灵活地适用于不同的需求。(The invention provides a vector network analyzer for entity key touch control, which adopts a full-screen touch screen, wherein a touch area of the full-screen touch screen is independently arranged on the right side of the full-screen touch screen, and the touch area triggers a keyboard value response event by sending a keyboard button event to trigger an analog keyboard API function Keybd _ event (), or realizes a non-keyboard value response event of a touch key through data transmission among a service end, a receiving end and a sending end. The invention can realize the touch control of the physical keys of the vector network analyzer, can meet the requirement of realizing a plurality of functions by one button by setting the virtual key value of the sending key, and reduces the design burden of a user on an interface; on the basis, the touch key panel can be displayed or hidden according to needs, so that more humanized design is realized, and meanwhile, the panels with the same size can be more flexibly suitable for different requirements.)

1. A vector network analyzer for entity key touch control is characterized in that a full-screen touch screen is adopted by the vector network analyzer, a touch area of the full-screen touch screen is independently arranged on the right side of the full-screen touch screen, and the touch area triggers a keyboard value response event by sending a keyboard button event to trigger an analog keyboard API function Keybd _ event (), or realizes a non-keyboard value response event of a touch key through data transmission among a service end, a receiving end and a sending end.

2. The physical key touch vector network analyzer of claim 1, wherein the sending of the keyboard button event trigger simulation keyboard API function Keybd _ event () procedure includes any one or more of a virtual key value, a scan code parameter, and an option flag parameter of the sending key.

3. The physical key touch vector network analyzer according to claim 2, wherein in the virtual key values of the keys, the virtual key value of the enter key is vk _ return, and the virtual key value of the tab key is vk _ tab; the scan code parameter is replaced by 0; in the option flag parameter, if keydown is touched, the option flag is set to 0, and if KEYUP is touched, the option flag is set to KEYEVENTF _ KEYUP.

4. The physical key touch vector network analyzer of claim 2, wherein the simulation buttons are implemented via a simulation keyboard API provided by Windows, and different buttons transmit different signalsasciiAnd code, simulating the triggering of any button event on the corresponding keyboard according to the requirement.

5. The entity key touch vector network analyzer according to any one of claims 1 to 4, wherein in the process of realizing a non-keyboard value response event of a touch key through data transmission among a server, a receiver and a sender, the server is responsible for managing a registration event, receiving a message sent by the sender, and distributing the message to all receivers registered with the event according to an event name included in the sent message; the receiving end registers an event to the server end, receives a message sent by the server end after the registration is finished, and finishes corresponding event processing; the sending end is used for sending a message with an event name.

6. The entity key touch vector network analyzer of claim 5, wherein the server is only responsible for the existence of registered event management and callback functions, and after receiving the message from the sender, the server distributes the message with the event name to all corresponding receivers through the callback functions, and the server, the receivers and the sender process the event in the same EXE software.

7. The entity key touch vector network analyzer according to claim 5, wherein the server is configured to implement registration event management, deregistration event and message processing, and in the registration event management, the server is configured to place the registration event and the callback function sent from the receiver into a local management queue for storage and management, and to provide query at any time; in the de-registration event, the server is used for removing the de-registration event and the callback function sent by the receiving end from a local management queue; in the message processing, the server is configured to find a corresponding callback function from a message sent by the sender by using an event name, and then transfer a corresponding parameter to a corresponding function of the receiver by using the callback function, where the receiver performs corresponding processing after receiving the event.

8. The physical key touch vector network analyzer of claim 7, wherein when the server receives multiple messages from the sender at the same time, queuing management processing is implemented through a local cache.

9. The physical key touch vector network analyzer according to any one of claims 1 to 4, wherein the touch key panel in the touch area sets the height or width of the control of the touch key to 0 when receiving the hiding instruction; and when a recovery instruction is received, setting the height or width of the control of the touch key to be an actual value.

10. The physical key touchable vector network analyzer according to any one of claims 1 to 4, wherein, upon receiving a hiding instruction, the touch key panel in the touch area sets Visability = Collapsed in the simulated keyboard API function Keybd _ event (); upon receiving the resume instruction, Visibility = Visible is set in the emulated keyboard API function Keybd _ event ().

Technical Field

The invention relates to a vector network analyzer, in particular to a vector network analyzer with an entity key touch function.

Background

The physical key is also called a physical key, and the physical key is a key which has a solid body and needs to be pressed; for example, the buttons of the panel of the vector network analyzer are basically physical keys.

The vector network analyzers in the market at present are basically a display and a physical key area: because of the limitation of the size of the instrument, a display for a user to check and edit is smaller, the user is more laboursome to observe the change of the graph, and the operation on the graph is inconvenient; because the graphic display area is relatively small, the whole graphic display is smaller, because the graphic display is smaller, a user needs to pay more attention to carefully observe the trace change on the graphic, and the user is difficult to drag marks and other operations on the interface. In the prior art, the screen can be enlarged in a remote login mode through a computer, but the operation is inconvenient.

Disclosure of Invention

The invention aims to solve the technical problem of providing a vector network analyzer which can realize the full-screen of the vector network analyzer and realize touch design by combining a vector network analysis environment.

In view of the above, the present invention provides a vector network analyzer with physical key touch, wherein the vector network analyzer employs a full-screen touch screen, a touch area of the full-screen touch screen is independently disposed on the right side of the full-screen touch screen, and the touch area triggers a simulated keyboard API function Keybd _ event () keyboard value response event by sending a keyboard button event, or realizes a non-keyboard value response event of a touch key by data transmission among a server, a receiver and a sender.

A further improvement of the present invention is that sending a keyboard button event triggers the emulation of any one or more of the virtual key value, scan code parameter, and option flag parameter of the send key in the keyboard API function Keybd _ event () procedure.

The invention has the further improvement that in the virtual key values of the keys, the virtual key value of the enter key is vk _ return, and the virtual key value of the tab key is vk _ tab; the scan code parameter is replaced by 0; in the option flag parameter, if keydown is touched, the option flag is set to 0, and if KEYUP is touched, the option flag is set to KEYEVENTF _ KEYUP.

A further improvement of the present invention is that the simulated buttons are implemented via a simulated keyboard API provided by Windows, without the need for a simulation buttonSend a difference with the same buttonasciiAnd code, simulating the triggering of any button event on the corresponding keyboard according to the requirement.

The invention has the further improvement that in the process of realizing the non-keyboard value response event of the touch key through data transmission among the server, the receiving end and the sending end, the server is used for managing the registration event, receiving the message sent by the sending end and distributing the message to all the receiving ends registered with the event according to the event name contained in the sent message; the receiving end registers an event to the server end, receives a message sent by the server end after the registration is finished, and finishes corresponding event processing; the sending end is used for sending a message with an event name.

The invention has the further improvement that the server is only responsible for the existence of the registered event management and callback function, after receiving the message of the sending end, the message with the event name is distributed to all corresponding receiving ends through the callback function, and the server, the receiving ends and the sending end process the event in the same EXE software.

The further improvement of the invention is that the server is used for realizing the management of the registration event, the cancellation of the registration event and the message processing, and in the management of the registration event, the server is used for placing the registration event and the call-back function sent by the receiving end into a local management queue for storage and management and providing query at any time; in the de-registration event, the server is used for removing the de-registration event and the callback function sent by the receiving end from a local management queue; in the message processing, the server is configured to find a corresponding callback function from a message sent by the sender by using an event name, and then transfer a corresponding parameter to a corresponding function of the receiver by using the callback function, where the receiver performs corresponding processing after receiving the event.

The invention is further improved in that when the server receives a plurality of messages of the sending end at the same time, the queuing management processing is realized through the local cache.

The further improvement of the invention is that the height or width of the control of the touch key is set to 0 when the touch key panel in the touch area receives the hiding instruction; and when a recovery instruction is received, setting the height or width of the control of the touch key to be an actual value.

The invention is further improved in that, when a hidden instruction is received, the touch key panel in the touch area sets visual = Collapsed in the simulation keyboard API function Keybd _ event (); upon receiving the resume instruction, Visibility = Visible is set in the emulated keyboard API function Keybd _ event ().

Compared with the prior art, the invention has the beneficial effects that: the touch control of the physical keys of the vector network analyzer can be realized, the requirement that one button realizes multiple functions can be met by setting the virtual key values of the sending keys, and the design burden of a user on an interface is reduced; on this basis, touch key panel can show or hide as required, has realized more humanized design, and convenience of customers 'operation and use also can make the same size's panel be applicable to different demands more nimble during, the operation of being convenient for.

Drawings

Fig. 1 is a schematic structural diagram of a full-screen touch screen according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a messaging mechanism of an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a hidden touch key panel according to an embodiment of the invention.

Detailed Description

Preferred embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

As shown in fig. 1, this example provides a vector network analyzer with physical key touch, where the vector network analyzer employs a full-screen touch screen, a touch area of the full-screen touch screen is independently disposed on the right side of the full-screen touch screen, and the touch area triggers a keyboard API function Keybd _ event () keyboard value response event through sending a keyboard button event, or realizes a non-keyboard value response event of a touch key through data transmission among a server, a receiver, and a sender. How to realize the non-keyboard value response event of the touch key through data transmission among the server, the receiving end and the sending end is a technical difficulty of realizing touch control of the vector network analyzer and is also one of key technologies which are not realized by the conventional vector network analyzer.

The embodiment provides the concept of a full-screen vector network analyzer, and ensures that software required to be displayed by a user is displayed on a panel with the same size to the maximum extent. The panel can be full-screen, and then a user can select the key layout, so that the user experience is more personalized and richer.

After the vector network analyzer is full-screen, the physical key area is replaced by the touch keys and arranged on the right side of the full-screen touch screen, so that the display area of the screen is greatly improved. As shown in fig. 1, after the display area of the screen is increased, the software area displayed on the screen in this example is correspondingly increased. The touch key area and other areas of the software are relatively independent, the operations are not affected mutually, and the realization of the touch of the physical key mainly refers to the interaction of a large number of messages among a plurality of different modules, which is divided into the following 2 cases: firstly, a keyboard value response event of a touch key needs to be met; second, the non-keyboard value response event of the touch key is mainly data transmission between modules, which is two difficulties for realizing full screen of the vector network analyzer, and the application environment of the vector network analyzer is not only applicable to simply adding virtual keys.

For the first case, the sending of the keyboard button event trigger simulation keyboard API function Keybd _ event () in this example includes any one or more of a virtual key value of a send key, a scan code parameter, and an option flag parameter. Windows provides a simulated keyboard API function, Keybd _ event (), with which actions of the keyboard can be masked accordingly. The Keybd _ event () function can trigger a key event, i.e. a WM _ KEYDOWN or WM _ KEYUP message is generated.

The simulated keyboard API function Keybd _ event () includes the following parameters: the virtual key value of the enter key is vk _ return, the virtual key value of the tab key is vk _ tab, and commonly used cases can be set and correspond to the key value comparison table of the virtual key values; the scan code parameter is replaced by 0; in the option flag parameters, if keydown is touched, the option flag is set to 0, and if KEYUP is touched, the option flag is set to KEYEVENTF _ KEYUP; other parameters are also set to 0.

The example realizes the simulation button by the simulation keyboard API provided by Windows, and different buttons transmit different signalsasciiAnd code, simulating the triggering of any button event on the corresponding keyboard according to the requirement.

For the case 2, the interaction between the controls of the current interface design is generally realized by delegation, but cannot be completed in the face of relatively complex interaction on a vector network analyzer, such as interaction between multiple controls. For such a complex situation, the present embodiment builds a message processing server, where the receiving end and the sending end are uncertain and can be declared to be used at any place, according to the principle of who declares who receives, as shown in fig. 2.

In the process of realizing the non-keyboard value response event of the touch key through data transmission among the server, the receiving end and the sending end, the server is used for managing the registration event, receiving the message sent by the sending end and distributing the message to all the receiving ends registered with the event according to the event name contained in the sent message; the receiving end registers an event to the server end, receives a message sent by the server end after the registration is finished, and finishes corresponding event processing; the sending end is used for sending a message with an event name.

It should be noted that the server in this embodiment is only responsible for the existence of the registered event management and callback function, and after receiving the message from the sender, the message with the event name is distributed to all corresponding receivers through the callback function, and the server, the receivers and the sender process the event in the same EXE software, so that network communication is not involved.

The server is used for realizing registration event management (Register), UnRegister event (Unregister) and message processing (SendMessage), wherein in the registration event management (Register), the server is used for placing the registration event and the callback function sent by the receiving terminal into a local management queue for storage and management and providing query at any time; in the UnRegister event (Unregister), the server is used for removing the UnRegister event and the callback function sent by the receiving end from a local management queue; in the message processing (SendMessage), the server is configured to find a corresponding callback function from a message sent by the sending end by an event name, and then transmit a corresponding parameter to a corresponding function of the receiving end by the callback function, where the receiving end performs corresponding processing after receiving the event. And when the server side receives a plurality of messages of the sending end at the same time, queuing management processing is realized through local cache.

Finally, the previous physical keys can be designed into relatively independent controls according to actual needs, and when the user needs to operate, the controls are called to be displayed for the user to operate and use; when input is not required, the touch key area can be hidden, as shown in fig. 3.

As shown in fig. 3, in this embodiment, a fixed physical button on a panel of a conventional network vector analyzer is designed to be implemented as a control on software, and all required touch buttons are placed on the control, and the control is hidden when no operation is required and implemented by the following two schemes:

firstly, when a touch key panel in the touch area receives a hiding instruction, the height or width of a control of the touch key is set to be 0; and when a recovery instruction is received, setting the height or width of the control of the touch key to be an actual value.

Secondly, when a hidden instruction is received, the touch key panel in the touch area sets visual = Collapsed in the simulated keyboard API function Keybd _ event (); upon receiving the resume instruction, Visibility = Visible is set in the emulated keyboard API function Keybd _ event ().

Therefore, the graphic operation area can be displayed to the user to the greatest extent, and the user can observe the data change on the graphic more easily; the operation is easier and more free on the screen far larger than before. After the touch key panel is designed into a control which can be hidden, other functions required by a user can be designed on the touch key panel, and the user can freely switch and display according to needs, so that the touch key panel is greatly convenient for the user to operate, and meanwhile, the experience value of the user is also improved.

In summary, the present embodiment can implement the physical key touch control of the vector network analyzer, and can meet the requirement of implementing multiple functions by one button by setting the virtual key value of the sending key, thereby reducing the burden of the user on the design of the interface; on this basis, touch key panel can show or hide as required, has realized more humanized design, and convenience of customers 'operation and use also can make the same size's panel be applicable to different demands more nimble during, the operation of being convenient for.

The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:占空比检测电路及占空比检测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!