CN104317616B - A kind of signal generator data interactive method based on VxWorks - Google Patents
A kind of signal generator data interactive method based on VxWorks Download PDFInfo
- Publication number
- CN104317616B CN104317616B CN201410563652.6A CN201410563652A CN104317616B CN 104317616 B CN104317616 B CN 104317616B CN 201410563652 A CN201410563652 A CN 201410563652A CN 104317616 B CN104317616 B CN 104317616B
- Authority
- CN
- China
- Prior art keywords
- signal generator
- file
- data
- vxworks
- check code
- 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.)
- Expired - Fee Related
Links
Abstract
The present invention proposes a kind of signal generator data interactive method based on VxWorks, includes the following steps:Step (a) creates a data interactive window;Step (b) adds check code using the verification menu in above-mentioned data interaction window for file destination;Step (c), selection target file;Step (d), according to the communication interface that the signal generator that user uses provides, selection completes data interaction using any one in network, GPIB RS232 communication interfaces;Step (e), batch importing/export file destination.The method of the present invention provides user's cognition degree very high interface, and interface needs to provide a variety of and instrument communication connection mode according to user, and presentation of information is enriched, prominent function;User can also be conveniently operated the various parameters of target instrument according to needed for oneself and require to generate the ability of various files according to user.
Description
Technical field
The present invention relates to computer application field, more particularly to a kind of signal generator data interaction based on VxWorks
Method.
Background technology
In today of computer technology and rapid development of information technology, vxworks operating system is with its good reliability
The fields such as industry, military affairs are widely used in remarkable real-time, such as military and national defense, Industry Control, traffic administration, family
Intelligent management, e-commerce etc..
It is largely applied in every field just because of VxWorks embedded OS, therefore to using the insertion
The defects of work that formula operating system software safeguards also increasingly increases, such as software upgrading is to correct design and program error change
Into function functional or that increase is new etc..Therefore it is how convenient with having the instrument of vxworks operating system to carry out data friendship
Mutually, it has been increasingly becoming the link of modern intelligence instrument Software for Design concern.
At present, mode that there are two types of signal generators progress data interactions existing and using VxWorks:A kind of method
It is that instrument maintenance personnel stop instrument operation to instrument at the scene, then tears machine open and replace the storage of the programs such as instrument CF cards, FLASH
Equipment reforms vxworks operating system using tool at the scene, and for the target machine of no network interface, this is uniquely may be used
With the data interactive mode used.
The prerequisite that another method is carried out is that signal generator has network interface in itself, soft due to VxWorks
Part exploitation is completed on host, is compiled after develop, link and obtain system map file, is reused to intersect to integrate and be opened
(Tornado) is established the link using network and target machine in hair ring border, and system map file then is downloaded to target by network
In instrument, the work of data interaction is completed.
The method that instrument maintenance personnel to instrument scene are carried out with data interaction, major defect are:
(1) in data exchange process, target instrument can not use, if target instrument number is more, distribution is remote, this side
Formula is even more time-consuming and laborious, with high costs.
(2) due to needing to change instrument CF cards or FLASH memory, this is just needed at user scene into trip signal generator
Tear open machine work, the inside sensitive circuit of signal generator may be had an impact, so influence instrument performance indicator.
For using cross integration development environment method, major defect is:
(1) the computer installation cross integration development environment (TORNADO) that needs are interacted with target instrument, and the exploitation ring
Border is paid for software, expensive.
(2) operating personnel are needed by the way of designator, it would be desirable to the data for being written or writing out are sent into target instrument,
The ability of maintenance personnel there are certain requirements.
(3) interactive data are adopted this method and lack checking procedure, if asked in the process data write out
Topic can lead to the situation that target instrument appearance can not start or instrument software malfunctions.
Invention content
Exist to solve the problems, such as that the above-mentioned signal generator using VxWorks carries out data interaction, the present invention provides
A kind of signal generator data interactive method based on VxWorks.
The technical proposal of the invention is realized in this way:
A kind of signal generator data interactive method based on VxWorks, includes the following steps:
Step (a) creates a data interactive window;
Step (b) adds check code using the verification menu in above-mentioned data interaction window for file destination;
Step (c), selection target file;
Step (d), the communication interface that the signal generator used according to user provides, selection using network, GPIB or
Any one in RS232 communication interfaces completes data interaction;
Step (e), batch importing/export file destination.
Optionally, in the step (a), using Microsoft Foundation class libraries provide class generate data interaction window, according to work as
Before need to add corresponding control;Then file selection box general in Windows systems is created using CFileDialog classes.
Optionally, in the step (a), addition control has progress bar control, list box control.
Optionally, in the step (b), during to target instrument transmission data file, the school in click data interactive window
Test menu, in BN_CLICKED Message functions are responded, using file manipulation function this document most before, it is intermediate, finally add
The check code of 32 bytes after target instrument receives the check code, is compared, if check code is identical, will be transmitted to mesh
The file access pattern of nonius instrument, and finally substitute target instrument file.
Optionally, during step (e) batch importing/export, after each file is transmitted, then pass through
File manipulation function opens file, and different location reads the check code progress file verification of addition from file, if finding school
Code difference is tested, then this document transmission process is prompted to malfunction, and sends transmission again to transmission side and instructs, if still transmission failure,
This transmission is then terminated, the remaining file of listed files also no longer transmits.
The beneficial effects of the invention are as follows:
(1) provide user's cognition degree very high interface;
(2) interface needs to provide a variety of and instrument communication connection mode according to user, and presentation of information is enriched, and function is dashed forward
Go out;
(3) user the various parameters of target instrument can also be conveniently operated according to needed for oneself and according to
User requires to generate the ability of various files.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the signal generator data interactive method based on VxWorks of the present invention;
Fig. 2 is the flow chart of batch importing/export process of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment shall fall within the protection scope of the present invention.
The present invention proposes a kind of signal generator data interactive method based on VxWorks, more using signal generator
Kind interface carries out remote data update, data storage, and application, profit are provided by using the computer terminal of Windows operating system
It is connect with communication interfaces such as LAN/GPIB/RS232 with signal generator, by the interfaces of Windows visualized operations easily
The operations such as data update, the storage of instrument critical data retaking of a year or grade host computer, object code program upgrading are completed, effectively improves and is based on
The hard case of the signal generating instruments of VxWorks in human-computer interaction.Below in conjunction with the accompanying drawings to the present invention method into
Row is described in detail.
As shown in Figure 1, the present invention the signal generator data interactive method based on VxWorks, this method be based on window,
Control, menu are operated, and are included the following steps:
Step (a) creates a data interactive window;
Step (b) adds check code, it is ensured that target using the verification menu in above-mentioned data interaction window for file destination
Reliability of the file in transmission process;
Step (c), selection target file;
Step (d), the communication interface that the signal generator used according to user provides, selection using network, GPIB or
Any one in RS232 communication interfaces completes data interaction;
Step (e), batch importing/export file destination.
In above-mentioned steps (a), data interaction window is generated using the class that Microsoft Foundation class libraries provides, is added according to current needs
Add corresponding control, preferably there are the controls such as progress bar control, list box;Then Windows systems are created using CFileDialog classes
General file selection box in system can be clicked selection by mouse and import/derived file, mouse when being stopped on file
The file attributes such as this document position, size, creation time are shown using PreTranslateMessage () function.Such as
Fruit is the dedicated file format of signal generator, can also additionally show the storage key message of this document, to remind user emphatically
Notice whether this document needs to replace or store.
In above-mentioned steps (b), during to target instrument transmission data file, the verification menu in click data interactive window,
In BN_CLICKED Message functions are responded, using file manipulation function this document most before, it is intermediate, finally add 32 bytes
Check code, after target instrument receives the check code, be compared, if check code is identical, will be transmitted to target instrument
File access pattern, and finally substitute target instrument file.
During above-mentioned steps (e) batch importing/export, as shown in Fig. 2, after each file is transmitted, then
By file manipulation function, file is opened, and different location reads the check code progress file verification of addition from file, if hair
Existing check code is different, then this document transmission process is prompted to malfunction, and sends transmission again to transmission side and instruct, if still transmission is lost
It loses, then terminates this transmission, the remaining file of listed files also no longer transmits.
Preferably, data interaction module is pre-designed in target instrument, when user is interacted by computer with instrument, mesh
Also simultaneous display currently ongoing operation, and after the completion of operation on nonius instrument, restarts target instrument to complete mesh automatically
The work that nonius instrument software reinitializes.The progress for starting transmission is shown in computer terminal, target instrument also can be according to transmission
Process shows current schedules and which kind of operation currently carried out to target instrument, if the operation is the update of instrument critical data
Or image file upgrading, then after the completion of data interaction, instrumental operating system and application task can be restarted.
The signal generator data interactive method based on VxWorks of the present invention, it is very high to provide user's cognition degree
Interface;Secondly, interface needs to provide a variety of and instrument communication connection mode according to user, and presentation of information is enriched, function
It is prominent;Finally, user can also be conveniently operated the various parameters of target instrument according to needed for oneself and according to making
User requires to generate the ability of various files.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (3)
1. a kind of signal generator data interactive method based on VxWorks, which is characterized in that using signal generator interface into
Row remote data update, data storage provide application by using the computer terminal of Windows operating system, utilize LAN/
GPIB/RS232 communication interfaces are connect with signal generator, and data update, instrument are completed by the interface of Windows visualized operations
The retaking of a year or grade of device critical data, host computer storage, object code program updating operation;
Data interaction module is pre-designed in signal generator, when user is interacted by computer with signal generator, signal
Also simultaneous display currently ongoing operation, and after the completion of operation on generator, automatic Restart Signal generator is to complete
The work that signal generator software reinitializes;If operation is the update of signal generator critical data or image file liter
Grade, then, can Restart Signal generator operating system and application task after the completion of data interaction;Include the following steps:
Step (a) creates a data interactive window;
Step (b) adds check code, signal generator hair using the verification menu in above-mentioned data interaction window for file destination
When sending data file, the verification menu in click data interactive window in BN_CLICKED Message functions are responded, utilizes file
Handling function this document most before, check code that is intermediate, finally adding 32 bytes, receive the check code in signal generator
Afterwards, it is compared, if check code is identical, will be transmitted to the file access pattern of signal generator, and finally substitute target instrument text
Part;
Step (c), selection target file;
Step (d), according to the communication interface that the signal generator that user uses provides, selection uses network, GPIB or RS232
Any one in communication interface completes data interaction;
Step (e), batch importing/export file destination after each file is transmitted, then by file manipulation function, are opened
File, and different location reads the check code progress file verification of addition from file, if finding, check code is different, and prompting should
Document transmission process malfunctions, and sends transmission again to transmission side and instruct, if still transmission failure, terminates this transmission, text
The remaining file of part list also no longer transmits.
2. the signal generator data interactive method based on VxWorks as described in claim 1, which is characterized in that the step
Suddenly in (a), data interaction window is generated using the class that Microsoft Foundation class libraries provides, according to currently needing to add corresponding control;So
File selection box general in Windows systems is created using CFileDialog classes afterwards.
3. the signal generator data interactive method based on VxWorks as claimed in claim 2, which is characterized in that the step
Suddenly in (a), addition control has progress bar control, list box control.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410563652.6A CN104317616B (en) | 2014-10-13 | 2014-10-13 | A kind of signal generator data interactive method based on VxWorks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410563652.6A CN104317616B (en) | 2014-10-13 | 2014-10-13 | A kind of signal generator data interactive method based on VxWorks |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317616A CN104317616A (en) | 2015-01-28 |
CN104317616B true CN104317616B (en) | 2018-06-19 |
Family
ID=52372851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410563652.6A Expired - Fee Related CN104317616B (en) | 2014-10-13 | 2014-10-13 | A kind of signal generator data interactive method based on VxWorks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317616B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108885633B (en) * | 2016-03-23 | 2022-04-19 | 交互智能集团有限公司 | Techniques for auto-discovery and connection to REST interfaces |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567878A (en) * | 2003-06-27 | 2005-01-19 | 华为技术有限公司 | A method of data integrity protection in WLAN |
CN102467090A (en) * | 2010-11-16 | 2012-05-23 | 北京普源精电科技有限公司 | Measurement resource control method and measurement resource control system |
CN102495746A (en) * | 2011-11-29 | 2012-06-13 | 中国航空工业集团公司第六三一研究所 | Onboard embedded computer data loading method |
CN103853147A (en) * | 2012-12-06 | 2014-06-11 | 中国科学院软件研究所 | Online debugging system and method for embedded system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693592B2 (en) * | 2004-10-04 | 2010-04-06 | Siemens Aktiengesellschaft | Interface unit for automation systems and method of providing and installing such an interface |
CN102479034B (en) * | 2010-11-23 | 2015-03-11 | 北京汉王智通科技有限公司 | Method for inputting parameters of video camera by utilizing graphical interaction interface |
CN102360046B (en) * | 2011-07-22 | 2013-11-06 | 株洲南车时代电气股份有限公司 | General test method for motor vehicle electrical product |
CN103631195A (en) * | 2013-12-03 | 2014-03-12 | 苏州镭明激光科技有限公司 | Lab view (laboratory virtual instruments engineering workbench) and PLC (programmable logic controller) based serial port communication control method |
CN104049603B (en) * | 2014-05-26 | 2017-10-31 | 北京航天发射技术研究所 | Slave computer parameter configuration inquiries system and method |
-
2014
- 2014-10-13 CN CN201410563652.6A patent/CN104317616B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567878A (en) * | 2003-06-27 | 2005-01-19 | 华为技术有限公司 | A method of data integrity protection in WLAN |
CN102467090A (en) * | 2010-11-16 | 2012-05-23 | 北京普源精电科技有限公司 | Measurement resource control method and measurement resource control system |
CN102495746A (en) * | 2011-11-29 | 2012-06-13 | 中国航空工业集团公司第六三一研究所 | Onboard embedded computer data loading method |
CN103853147A (en) * | 2012-12-06 | 2014-06-11 | 中国科学院软件研究所 | Online debugging system and method for embedded system |
Also Published As
Publication number | Publication date |
---|---|
CN104317616A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9754059B2 (en) | Graphical design verification environment generator | |
CN104007957A (en) | Graphical user interface editor that displays live data during editing | |
CN103744680B (en) | Method and device for business process processing | |
CN106445577A (en) | Updating method, server system and non-transitory computer readable medium | |
CN102693127B (en) | Data-driven schema for describing and executing management tasks in a graphical user interface | |
CN102187314A (en) | Interactive design environments to visually model, debug and execute resource oriented programs | |
CN108399072A (en) | Five application page update method and device | |
CN107680295A (en) | Automatic teller machine control update method and device | |
CN107168834A (en) | Method and device for detecting computer startup fault | |
JP5246258B2 (en) | File generation program, file generation apparatus, and file generation method | |
US20090055720A1 (en) | Apparatus, and associated method, for generating an information technology incident report | |
CN110659197A (en) | Application test case generation method and device and software test system | |
US9817748B2 (en) | Unified interface for development and testing of deployment resource architecture | |
CN104317616B (en) | A kind of signal generator data interactive method based on VxWorks | |
CN106547670A (en) | The method and device of long-range reading and writing built-in Linux application program memory variable value | |
CN103677845A (en) | Website application deployment method | |
CN106990974A (en) | A kind of APP applications update method, device and electronic equipment | |
CN108075929B (en) | Integrated interface fitting simulator and simulation method | |
Canny et al. | Engineering model-based software testing of WIMP interactive applications: a process based on formal models and the SQUAMATA tool | |
US20110145661A1 (en) | Selectively displaying source code defect information within a source code editor | |
CN110471730A (en) | Methods of exhibiting, system, big screen system and medium based on Echarts | |
CN101436157A (en) | Method for processing program BUG in program test process flow | |
CN104598211B (en) | The method and device of management service software program | |
CN106599087A (en) | Secondary development method for spatial information services | |
CN104106014B (en) | Programable display, program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180619 Termination date: 20211013 |
|
CF01 | Termination of patent right due to non-payment of annual fee |