CN102185601B - 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
CN102185601B
CN102185601B CN 201110037366 CN201110037366A CN102185601B CN 102185601 B CN102185601 B CN 102185601B CN 201110037366 CN201110037366 CN 201110037366 CN 201110037366 A CN201110037366 A CN 201110037366A CN 102185601 B CN102185601 B CN 102185601B
Authority
CN
China
Prior art keywords
button
numerical value
key
type
subfunction
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.)
Active
Application number
CN 201110037366
Other languages
Chinese (zh)
Other versions
CN102185601A (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

  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (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 not yet comprise the measurement function of expansion and potential application function, 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 the method comprises:
Step 1, set up the key information of function of tonic chord button and subfunction selection key with the form of data structure, be kept in the two stage treatment module; 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, the 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 two stage treatment module corresponding to described function of tonic chord button, 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 the subfunction selection key is pressed, the 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 two stage treatment module corresponding to described function of tonic chord button, 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, the 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 two stage treatment module corresponding to described function of tonic chord button, 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 the push-button type that will be parsed by the key assignments of described function of tonic chord button and parameter pass to two stage treatment module corresponding to described function of tonic chord button; Under a certain function of tonic chord button, when the subfunction selection key was pressed, push-button type and parameter that the key assignments of the button that is pressed is parsed passed to two stage treatment module corresponding to described function of tonic chord button; 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 two stage treatment module corresponding to function of tonic chord button related with described subfunction selection key with parameter;
The two stage treatment module is carried out key response for the key information of the push-button type of sending according to main processing block and parameter and relevant function of tonic chord button or subfunction selection key.
Adopt technique scheme, the present invention has following advantages at least:
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 pattern jointly.Adopt technical scheme of the present invention, function of tonic chord button or subfunction selection key are being carried out Function Extension and button when adjusting, 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 the demand to physical memory, not only can reduce the requirement to hardware designs complexity and cost, also system reliability be can improve, systemic-function adjustment and expansion are beneficial to.This method has preferably characteristics portable and that be easy to debug, with the Effective Raise frequency spectrograph or have batch production capacity of similar functions instrument.
Description of drawings
Fig. 1 is 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 forms schematic diagram;
Fig. 3 is the automatic flow for displaying figure of button of the present invention;
Fig. 4 is the present invention the 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 first existing hand-hold type frequency spectrograph physical button structure, as shown in Figure 1, comprise 10 function of tonic chord buttons, 7 subfunction selection keys, 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 subfunction selection keys are used for subfunction under each function of tonic chord and select or contractor selection under the digital input condition arranged.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
The key information of setting up take the form of data structure as 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 entrance, menu entrance at the corresponding levels and subordinate's menu entrance.Wherein, button ID label is the numbering corresponding with the concrete operations of each function of tonic chord button or subfunction selection key, the button ID label that subfunction selection key operational correspondence under the different situations is different, 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 only has unique menu entrance, be placed in its menu entrance item at the corresponding levels, the effect of pressing function of tonic chord button has in fact just provided menu entrance at the corresponding levels in the key information of subfunction selection key.
2) main processing block
When function of tonic chord button was pressed, the 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 two stage treatment module corresponding to described function of tonic chord button.
Under a certain function of tonic chord button, when the subfunction selection key was pressed, main processing block push-button type and the parameter that the key assignments of button parses that will be pressed passed to two stage treatment module corresponding to this function of tonic chord button.
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 two stage treatment module corresponding to function of tonic chord button 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 Selective type, numerical value input type, unit input type and navigation input type, because subfunction Selective type and this button of two kinds of unit input type are that multiplexing subfunction selection key is realized, it is the subfunction Selective 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 first subfunction buttons in the button of subfunction Selective type such as: key assignments.
Because the key assignments of button can reflect specifically which function of tonic chord button is pressed, and two stage treatment module and function of tonic chord button are corresponding one by one, so main processing block also will call according to the key assignments of current button corresponding two stage treatment module, and this push-button type and parameter passed to the two stage treatment module with the form of secondary message.When the numerical value input key 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 respectively frequency marking, track, measurement, scanning, frequency, sweep wide, amplitude, bandwidth, preset the two stage treatment module of totally 10 functions with system.The two stage treatment module can find 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 for recording each push-button type, when current button is the subfunction Selective 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 subfunction selection keys are multiplexing, 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 Graphics Processing module, corresponding with the menu display type, be used for receiving the input of 10 function of tonic chord buttons on user's guidance panel, the main menu corresponding to function of tonic chord button shows.
Subfunction is selected processing module, and is corresponding with the subfunction Selective type, is used for receiving the input of 7 subfunction selection keys on user's guidance panel, definite and show menu corresponding to current subfunction selection key.
The numerical value input processing module, corresponding with the numerical value input type, be used for to receive the input of digital keys, identify in 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 for receiving the input of subfunction selection key, identify in 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 inputting 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, then selects kHz from alternative numerical value unit, and the backstage is updated to 10000Hz with key associated numerical value so, and the numerical value that makes it front input has had physical meaning.
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 in 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 so direction navigation right button, 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 with the form of data structure, be kept in the two stage treatment module.
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 entrance, menu entrance at the corresponding levels and subordinate's menu entrance.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, the 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 two stage treatment module corresponding to described function of tonic chord button, 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 Selective 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 first subfunction buttons in the button of subfunction Selective type such as: key assignments.When the numerical value input key 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 entrance 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 the subfunction selection key is pressed, the 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 two stage treatment module corresponding to function of tonic chord button, 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 entrance 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 redirect the first function realization flow;
Further, carry out the process of key response according to the key information of unit input type and the subfunction selection key pressed, comprise successively: the second function realization flow and the automatic flow for displaying of button;
The second function realization flow specifically comprises: the numerical value of the subfunction selection key of pressing in step 3 identifies in 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 inputting 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, records menu entrance at the corresponding levels, and this flow process finishes, otherwise jump procedure B4;
Step B4 judges whether subordinate's menu entrance of the described subfunction selection key of pressing is effective, if, then recording subordinate's menu entrance, and record 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 entrance of judging the described subfunction selection key of pressing is effective, if, then record the Previous Menu entrance, and record the button ID label of described subfunction selection key in Previous Menu, otherwise the record of keeping button ID label is constant, records the content of menu entrance at the corresponding levels.
Step 4, under a certain subfunction selection key, when digital keys or direction navigation keys are pressed, the 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 two stage treatment module corresponding to described function of tonic chord button, 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 in 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 in 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 data classification method a kind of and that the keypress function Attribute Relative is answered, and form top-down unified interface message distribution pattern.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 Extension or button when adjusting demand, only needing to revise the initialization content of key information text, need not to do other modifications; From the 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.
Response after the below presses take " scanning " function of tonic chord button and the response of this main menu bottom molecular function selection key are introduced the application's realization effect as example:
If unique menu entrance that " scanning " function of tonic chord button provides is sweep1, menu entrance 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, then menu entrance at the corresponding levels is sweep1, after calling the automatic flow for displaying of button, 7 subfunction selection keys of the left side one row display menu entrance is the menu at the corresponding levels of sweep1, because can carry out page turning to menu by bottom subfunction selection key, the right one row are contents that subordinate's menu entrance of 7 subfunction selection keys shows, as shown in Figure 5.If follow-up for the right one row, current state is exactly the content that menu entrance at the corresponding levels shows by after pressing bottom subfunction selection key and carrying out page turning, the left side one row then are the contents that the Previous Menu entrance shows.
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 entrance 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 occured 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 subfunction selection keys are shown as selective numerical value unit, as shown in Figure 7.
Operation 4: if the user presses second subfunction selection key 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 entrance 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 writer defines 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 entrance 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, the present invention is limited.

Claims (9)

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 with the form of data structure, be kept in the two stage treatment module; 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, the 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 two stage treatment module corresponding to described function of tonic chord button, 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 the subfunction selection key is pressed, the 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 two stage treatment module corresponding to described function of tonic chord button, 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, the 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 two stage treatment module corresponding to described function of tonic chord button, 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;
Described two stage treatment module further comprises:
Multiplexing button judging treatmenting module, be used for recording each push-button type, when current button is the subfunction Selective 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 Graphics Processing module, corresponding with the menu display type, be used for receiving the input of function of tonic chord button, the main menu corresponding to function of tonic chord button shows;
Subfunction is selected processing module, and is corresponding with the subfunction Selective type, is used for receiving the input of subfunction selection key, definite and show menu corresponding to current subfunction button;
The numerical value input processing module, corresponding with the numerical value input type, be used for to receive the input of digital keys, identify in 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 for receiving the input of subfunction selection key, identify in 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 inputting 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 in 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.
2. the keypress function implementation method of described hand-hold type frequency spectrograph according to claim 1 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 entrance, menu entrance at the corresponding levels and subordinate's menu entrance, 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 Selective type, numerical value input type, unit input type and navigation input type.
3. the keypress function implementation method of described hand-hold type frequency spectrograph according to 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 entrance 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. the keypress function implementation method of described hand-hold type frequency spectrograph according to claim 2, it is characterized in that, in the step 3, when the subfunction selection key is pressed, the two stage treatment module is carried out the process of key response according to the key information of described subfunction Selective type and described subfunction selection key, 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 entrance 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 redirect the first function realization flow;
Described 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, records menu entrance at the corresponding levels, and this flow process finishes, otherwise jump procedure B4;
Step B4 judges whether subordinate's menu entrance of the described subfunction selection key of pressing is effective, if, then recording subordinate's menu entrance, and record 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 entrance of judging the described subfunction selection key of pressing is effective, if, then record the Previous Menu entrance, and record the button ID label of described subfunction selection key in Previous Menu, otherwise the record of keeping button ID label is constant, records the content of menu entrance at the corresponding levels.
5. the keypress function implementation method of described hand-hold type frequency spectrograph according to 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;
Described the second function realization flow specifically comprises: the numerical value at the selection key of subfunction described in the step 3 identifies in 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 inputting based on numerical value upgrades the key associated numerical value of its place button.
6. according to claim 2 or the keypress function implementation method of 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 in 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 claim 2 or the keypress function implementation method of 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 in 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 the push-button type that will be parsed by the key assignments of described function of tonic chord button and parameter pass to two stage treatment module corresponding to described function of tonic chord button; Under a certain function of tonic chord button, when the subfunction selection key was pressed, push-button type and parameter that the key assignments of the button that is pressed is parsed passed to two stage treatment module corresponding to described function of tonic chord button; 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 two stage treatment module corresponding to function of tonic chord button related with described subfunction selection key with parameter;
The two stage treatment module is carried out key response for the key information of the push-button type of sending according to main processing block and parameter and relevant function of tonic chord button or subfunction selection key;
Described two stage treatment module further comprises:
Multiplexing button judging treatmenting module, be used for recording each push-button type, when current button is the subfunction Selective 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 Graphics Processing module, corresponding with the menu display type, be used for receiving the input of function of tonic chord button, the main menu corresponding to function of tonic chord button shows;
Subfunction is selected processing module, and is corresponding with the subfunction Selective type, is used for receiving the input of subfunction selection key, definite and show menu corresponding to current subfunction button;
The numerical value input processing module, corresponding with the numerical value input type, be used for to receive the input of digital keys, identify in 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 for receiving the input of subfunction selection key, identify in 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 inputting 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 in 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.
9. the keypress function implement device of described hand-hold type frequency spectrograph according to claim 8 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 entrance, menu entrance at the corresponding levels and subordinate's menu entrance; 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 Selective type, numerical value input type, unit input type and navigation input type.
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 CN102185601A (en) 2011-09-14
CN102185601B true 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)

Families Citing this family (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
CN104317878B (en) * 2014-10-13 2018-07-27 中国电子科技集团公司第四十一研究所 Applied to the view elements hierarchical structure of measuring instrument, manager and management system
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3169775B2 (en) * 1994-08-29 2001-05-28 株式会社日立製作所 Semiconductor circuit, switch and communication device using the same
JP4015937B2 (en) * 2002-12-06 2007-11-28 松下電器産業株式会社 Duty ratio 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

Also Published As

Publication number Publication date
CN102185601A (en) 2011-09-14

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
CN1294787A (en) Multi-language display keypad
CN102185601B (en) Keystroke function realizing method and device for hand-held frequency spectrograph
CN101606124A (en) Multi-window managing device and program, storage medium and signal conditioning package
JP6331537B2 (en) Variable value display control device, variable value display control method, and program
CN104679727A (en) Search Based User Interface
US20100107054A1 (en) Method and apparatus for providing webpage in mobile terminal
CN105630307A (en) Apparatus and method for displaying a plurality of applications on mobile terminal
CN101751296A (en) Method and device for call management of application program
EP2529290A1 (en) Virtual keyboard, input method, and associated storage medium
CN103634455A (en) Annotation-based voice command prompting method and mobile terminal
CN103168302A (en) Data processing terminal, data search method, and non-transitory computer readable medium storing control program
CN105208675A (en) Smart-watch-based wireless connection method and smart watch
CN106843915A (en) A kind of firmware switching method and apparatus
CN101706689A (en) Method and device for inputting characters via direction key
CN102981693A (en) Multi-language hand writing input method and device
CN106850838A (en) The control method and system of mobile terminal cloud application
CN101581973A (en) Portable electronic device and switching method of input modes for same
CN107291235B (en) Control method and device
KR101808774B1 (en) Virtual keyboard strucutre for mobile device, method of inputting character using virtual keyboard for mobile device, computer readable storage media containing program for executing the same
CN111475091B (en) Method and mobile terminal for helping visually impaired people to score
CN110990259A (en) Test method of keyboard-free and screen-free equipment

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 for 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