CN102185601A - Keystroke function realizing method and device for hand-held frequency spectrograph - Google Patents

Keystroke function realizing method and device for hand-held frequency spectrograph Download PDF

Info

Publication number
CN102185601A
CN102185601A CN2011100373662A CN201110037366A CN102185601A CN 102185601 A CN102185601 A CN 102185601A CN 2011100373662 A CN2011100373662 A CN 2011100373662A CN 201110037366 A CN201110037366 A CN 201110037366A CN 102185601 A CN102185601 A CN 102185601A
Authority
CN
China
Prior art keywords
button
function
key
numerical value
type
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
Application number
CN2011100373662A
Other languages
Chinese (zh)
Other versions
CN102185601B (en
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.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control Technology Co Ltd
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 Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN 201110037366 priority Critical patent/CN102185601B/en
Publication of CN102185601A publication Critical patent/CN102185601A/en
Application granted granted Critical
Publication of CN102185601B publication Critical patent/CN102185601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a keystroke function realizing method and device for a hand-held frequency spectrograph. A keystroke operation panel, a main processing module and a secondary processing module seen by a user commonly form a uniform interface message dispensing mode from top to bottom. By adopting the technical scheme, when the function extension and keystroke adjustment are carried out on a main function keystroke or a sub-function selection keystroke, all text contents of the keystroke information can be modified by one step, other modifications are not needed, therefore, the workload of code debugging and system invoking can be reduced effectively; the requirement on the physical memory can be reduced; the requirements on complex design degree and cost of the hardware can be reduced, the reliability of the system can also be improved, thus being beneficial to adjusting and extending the functions of the system. The method has better transportability and is easy to debug, and the batch production capability of the frequency spectrograph or instruments with similar functions can be improved effectively.

Description

A kind of keypress function implementation method and device of hand-hold type frequency spectrograph
Technical field
The present invention relates to the frequency spectrograph technical field, relate in particular to a kind of keypress function implementation method and device of hand-hold type frequency spectrograph.
Background technology
The hand-hold type frequency spectrograph has that volume is little, and button is few, the characteristics that function is many, and along with the increase of test request, hand-hold type frequency spectrograph supple-virtuosity to be processed can be growing trend.And the physical function button of hand-hold type frequency spectrograph does not generally exceed 20, keypress function under the actual multilevel menu that uses has reached nearly 300, and do not comprise the measurement function of expansion and potential application function as yet, therefore have the situation of button multiplexing under the multilevel menu.This demonstration to button, execution and further exploitation propose higher requirement.Use which kind of keypress function implementation method, effectively simplify the complexity of hand-hold type frequency spectrograph keypress function design, reduce the code debugging workload, reduce taking physical memory, improve functional expansionary, become the major issue that those skilled in the art need solve.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of keypress function implementation method and device of hand-hold type frequency spectrograph are provided, effectively simplify the complexity of hand-hold type frequency spectrograph keypress function design, reduce the code debugging workload, reduce taking physical memory, improve functional expansionary.
The technical solution used in the present invention is, the keypress function implementation method of described hand-hold type frequency spectrograph, and described hand-hold type frequency spectrograph button operation panel is provided with function of tonic chord button, subfunction selection key, digital keys and direction navigation keys, and this method comprises:
Step 1, set up the key information of function of tonic chord button and subfunction selection key, be kept in the two stage treatment module with the form of data structure; Described two stage treatment module is corresponding one by one with described function of tonic chord button;
Step 2, when function of tonic chord button is pressed, push-button type that main processing block will be parsed by the key assignments of described function of tonic chord button and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, the two stage treatment module is searched the key information of described function of tonic chord button according to push-button type and parameter, carries out key response according to key information again;
Step 3, under a certain function of tonic chord button, when group function selecting button is pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, the two stage treatment module is searched the key information of the button that is pressed according to push-button type and parameter, carries out key response according to key information again;
Step 4, under a certain subfunction selection key, when digital keys or direction navigation keys are pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, and the two stage treatment module is carried out key response according to the key information of push-button type and parameter and described subfunction selection key.
The present invention also proposes a kind of keypress function implement device of hand-hold type frequency spectrograph, and described hand-hold type frequency spectrograph button operation panel is provided with function of tonic chord button, subfunction selection key, digital keys and direction navigation keys, it is characterized in that this device comprises:
Key information is set up module, is used for setting up with the form of data structure the key information of function of tonic chord button and subfunction selection key, is kept in the two stage treatment module; Described two stage treatment module is corresponding one by one with described function of tonic chord button;
Main processing block is used for when function of tonic chord button is pressed, and push-button type that will be parsed by the key assignments of described function of tonic chord button and parameter pass to the two stage treatment module of described function of tonic chord button correspondence; Under a certain function of tonic chord button, when group function selecting button is pressed, the two stage treatment module that push-button type that the key assignments of the button that is pressed is parsed and parameter pass to described function of tonic chord button correspondence; Under a certain subfunction selection key, when digital keys or direction navigation keys were pressed, the push-button type that the key assignments of the button that is pressed is parsed passed to the function of tonic chord button corresponding two stage treatment module related with described subfunction selection key with parameter;
The two stage treatment module, the key information that is used for the push-button type sent according to main processing block and parameter and relevant function of tonic chord button or subfunction selection key is carried out key response.
Adopt technique scheme, the present invention has following advantage at least:
The keypress function implementation method and the device of hand-hold type frequency spectrograph of the present invention, the button operation panel that the user sees, main processing block and two stage treatment module form top-down unified interface message distribution mode jointly.Adopt technical scheme of the present invention, when function of tonic chord button or subfunction selection key being carried out function expansion and button adjustment, only need every content of text of disposable modification key information, need not to do other modifications, can effectively reduce the workload of code debugging and system call, reduce demand, not only can reduce requirement hardware designs complexity and cost to physical memory, also system reliability be can improve, systemic-function adjustment and expansion are beneficial to.This method has characteristics portable preferably and that be easy to debug, will effectively improve frequency spectrograph or have batch production capacity of similar functions instrument.
Description of drawings
Fig. 1 is a hand-hold type frequency spectrograph physical button structural representation;
Fig. 2 is that the keypress function implement device of hand-hold type frequency spectrograph of the present invention is formed schematic diagram;
Fig. 3 is the automatic flow for displaying figure of button of the present invention;
Fig. 4 is the present invention first function realization flow figure;
Menu when Fig. 5 presses " scanning " function of tonic chord button for the user shows the situation schematic diagram;
Fig. 6 shows the situation schematic diagram for the user presses the menu of first subfunction selection key when " sweep time " when the menu show state of Fig. 5;
Menu when Fig. 7 presses numerical value button " 1 " for the user when the menu show state of Fig. 6 shows the situation schematic diagram;
Fig. 8 shows the situation schematic diagram for the user presses direction navigation right button when the menu show state of Fig. 6 menu.
Embodiment
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, the present invention is described in detail as after.
Introduce existing hand-hold type frequency spectrograph physical button structure earlier, as shown in Figure 1, comprise 10 function of tonic chord buttons, 7 sub-function selecting buttons, digital keys and direction navigation keys on the button operation panel that the user uses.Wherein 10 function of tonic chord buttons comprise frequency marking, track, measurement, scanning, frequency, sweep wide, amplitude, bandwidth, preset and system etc.7 sub-function selecting buttons are used for the subfunction selection under each function of tonic chord or have the unit under the digital input condition to select.The direction navigation keys is used for key associated numerical value is carried out the adjustment of stepping, such as: in the mode of direction navigation keys, the increase and decrease numerical value of stepping.
First embodiment of the invention, a kind of keypress function implement device of hand-hold type frequency spectrograph as shown in Figure 2, comprises following part:
1) key information is set up module
Form with data structure is the key information of setting up of function of tonic chord button and subfunction selection key, is kept in the two stage treatment module.The two stage treatment module is corresponding one by one with function of tonic chord button.Key information comprises: the attribute of key-press status, button ID label, button title, button, numerical value sign, key associated numerical value, state explicit identification, state displaying contents, Previous Menu inlet, menu at the corresponding levels inlet and subordinate's menu inlet.Wherein, button ID label is the corresponding numbering of concrete operations with each function of tonic chord button or subfunction selection key, the corresponding different button ID label of subfunction selection key operation under the different situations, such as: under same function of tonic chord button, pressing different subfunction selection keys all has different button ID labels; Under different function of tonic chord buttons, the identical subfunction selection key of pressing also all has different button ID labels.Each button ID label has other corresponding with it key informations.
The attribute of button comprises: frequency, level, relative level, bandwidth, time and plain text show.Because function of tonic chord button has only unique menu inlet, be placed in its menu inlet at the corresponding levels, the effect of pressing function of tonic chord button has in fact just provided menu inlet at the corresponding levels in the key information of subfunction selection key.
2) main processing block
When function of tonic chord button was pressed, push-button type that main processing block will be parsed by the key assignments of this function of tonic chord button and parameter passed to the two stage treatment module of described function of tonic chord button correspondence.
Under a certain function of tonic chord button, when group function selecting button is pressed, the main processing block two stage treatment module that push-button type that the key assignments of button parses and parameter pass to this function of tonic chord button correspondence that will be pressed.
Under a certain subfunction selection key, when digital keys or direction navigation keys were pressed, the main processing block push-button type that the key assignments of button parses that will be pressed passed to the function of tonic chord button corresponding two stage treatment module related with this subfunction selection key with parameter.
In the present invention, main processing block is as the unique input interface that links to each other with user interface, when current button is pressed, hardware driving passes to main processing block with the form of main message with this operation with the key assignments of button, main processing block is resolved the key assignments of button, because main processing block is preserved function of tonic chord button, the subfunction selection key, the corresponding relation of digital keys and direction navigation keys and key assignments, such as, the key assignments of function of tonic chord button is 1-10, the key assignments of subfunction selection key is 11-17, the key assignments of digital keys is 18-28, and the key assignments of direction navigation keys is 29-32.When the key assignments that gets access to user key-press operation from hardware driving when main processing block is 11, just know that according to corresponding relation first subfunction button has been pressed.So main processing block can tentatively obtain push-button type and parameter by button is resolved, push-button type comprises: menu display type, subfunction are selected type, numerical value input type, unit input type and navigation input type, because it is that multiplexing subfunction selection key is realized that subfunction is selected type and this button of two kinds of unit input type, it is that subfunction is selected type that main processing block can only tentatively be judged this button, follow-uply also will further judge the whether unit's of being actually input type of this button by the two stage treatment module.
The current button of parametric representation is which button in a certain type, is 11 to be that subfunction is selected first subfunction button in the button of type such as: key assignments.
Because it specifically is which function of tonic chord button is pressed that the key assignments of button can reflect, and two stage treatment module and function of tonic chord button are corresponding one by one, so main processing block also will call corresponding two stage treatment module according to the key assignments of current button, and this push-button type and parameter passed to the two stage treatment module with the form of secondary message.When numerical value input button was pressed, the parameter of button was the numerical value of input.
3) two stage treatment module
According to the setting of function of tonic chord button, set up frequency marking, track, measurement, scanning, frequency respectively, sweep wide, amplitude, bandwidth, preset the two stage treatment module of totally 10 functions with system.The two stage treatment module can find the relevant function of tonic chord button or the key information of subfunction selection key according to push-button type and parameter.
The push-button type that the two stage treatment module is sent according to main processing block and the key information of parameter and relevant function of tonic chord button or subfunction selection key are carried out key response.
Each two stage treatment module further comprises again:
Multiplexing button judging treatmenting module, be used to write down each push-button type, when current button is subfunction selection type, judge whether last button is the numerical value input type, if, show that then current button is actual in the unit input type, the unit input processing module that calls is selected processing module otherwise call subfunction.Because unit input type button and 7 sub-function selecting button multiplexings, its corresponding key assignments also is 11-17, so the emphasis of distinguishing is whether the last time has digital keys to be pressed.
Main menu shows processing module, and is corresponding with the menu display type, is used to receive the input of 10 function of tonic chord buttons on user's guidance panel, and the main menu of function of tonic chord button correspondence is shown.
Subfunction is selected processing module, selects type corresponding with subfunction, is used to receive the input of 7 sub-function selecting buttons on user's guidance panel, determines and show the menu of current subfunction selection key correspondence.
The numerical value input processing module, corresponding with the numerical value input type, be used to receive the input of digital keys, identify under the effective situation at the numerical value of the subfunction selection key related with digital keys, the numerical value of preserving input also shows selective numerical value unit.
The unit input processing module, corresponding with the unit input type, be used to receive the input of subfunction selection key, identify under the effective situation at its numerical value, determine numerical value unit according to push-button type and parameter that main processing block sends, the numerical value of preserving when importing based on numerical value upgrades the key associated numerical value of its place button and shows.For example: when being in the frequency menu, the user has write numerical value 10 by the numerical value input processing module, selects kHz then from alternative numerical value unit, and the backstage is updated to 10000Hz with key associated numerical value so, and the numerical value of input has had physical meaning before making it.
The navigation input processing module, corresponding with the navigation input type, be used for the input of receive direction navigation keys, numerical value at the subfunction selection key related with described direction navigation keys identifies under the effective situation, the push-button type of the direction navigation keys that sends according to main processing block and parameter determine that numerical value adjusts mode, upgrade the key associated numerical value of described subfunction selection key.For example: the key associated numerical value of the subfunction selection key related with described direction navigation keys is 10 originally, the step value of the direction navigation keys that sets in advance is 1, can carry out stepping by the direction navigation keys is 1 increase progressively, when pressing direction navigation right button so, the backstage is updated to 11 with key associated numerical value.
The second embodiment of the present invention, a kind of keypress function implementation method of hand-hold type frequency spectrograph, hand-hold type frequency spectrograph button operation panel is provided with function of tonic chord button, subfunction selection key, digital keys and direction navigation keys, specifically comprises the steps:
Step 1, set up the key information of function of tonic chord button and subfunction selection key, be kept in the two stage treatment module with the form of data structure.
Key information comprises: the attribute of key-press status, button ID label, button title, button, numerical value sign, key associated numerical value, state explicit identification, state displaying contents, Previous Menu inlet, menu at the corresponding levels inlet and subordinate's menu inlet.The attribute of button comprises: frequency, level, relative level, bandwidth, time and plain text show.Function of tonic chord button on the hand-hold type frequency spectrograph button operation panel is respectively to two stage treatment module that should function of tonic chord button.
Step 2, when function of tonic chord button is pressed, push-button type that main processing block will be parsed by the key assignments of described function of tonic chord button and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, the two stage treatment module is searched the key information of described function of tonic chord button according to push-button type and parameter, carries out key response according to key information again.
Push-button type comprises: menu display type, subfunction are selected type, numerical value input type, unit input type and navigation input type, the current button of parametric representation is which button in a certain type, is 11 to be that subfunction is selected first subfunction button in the button of type such as: key assignments.When numerical value input button was pressed, the parameter of button was the numerical value of input.
The two stage treatment module is carried out key response according to the key information of described function of tonic chord button, and detailed process comprises: according to the menu inlet at the corresponding levels of function of tonic chord button, successively all subfunction selection keys are carried out the automatic flow for displaying of button.
The automatic flow for displaying of button as shown in Figure 3, comprising:
Steps A 1 judges whether key-press status is effective, if, jump procedure A2 then, otherwise the displaying contents that described button is set is for empty, and flow process finishes;
Steps A 2 judges whether the state explicit identification is effective, if, show state displaying contents then, jump procedure A3, otherwise direct jump procedure A3;
Steps A 3 judges whether the numerical value sign is effective, if, jump procedure A4, otherwise display button title;
Steps A 4 shows key associated numerical value according to the attribute of button, and the display button title.
Step 3, under a certain function of tonic chord button, when group function selecting button is pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of function of tonic chord button correspondence, the two stage treatment module is searched the key information of the button that is pressed according to push-button type and parameter, carries out key response according to key information again;
The two stage treatment module is carried out the process of key response, comprises successively: multiplexing function is judged flow process, the first function realization flow, and successively all subfunction selection keys are carried out the automatic flow for displaying of buttons according to the menu inlet of record, wherein:
Multiplexing function is judged flow process, specifically comprises:
Judge whether last button is the numerical value input type, if, then carry out key response according to the key information of unit input type and the subfunction selection key of pressing, otherwise the redirect first function realization flow;
Further, carry out the process of key response, comprise successively: the second function realization flow and the automatic flow for displaying of button according to the key information of unit input type and the subfunction selection key pressed;
The second function realization flow specifically comprises: the numerical value of the subfunction selection key of pressing in step 3 identifies under the effective situation, determine numerical value unit according to push-button type and parameter that main processing block sends, the numerical value of preserving when importing based on numerical value upgrades the key associated numerical value of its place button.
Further, the first function realization flow specifically comprises:
Step B1, the button ID label of the described subfunction selection key that record is pressed;
Step B2 judges whether the state explicit identification of the described subfunction selection key of pressing is effective, if, then according to described button ID label updating state displaying contents, jump procedure B3, otherwise direct jump procedure B3;
Step B3 judges whether the numerical value sign of the described subfunction selection key of pressing is effective, if the record of then keeping button ID label is constant, writes down menu inlet at the corresponding levels, and this flow process finishes, otherwise jump procedure B4;
Step B4 judges whether subordinate's menu inlet of the described subfunction selection key of pressing is effective, if, then writing down subordinate's menu inlet, and write down the button ID label of described subfunction selection key in subordinate's menu, flow process finishes, otherwise jump procedure B5;
Step B5, whether the Previous Menu inlet of judging the described subfunction selection key of pressing is effective, if, then write down the Previous Menu inlet, and write down the button ID label of described subfunction selection key in Previous Menu, otherwise the record of keeping button ID label is constant, writes down the content of menu inlet at the corresponding levels.
Step 4, under a certain subfunction selection key, when digital keys or direction navigation keys are pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, and the two stage treatment module is carried out key response according to the key information of push-button type and parameter and current subfunction selection key.
1) when digital keys is pressed, the process that the two stage treatment module is carried out key response according to the key information of push-button type and parameter and current subfunction selection key comprises: numerical value is preserved flow process, and this flow process comprises:
The numerical value of current subfunction selection key identifies under the effective situation in step 4, preserve by the digital keys input numerical value and according to the attribute of current subfunction selection key, show selective numerical value unit.Specifically can numerical value unit be presented on the subfunction selection key successively by the mode of button flow for displaying display button title.
2) when the direction navigation keys is pressed, the two stage treatment module is carried out key response according to the key information of push-button type and parameter and described subfunction selection key, comprises successively: the 3rd function realization flow and the automatic flow for displaying of button, wherein:
The 3rd function realization flow specifically comprises: the numerical value of current subfunction selection key identifies under the effective situation in step 4, the push-button type of the direction navigation keys that sends according to main processing block and parameter determine that numerical value adjusts mode, upgrade the key associated numerical value of current subfunction selection key.
The present invention is based on hand-hold type frequency spectrograph structure, propose a kind of and the corresponding data classification method of keypress function attribute, and form top-down unified interface message distribution mode.Adopt this kind method, can when making up new function of tonic chord button, follow unified key information text initial method, simple and clear, make the button menu drop to minimum to the memory requirement of hardware; Function of tonic chord button or subfunction selection key are being carried out function expansion or button when adjusting demand, only needing to revise the initialization content of key information text, need not to do other modifications; From top layer application person, simplified logical relation complicated between button, calling interface is simple.Reach the raising system reliability, reduced the purpose of size of code and debugging work load.Its coding based on the c language has higher portability, can well be employed in multiple development platform.
The response after pressing with " scanning " function of tonic chord button below and the response of this main menu lower part subfunction selection key are example, introduce the application's realization effect:
If unique menu inlet that " scanning " function of tonic chord button provides is sweep1, menu inlet at the corresponding levels as all subfunction selection keys, the first subfunction selection key under this main menu is " sweep time " button, can give tacit consent to the display frequency main menu during frequency spectrograph opening initialization.
Operation 1: the user presses " scanning " function of tonic chord button
The two stage treatment module is carried out main menu and is shown branch, menu inlet then at the corresponding levels is sweep1, after calling the automatic flow for displaying of button, one row, 7 sub-function selecting button display menu inlets in the left side are the menu at the corresponding levels of sweep1, because can carry out page turning to menu by bottom sub-function selecting button, the right one row are subordinate's menu inlet content displayed of 7 sub-function selecting buttons, as shown in Figure 5.If follow-up for the right one row, current state is exactly a menu inlet content displayed at the corresponding levels by after pressing bottom sub-function selecting button and carrying out page turning, the left side one row then are Previous Menu inlet content displayed.
Operation 2: the user presses first subfunction selection key " sweep time "
The two stage treatment module is carried out subfunction and is selected branch, the button ID label of " sweep time " button is current button ID label, the state displaying contents switches to " auto-manual * " by " * is manual automatically ", the menu inlet still is sweep1, after carrying out the automatic flow for displaying of button, then menu shows situation as shown in Figure 6, and when pressing this button, change has taken place the state displaying contents.
Operation 3: if the user presses numerical value button " 1 " after operation 2
Two stage treatment module execution numerical value input branch preserves and in interface display numerical value " 1 ", then seven sub-function selecting buttons are shown as selective numerical value unit, as shown in Figure 7.
Operation 4: if the user presses second sub-function selecting button on the basis of operation 3
Input branch of two stage treatment module executable unit, then second unit " ms " selected in expression, and in conjunction with preservation numerical value before, then the key associated numerical value of " sweep time " is updated to 1ms, and the backstage saves as 0.001s, and sweep time, numerical value was updated.Simultaneously the menu inlet is sweep1 still, carry out the automatic flow for displaying of button after, then menu shows that situation and Fig. 6 are roughly the same, is that key associated numerical value 4ms with the first subfunction selection key changes 1ms into and shown.
Operation 5: and if then the user presses direction navigation (right side) button after operation 2
The two stage treatment module is carried out navigation input branch, the personnel that write define according to demand by function code, and the step value of supposing sweep time is 1ms, and then the key associated numerical value of " sweep time " is updated to 5ms, the backstage saves as 0.005s, and sweep time, numerical value was updated.The menu inlet still is sweep1 simultaneously, and after the automatic flow for displaying of execution button, then menu shows as shown in Figure 8.
By the explanation of embodiment, should be to reach technological means and the effect that predetermined purpose takes to be able to more deeply and concrete understanding to the present invention, yet appended diagram only provide with reference to the usefulness of explanation, be not to be used for the present invention is limited.

Claims (10)

1. the keypress function implementation method of a hand-hold type frequency spectrograph, described hand-hold type frequency spectrograph button operation panel is provided with function of tonic chord button, subfunction selection key, digital keys and direction navigation keys, it is characterized in that, comprising:
Step 1, set up the key information of function of tonic chord button and subfunction selection key, be kept in the two stage treatment module with the form of data structure; Described two stage treatment module is corresponding one by one with described function of tonic chord button;
Step 2, when function of tonic chord button is pressed, push-button type that main processing block will be parsed by the key assignments of described function of tonic chord button and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, the two stage treatment module is searched the key information of described function of tonic chord button according to push-button type and parameter, carries out key response according to key information again;
Step 3, under a certain function of tonic chord button, when group function selecting button is pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, the two stage treatment module is searched the key information of the button that is pressed according to push-button type and parameter, carries out key response according to key information again;
Step 4, under a certain subfunction selection key, when digital keys or direction navigation keys are pressed, push-button type that main processing block will be parsed by the key assignments of the button that is pressed in this step and parameter pass to the two stage treatment module of described function of tonic chord button correspondence, and the two stage treatment module is carried out key response according to the key information of push-button type and parameter and described subfunction selection key.
2. according to the keypress function implementation method of the described hand-hold type frequency spectrograph of claim 1, it is characterized in that,
Described key information comprises: the attribute of key-press status, button ID label, button title, button, numerical value sign, key associated numerical value, state explicit identification, state displaying contents, Previous Menu inlet, menu at the corresponding levels inlet and subordinate's menu inlet, and the attribute of described button comprises: frequency, level, relative level, bandwidth, time and plain text show;
Described push-button type comprises: main menu display type, subfunction are selected type, numerical value input type, unit input type and navigation input type.
3. according to the keypress function implementation method of the described hand-hold type frequency spectrograph of claim 2, it is characterized in that, in the step 2, when function of tonic chord button is pressed, the two stage treatment module is carried out key response according to the key information of described function of tonic chord button, detailed process comprises: according to the menu inlet at the corresponding levels of function of tonic chord button, successively all subfunction selection keys are carried out the automatic flow for displaying of button;
The automatic flow for displaying of button comprises:
Steps A 1 judges whether key-press status is effective, if, jump procedure A2 then, otherwise the displaying contents that described button is set is for empty, and flow process finishes;
Steps A 2 judges whether the state explicit identification is effective, if, show state displaying contents then, jump procedure A3, otherwise direct jump procedure A3;
Steps A 3 judges whether the numerical value sign is effective, if, jump procedure A4, otherwise display button title;
Steps A 4 shows key associated numerical value according to the attribute of button, and the display button title.
4. according to the keypress function implementation method of the described hand-hold type frequency spectrograph of claim 2, it is characterized in that, in the step 3, when group function selecting button is pressed, the two stage treatment module selects the key information of type and described subfunction selection key to carry out the process of key response according to described subfunction, comprise successively: multiplexing function is judged flow process, the first function realization flow, and successively all subfunction selection keys are carried out the automatic flow for displaying of buttons according to the menu inlet of record;
Described multiplexing function is judged flow process, specifically comprises:
Judge whether last button is the numerical value input type, if, then carry out key response according to the key information of unit input type and described subfunction selection key, otherwise the redirect first function realization flow;
The described first function realization flow specifically comprises:
Step B1, the button ID label of the described subfunction selection key that record is pressed;
Step B2 judges whether the state explicit identification of the described subfunction selection key of pressing is effective, if, then according to described button ID label updating state displaying contents, jump procedure B3, otherwise direct jump procedure B3;
Step B3 judges whether the numerical value sign of the described subfunction selection key of pressing is effective, if the record of then keeping button ID label is constant, writes down menu inlet at the corresponding levels, and this flow process finishes, otherwise jump procedure B4;
Step B4 judges whether subordinate's menu inlet of the described subfunction selection key of pressing is effective, if, then writing down subordinate's menu inlet, and write down the button ID label of described subfunction selection key in subordinate's menu, flow process finishes, otherwise jump procedure B5;
Step B5, whether the Previous Menu inlet of judging the described subfunction selection key of pressing is effective, if, then write down the Previous Menu inlet, and write down the button ID label of described subfunction selection key in Previous Menu, otherwise the record of keeping button ID label is constant, writes down the content of menu inlet at the corresponding levels.
5. according to the keypress function implementation method of the described hand-hold type frequency spectrograph of claim 4, it is characterized in that, carry out the process of key response according to the key information of unit input type and described subfunction selection key, comprise successively: the second function realization flow and the automatic flow for displaying of button;
The described second function realization flow specifically comprises: the numerical value at the selection key of subfunction described in the step 3 identifies under the effective situation, determine numerical value unit according to push-button type and parameter that main processing block sends, the numerical value of preserving when importing based on numerical value upgrades the key associated numerical value of its place button.
6. according to the keypress function implementation method of claim 2 or 3 or 4 or 5 described hand-hold type frequency spectrographs, it is characterized in that, in the step 4, when digital keys is pressed, the process that the two stage treatment module is carried out key response according to the key information of push-button type and parameter and described subfunction selection key comprises: numerical value is preserved flow process, and this flow process comprises:
Numerical value at the selection key of subfunction described in the step 4 identifies under the effective situation, preserve by the digital keys input numerical value and according to the attribute of described subfunction selection key, show selective numerical value unit.
7. according to the keypress function implementation method of claim 2 or 3 or 4 or 5 described hand-hold type frequency spectrographs, it is characterized in that, in the step 4, when the direction navigation keys is pressed, the two stage treatment module is carried out key response according to the key information of push-button type and parameter and described subfunction selection key, comprises successively: the 3rd function realization flow and the automatic flow for displaying of button;
Described the 3rd function realization flow specifically comprises: the numerical value at the selection key of subfunction described in the step 4 identifies under the effective situation, the push-button type of the direction navigation keys that sends according to main processing block and parameter determine that numerical value adjusts mode, upgrade the key associated numerical value of described subfunction selection key.
8. the keypress function implement device of a hand-hold type frequency spectrograph, described hand-hold type frequency spectrograph button operation panel is provided with function of tonic chord button, subfunction selection key, digital keys and direction navigation keys, it is characterized in that this device comprises:
Key information is set up module, is used for setting up with the form of data structure the key information of function of tonic chord button and subfunction selection key, is kept in the two stage treatment module; Described two stage treatment module is corresponding one by one with described function of tonic chord button;
Main processing block is used for when function of tonic chord button is pressed, and push-button type that will be parsed by the key assignments of described function of tonic chord button and parameter pass to the two stage treatment module of described function of tonic chord button correspondence; Under a certain function of tonic chord button, when group function selecting button is pressed, the two stage treatment module that push-button type that the key assignments of the button that is pressed is parsed and parameter pass to described function of tonic chord button correspondence; Under a certain subfunction selection key, when digital keys or direction navigation keys were pressed, the push-button type that the key assignments of the button that is pressed is parsed passed to the function of tonic chord button corresponding two stage treatment module related with described subfunction selection key with parameter;
The two stage treatment module, the key information that is used for the push-button type sent according to main processing block and parameter and relevant function of tonic chord button or subfunction selection key is carried out key response.
9. the keypress function implement device of described according to Claim 8 hand-hold type frequency spectrograph is characterized in that,
Described key information comprises: the attribute of key-press status, button ID label, button title, button, numerical value sign, key associated numerical value, state explicit identification, state displaying contents, Previous Menu inlet, menu at the corresponding levels inlet and subordinate's menu inlet; The attribute of described button comprises: frequency, level, relative level, bandwidth, time and plain text show;
Described push-button type comprises: menu display type, subfunction are selected type, numerical value input type, unit input type and navigation input type.
10. according to the keypress function implement device of the described hand-hold type frequency spectrograph of claim 9, it is characterized in that described two stage treatment module further comprises:
Multiplexing button judging treatmenting module, be used to write down each push-button type, when current button is subfunction selection type, judge whether last button is the numerical value input type, if, show that then current button is the unit input type, the unit input processing module that calls is selected processing module otherwise call subfunction;
Main menu shows processing module, and is corresponding with the menu display type, is used to receive the input of function of tonic chord button, and the main menu of function of tonic chord button correspondence is shown;
Subfunction is selected processing module, selects type corresponding with subfunction, is used to receive the input of subfunction selection key, determines and show the menu of current subfunction button correspondence;
The numerical value input processing module, corresponding with the numerical value input type, be used to receive the input of digital keys, identify under the effective situation at the numerical value of the subfunction selection key related with digital keys, the numerical value of preserving input also shows selective numerical value unit;
The unit input processing module, corresponding with the unit input type, be used to receive the input of subfunction selection key, identify under the effective situation at its numerical value, determine numerical value unit according to push-button type and parameter that main processing block sends, the numerical value of preserving when importing based on numerical value upgrades the key associated numerical value of its place button and shows;
The navigation input processing module, corresponding with the navigation input type, be used for the input of receive direction navigation keys, numerical value at the subfunction selection key related with described direction navigation keys identifies under the effective situation, the push-button type of the direction navigation keys that sends according to main processing block and parameter determine that numerical value adjusts mode, upgrade the key associated numerical value of described subfunction selection key.
CN 201110037366 2011-02-14 2011-02-14 Keystroke function realizing method and device for hand-held frequency spectrograph Active CN102185601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110037366 CN102185601B (en) 2011-02-14 2011-02-14 Keystroke function realizing method and device for hand-held frequency spectrograph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110037366 CN102185601B (en) 2011-02-14 2011-02-14 Keystroke function realizing method and device for hand-held frequency spectrograph

Publications (2)

Publication Number Publication Date
CN102185601A true CN102185601A (en) 2011-09-14
CN102185601B CN102185601B (en) 2013-02-20

Family

ID=44571680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110037366 Active CN102185601B (en) 2011-02-14 2011-02-14 Keystroke function realizing method and device for hand-held frequency spectrograph

Country Status (1)

Country Link
CN (1) CN102185601B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007837A (en) * 2014-05-09 2014-08-27 北京航天发射技术研究所 Keyboard input method of control system display control terminal
CN104317878A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 View-element hierarchical structure, manager and management system for measuring instrument
CN112524652A (en) * 2020-11-30 2021-03-19 云米互联科技(广东)有限公司 Control method of integrated cooker
CN112660040A (en) * 2021-02-01 2021-04-16 地晨环境技术(南京)有限公司 Walking straightness correction method for drilling machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1122534A (en) * 1994-08-29 1996-05-15 株式会社日立制作所 Low distortion switch
US20040108878A1 (en) * 2002-12-06 2004-06-10 Matsushita Electric Industrial Co., Ltd. Duty cycle correction circuit
CN200953546Y (en) * 2006-06-12 2007-09-26 北京希格玛和芯微电子技术有限公司 Pulse sequence generating device
US7439787B2 (en) * 2006-07-27 2008-10-21 Freescale Semiconductor, Inc. Methods and apparatus for a digital pulse width modulator using multiple delay locked loops

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1122534A (en) * 1994-08-29 1996-05-15 株式会社日立制作所 Low distortion switch
US20040108878A1 (en) * 2002-12-06 2004-06-10 Matsushita Electric Industrial Co., Ltd. Duty cycle correction circuit
CN200953546Y (en) * 2006-06-12 2007-09-26 北京希格玛和芯微电子技术有限公司 Pulse sequence generating device
US7439787B2 (en) * 2006-07-27 2008-10-21 Freescale Semiconductor, Inc. Methods and apparatus for a digital pulse width modulator using multiple delay locked loops

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007837A (en) * 2014-05-09 2014-08-27 北京航天发射技术研究所 Keyboard input method of control system display control terminal
CN104317878A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 View-element hierarchical structure, manager and management system for measuring instrument
CN112524652A (en) * 2020-11-30 2021-03-19 云米互联科技(广东)有限公司 Control method of integrated cooker
CN112524652B (en) * 2020-11-30 2022-12-27 云米互联科技(广东)有限公司 Control method of integrated cooker
CN112660040A (en) * 2021-02-01 2021-04-16 地晨环境技术(南京)有限公司 Walking straightness correction method for drilling machine

Also Published As

Publication number Publication date
CN102185601B (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102428429B (en) Searching Method Of A List And Portable Device Using The Same
AU2011296763B2 (en) Mobile terminal and multi-touch based method for controlling list data output for the same
CN101779188B (en) Systems and methods for providing a user interface
US10627903B2 (en) Tactile sensation providing apparatus and method for providing tactile sensation
KR101276502B1 (en) User interface generation device
CN108604152B (en) Unread message prompting method and terminal
CN102455911B (en) Handwriting input and display device and control method
CN101606124A (en) Multi-window managing device and program, storage medium and signal conditioning package
CN103744576A (en) Method and system for achieving operation interfaces of mobile terminal
TWI529600B (en) Input apparatus, input method, and associated computer-readable medium
CN101398717A (en) Display variable keyboard and input method
CN102185601B (en) Keystroke function realizing method and device for hand-held frequency spectrograph
CN105718072B (en) A kind of character input method and mobile terminal
CN106251863A (en) A kind of instruction type speech control system based on smart machine and control method
CN109144356A (en) For controlling the device and method of vehicle part
US7058900B2 (en) Chinese language input system based on graphic form
CN103176742A (en) Application operation guidance method and terminal thereof
CN101706689A (en) Method and device for inputting characters via direction key
CN102981693A (en) Multi-language hand writing input method and device
CN101581973A (en) Portable electronic device and switching method of input modes for same
CN111475091B (en) Method and mobile terminal for helping visually impaired people to score
CN106528099A (en) Method and device for recognizing operation command based on different operation systems
CN110806823A (en) Method and system for dynamically configuring menu of test instrument
CN113807058A (en) Text display method and text display device
CN105739783A (en) Pressure grade setting method

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
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Xin Lixia

Inventor after: Zhao Yanquan

Inventor after: Wang Kai

Inventor after: Liu Jinchuan

Inventor after: Shi Hao

Inventor before: Xin Lixia

Inventor before: Zhao Yanquan

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: XIN LIXIA ZHAO YANQUAN TO: XIN LIXIA ZHAO YANQUAN WANG KAI LIU JINCHUAN SHI HAO