CN104317616A - Data interaction method of signal generator based on Vx Works - Google Patents

Data interaction method of signal generator based on Vx Works Download PDF

Info

Publication number
CN104317616A
CN104317616A CN201410563652.6A CN201410563652A CN104317616A CN 104317616 A CN104317616 A CN 104317616A CN 201410563652 A CN201410563652 A CN 201410563652A CN 104317616 A CN104317616 A CN 104317616A
Authority
CN
China
Prior art keywords
file
signal generator
data interaction
check code
vxworks
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
CN201410563652.6A
Other languages
Chinese (zh)
Other versions
CN104317616B (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.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201410563652.6A priority Critical patent/CN104317616B/en
Publication of CN104317616A publication Critical patent/CN104317616A/en
Application granted granted Critical
Publication of CN104317616B publication Critical patent/CN104317616B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a data interaction method of a signal generator based on Vx Works. The data interaction method includes the steps of a, creating a data interaction window; b, adding a check code by regarding a check menu in the data interaction window as object files; c, selecting the object files; d, according to a communication interface provided by the signal generator used by the user, completing the data interaction by selecting one of communication interfaces including use network, GPIB (general purpose interface bus) or RS232; e, performing batch import/export of the object files. By the use of the data interaction method, an interface with high cognition degree is available and supports multiple connection methods to apparatus for communication according to user's requirement, leading to rich information displayed and effective functions; according the actual needs, the user can conveniently operate various parameters of the object apparatus, and accordingly various files are generated based on the actual needs.

Description

A kind of signal generator data interactive method based on VxWorks
Technical field
The present invention relates to computer application field, particularly a kind of signal generator data interactive method based on VxWorks.
Background technology
In today of computer technology and rapid development of information technology, vxworks operating system is widely used in the field such as industry, military affairs, as military and national defense, Industry Control, traffic administration, home intelligent management, ecommerce etc. with its good reliability and remarkable real-time.
Just because of VxWorks embedded OS a large amount of be applied in every field, therefore to using the work of this embedded OS software maintenance also day by day to increase, such as software upgrading has function with the defect and program error, improvement that correct design or increases new function etc.Therefore how the convenient instrument with having vxworks operating system carries out data interaction, becomes the link that modern intelligent instrument Software for Design is paid close attention to gradually.
At present, existing with use the signal generator of VxWorks to carry out data interaction have two kinds of modes: a kind of method is that instrument maintenance personnel stop instrument running to instrument at the scene, then machine of tearing open changes instrument CF card, FLASH supervisor memory device, or use instrument to reform vxworks operating system at the scene, for the target machine not having network interface, this is unique operable data interactive mode.
The condition precedent that another kind method is carried out is that signal generator itself has network interface, software development due to VxWorks completes on host, carry out after having developed compiling, link and obtain system map file, re-using cross integration development environment (Tornado) utilizes network and target machine to establish the link, then by network, system map file is downloaded in target instrument, complete the work of data interaction.
Instrument maintenance personnel are carried out to the method for data interaction to instrument scene, major defect is:
(1) in data exchange process, target instrument cannot use, if target instrument number is many, distribution far away, this mode wastes time and energy especially, with high costs.
(2) because needs change instrument CF card or FLASH memory, this, with regard to needing machine of tearing open the work carrying out signal generator at user scene, may have an impact to the inside sensitive circuit of signal generator, and then affect the performance index of instrument.
For use cross integration development environment method, major defect is:
(1) need the computing machine mutual with target instrument that cross integration development environment (TORNADO) is installed, and this development environment is payware, expensive.
(2) need operating personnel to adopt the mode of designator, the data needing to write or write out are sent in target instrument, the ability of maintainer be there are certain requirements.
(3) data adopting this kind of method mutual lack checking procedure, if gone wrong in the process data write out, target instrument can be caused to occur the situation that cannot start or instrument software is made mistakes.
Summary of the invention
For the signal generator solving above-mentioned use VxWorks carries out data interaction Problems existing, the invention provides a kind of signal generator data interactive method based on VxWorks.
Technical scheme of the present invention is achieved in that
Based on a signal generator data interactive method for VxWorks, comprise the following steps:
Step (a), creates a data interactive window;
Step (b), utilizes the verification menu in above-mentioned data interaction window to add check code for file destination;
Step (c), select target file;
Step (d), according to the communication interface that the signal generator of user's use provides, any one in choice for use network, GPIB or RS232 communication interface completes data interaction;
Step (e), batch imports/derives file destination.
Alternatively, in described step (a), the class utilizing Microsoft Foundation class libraries to provide generates data interaction window, adds corresponding control according to current needs; Then CFileDialog class is utilized to create file selection box general in Windows system.
Alternatively, in described step (a), adding control has progress bar control, list box control.
Alternatively, in described step (b), when sending data file to target instrument, the verification menu in click data interactive window, in response BN_CLICKED Message function, utilize file manipulation function this file before, middle, the check code that finally adds 32 bytes, after target instrument receives this check code, compare, if check code is identical, then will be transferred to the file access pattern of target instrument, and final alternative target instrument file.
Alternatively, in the process of described step (e) batch importing/export, after each file transfer completes, then pass through file manipulation function, open file, and the check code that diverse location reading is added from file carries out file verification, if find, check code is different, then point out this document transmission process to make mistakes, and transfer instruction is again sent to transmission side, if still bust this, then stop this transmission, the remaining file of listed files also no longer transmits.
The invention has the beneficial effects as follows:
(1) interface that user's cognition degree is very high is provided;
(2) interface needs to provide connected mode that is multiple and instrument communication according to user, and information displaying enriches, prominent function;
(3) user can also carry out handled easily to the various parameters of target instrument needed for oneself, and requires according to user the ability generating various file.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of signal generator data interactive method based on VxWorks of the present invention;
Fig. 2 is the process flow diagram of the present invention's batch importing/export process.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The present invention proposes a kind of signal generator data interactive method based on VxWorks, signal generator multiple interfaces is adopted to carry out remote data update, data store, application is provided by using the computer terminal of Windows operating system, the communication interfaces such as LAN/GPIB/RS232 are utilized to be connected with signal generator, Data Update is completed easily by the interface of Windows visualized operation, instrument critical data retaking of a year or grade host computer stores, the operations such as object code program upgrading, effectively improve the signal generating instruments hard case in man-machine interaction based on VxWorks.Below in conjunction with accompanying drawing, method of the present invention is described in detail.
As shown in Figure 1, the signal generator data interactive method based on VxWorks of the present invention, the method operates based on window, control, menu, comprises the following steps:
Step (a), creates a data interactive window;
Step (b), utilizes the verification menu in above-mentioned data interaction window to add check code for file destination, guarantees the reliability of file destination in transmitting procedure;
Step (c), select target file;
Step (d), according to the communication interface that the signal generator of user's use provides, any one in choice for use network, GPIB or RS232 communication interface completes data interaction;
Step (e), batch imports/derives file destination.
In above-mentioned steps (a), the class utilizing Microsoft Foundation class libraries to provide generates data interaction window, adds corresponding control, preferably have the controls such as progress bar control, list box according to current needs; Then CFileDialog class is utilized to create file selection box general in Windows system, can click by mouse the file selecting to import/derive, when mouse stops on file, utilize PreTranslateMessage () function to show the file attributes such as this file position, size, creation-time.If the file layout that signal generator is special, also additionally can show the storage key message of this file, to focus on this file of call user's attention the need of replacement or storage.
In above-mentioned steps (b), when sending data file to target instrument, verification menu in click data interactive window, in response BN_CLICKED Message function, utilize file manipulation function this file before, middle, the check code that finally adds 32 bytes, after target instrument receives this check code, compare, if check code is identical, then will be transferred to the file access pattern of target instrument, and final alternative target instrument file.
In the process of above-mentioned steps (e) batch importing/export, as shown in Figure 2, after each file transfer completes, then file manipulation function is passed through, open file, and the check code that diverse location reading is added from file carries out file verification, if find, check code is different, then point out this document transmission process to make mistakes, and transfer instruction is again sent to transmission side, if still bust this, then stop this transmission, the remaining file of listed files also no longer transmits.
Preferably, design data interactive module in advance in target instrument, when user by computing machine and instrument mutual time, the also current ongoing operation of simultaneous display in target instrument, and after operation completes, the work that autoboot target instrument reinitializes to complete target instrument software.The progress transmitted is started in computer terminal display, target instrument also can show current schedules and current which kind of operation carried out target instrument according to transmitting procedure, upgrade or image file upgrading if this operation is instrument critical data, then after data interaction completes, instrumental operating system and application task can be restarted.
Signal generator data interactive method based on VxWorks of the present invention, provides the interface that user's cognition degree is very high; Secondly, interface needs to provide connected mode that is multiple and instrument communication according to user, and information displaying enriches, prominent function; Finally, user can also carry out handled easily to the various parameters of target instrument needed for oneself, and requires according to user the ability generating various file.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1., based on a signal generator data interactive method for VxWorks, it is characterized in that, comprise the following steps:
Step (a), creates a data interactive window;
Step (b), utilizes the verification menu in above-mentioned data interaction window to add check code for file destination;
Step (c), select target file;
Step (d), according to the communication interface that the signal generator of user's use provides, any one in choice for use network, GPIB or RS232 communication interface completes data interaction;
Step (e), batch imports/derives file destination.
2. as claimed in claim 1 based on the signal generator data interactive method of VxWorks, it is characterized in that, in described step (a), the class utilizing Microsoft Foundation class libraries to provide generates data interaction window, adds corresponding control according to current needs; Then CFileDialog class is utilized to create file selection box general in Windows system.
3. as claimed in claim 2 based on the signal generator data interactive method of VxWorks, it is characterized in that, in described step (a), adding control has progress bar control, list box control.
4. as claimed in claim 1 based on the signal generator data interactive method of VxWorks, it is characterized in that, in described step (b), when sending data file to target instrument, verification menu in click data interactive window, in response BN_CLICKED Message function, utilize file manipulation function this file before, middle, the check code that finally adds 32 bytes, after target instrument receives this check code, compare, if check code is identical, then will be transferred to the file access pattern of target instrument, and final alternative target instrument file.
5. as claimed in claim 1 based on the signal generator data interactive method of VxWorks, it is characterized in that, in the process of described step (e) batch importing/export, after each file transfer completes, pass through file manipulation function again, open file, and the check code that diverse location reading is added from file carries out file verification, if find, check code is different, then point out this document transmission process to make mistakes, and send transfer instruction again to transmission side, if still bust this, then stop this transmission, the remaining file of listed files also no longer transmits.
CN201410563652.6A 2014-10-13 2014-10-13 A kind of signal generator data interactive method based on VxWorks Expired - Fee Related CN104317616B (en)

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 true CN104317616A (en) 2015-01-28
CN104317616B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885633A (en) * 2016-03-23 2018-11-23 交互智能集团有限公司 For finding and being connected to the technology of REST interface automatically

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567878A (en) * 2003-06-27 2005-01-19 华为技术有限公司 A method of data integrity protection in WLAN
US20060095545A1 (en) * 2004-10-04 2006-05-04 Siemens Aktiengesellschaft Interface unit for automation systems and method of providing and installing such an interface
CN102360046A (en) * 2011-07-22 2012-02-22 株洲南车时代电气股份有限公司 General test method for motor vehicle electrical product
CN102467090A (en) * 2010-11-16 2012-05-23 北京普源精电科技有限公司 Measurement resource control method and measurement resource control system
CN102479034A (en) * 2010-11-23 2012-05-30 北京汉王智通科技有限公司 Method for inputting parameters of video camera by utilizing graphical interaction interface
CN102495746A (en) * 2011-11-29 2012-06-13 中国航空工业集团公司第六三一研究所 Onboard embedded computer data loading method
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
CN103853147A (en) * 2012-12-06 2014-06-11 中国科学院软件研究所 Online debugging system and method for embedded system
CN104049603A (en) * 2014-05-26 2014-09-17 北京航天发射技术研究所 Lower computer parameter configuration and inquiry system and method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567878A (en) * 2003-06-27 2005-01-19 华为技术有限公司 A method of data integrity protection in WLAN
US20060095545A1 (en) * 2004-10-04 2006-05-04 Siemens Aktiengesellschaft Interface unit for automation systems and method of providing and installing such an interface
CN102467090A (en) * 2010-11-16 2012-05-23 北京普源精电科技有限公司 Measurement resource control method and measurement resource control system
CN102479034A (en) * 2010-11-23 2012-05-30 北京汉王智通科技有限公司 Method for inputting parameters of video camera by utilizing graphical interaction interface
CN102360046A (en) * 2011-07-22 2012-02-22 株洲南车时代电气股份有限公司 General test method for motor vehicle electrical product
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
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
CN104049603A (en) * 2014-05-26 2014-09-17 北京航天发射技术研究所 Lower computer parameter configuration and inquiry system and method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885633A (en) * 2016-03-23 2018-11-23 交互智能集团有限公司 For finding and being connected to the technology of REST interface automatically

Also Published As

Publication number Publication date
CN104317616B (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN104572043B (en) A kind of control to client application carries out burying method and device a little in real time
CN104423983B (en) For developing, testing and the method and apparatus of application deployment
CN100566357C (en) Communication apparatus batch configuration managerial approach and device thereof
CN105404519A (en) Version control method, code testing method and system
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
CN104504497A (en) BIM engineering information management system and method
CN110399067A (en) Point methods, device, electronic equipment, storage medium are buried in visualization
CN102693127B (en) Data-driven schema for describing and executing management tasks in a graphical user interface
CN104007957A (en) Graphical user interface editor that displays live data during editing
CN103970559A (en) Device loading method and device on basis of Android
CN102402480A (en) Tool for debugging (testing) command line of circuit board firmware
JP2019121285A (en) Configuration change management device, configuration change management method, and program
CN104077131A (en) Component deployment system and method
CN102253845B (en) Server system
US11934163B2 (en) Method and system for retrieving building automation system controller information using near field communication
CN103677845A (en) Website application deployment method
CN109542432A (en) Air control rule editing method and terminal device
CN104317616A (en) Data interaction method of signal generator based on Vx Works
CN104486432A (en) Automatic server asset information input method and device
US20220342399A1 (en) Distributed production planning and instruction apparatus and distributed production planning and instruction system
CN114266170B (en) Gas supply range identification method and device in gas distribution pipe network
Krastev et al. Smart mobile application for public transport Schedules-Logical Model
CN113986380A (en) Data processing method, device and system, electronic equipment and storage medium
CN112393727B (en) Power distribution room navigation method and device, electronic equipment and computer readable storage medium
CN110327626A (en) Virtual server creation method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180619

Termination date: 20211013