CN101872176A - Method and system for generating measurement and control software - Google Patents

Method and system for generating measurement and control software Download PDF

Info

Publication number
CN101872176A
CN101872176A CN201010194803A CN201010194803A CN101872176A CN 101872176 A CN101872176 A CN 101872176A CN 201010194803 A CN201010194803 A CN 201010194803A CN 201010194803 A CN201010194803 A CN 201010194803A CN 101872176 A CN101872176 A CN 101872176A
Authority
CN
China
Prior art keywords
software
data
user interface
information
module
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.)
Pending
Application number
CN201010194803A
Other languages
Chinese (zh)
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.)
China Agricultural University
Original Assignee
China Agricultural University
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 China Agricultural University filed Critical China Agricultural University
Priority to CN201010194803A priority Critical patent/CN101872176A/en
Publication of CN101872176A publication Critical patent/CN101872176A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for generating measurement and control software, which comprises the following steps of: configuring the project information of the measurement and control software to be generated, which comprises configuring system information and mainly configuring the name and the sampling interval of the measurement and control software to be generated, and configuring channel information and mainly configuring the information of the parameters required for the measurement and control software to be generated; generating a user interface, generating corresponding controls according to the parameter information of detection parameters and calculation parameters, and arranging the controls on the user interface; and acquiring actual external signal data of the detection parameters according to the detection parameters, and processing or simulating to acquire analog signal data for processing. The invention discloses a system for generating the measurement and control software, which comprises a project management module, a user interface generating module, a data operation module and the like. The invention realizes codeless programming based on the software multiplexing idea, can realize the automatic generating of user interfaces capable of being edited on line only by configuring the detection parameters and other information according to specific detection tasks to hatch special measurement and control software.

Description

TT﹠C software generates method and system
Technical field
The present invention relates to computer application software programming technique field, particularly a kind of TT﹠C software generates method and system.
Background technology
Software repeated usage is that a kind of software component good by structure in advance, that design for multiplexing purpose is set up or the process of composite software system.It is to utilize multiplex technique, assembles new system by public reusable component, and these reusable components comprise object class, framework or software architecture etc.Software repeated usage not only can avoid repeating in a large number work, shorten the construction cycle, and can accumulate and the knowledge in shared relevant issues territory, can utilize former successful experience to improve software quality, make software obtain very big improvement aspect reliability, dirigibility and the standardization.
At present popular configuration software promptly is to be the secondary development software of main development tools with C++, VBA (Visual Basic ForApplication), and these configuration softwares comprise:
1, Intouch:InTouch is a outstanding monitoring and control configuration software SCADA (Supervisory Control And Data Acquisition) that U.S. Wonderware company releases, and once obtains higher market share in the world.InTouch has the application program of HMI advanced in the world, and it has man-machine interface and OO graphical development environment, can be efficiently, configure user quickly.Simultaneously, it report to the police and historical trend aspect function also be very easy to monitoring to system.In addition, it also has powerful network function, the mode of the Net-DDE by traditional DDE and expansion, can with the application program real-time exchange data in this machine and other computing machine.The more important thing is that it provides communications protocol translation interface I/OServer widely, can be advantageously connected to various opertaing devices.On performance, InTouch optimizes core code, and operational efficiency is than higher, and has a large amount of clients, has quite high reliability and stability.
2, WinCC:WinCC software is an integrated human-computer interface system and monitoring management system, it is the product of advanced technology and the Microsoft powerful software function of Siemens Company in the process automation field, adopt the picture layer-management, have good opening and dirigibility, the characteristics of distributed multitask, be suitable for rapid reaction to process event, no matter be single user system or redundant multiserver/multi-user system or at complicated, specific task, WinCC software all can be handled.The function editing machine of WinCC comprises aspects such as graphical designer, newspaper tape editor, variable manager, form editing machine, overall script, control center, user management, makes it have high performance PROCESS COUPLING, frame updating and data management reliably fast.
3, KingView: KingView is one of domestic appearance configuration software early, has stronger industrial measurement and control function and communication function.KingView is based on graphical development environment, stronger automation process observing and controlling component library is arranged, especially the flow process INTERFACE DESIGN is relatively more convenient, building process is: set up industrial control system model → design configuration interface → constructs database variable → set up steps such as animation connection → operation, debugging, can finish the exploitation of a cover industrial control software, constitute the interface of required function.The Industry Control ability of KingView is strong, flexible operation, robotization control interface is more directly perceived, and embedded many control functions, command language function call for the user in the KingView, thereby support self-defining function to reduce the difficulty of software development, shortened the cycle of software development.In addition, KingView possesses a large amount of device drives interfaces, supports the industry control products such as various PLC, intelligence instrument, integrated circuit board and fieldbus of domestic main flow, and it is integrated to be convenient to system hardware.
Yet above-mentioned configuration software has following deficiency:
1, InTouch is relatively poor compared to the aesthetic property of other its graphical interfaces of configuration software, and the sticky position graphic operation is comparatively loaded down with trivial details, and the distortion after the figure of the introducing amplification is very big.Adopt limited intrinsic function, its function is the function of monitoring commonly used just also, and for example report output can only be by means of other instruments for complicated any function.The data-interface dirigibility of InTouch is not strong in addition.To the general user, can have only DDE for the data-interface that utilizes.And data communication mode between DDE a kind of process that to be Windows early stage, transfer efficiency is not high, has influenced the stability and the reliability of total system thus.
2, the main limitation of WinCC has:
(a) WinCC is the monitoring package software that is applicable to auxiliary products that Siemens Company releases, and therefore the hardware of being supported (PLC, DCS) has certain limitation;
(b) WinCC is comparatively complicated for the setting of parameter;
(c) WinCC belongs to the advanced programming platform, and the operation more complicated needs the engineering test personnel to possess higher computer software level, and time professional software construction cycle is longer.
3, the limitation of KingView mainly contains:
(a) main communication modes is a serial communication, is not suitable for the big data quantity communication system, thus be mainly used in low sampling rate, based on static and quantity of state, and switch flow process control occasion;
(b) the command language environment that provides of KingView a little less than, be difficult to realize for comparatively complicated data processing;
(c) the KingView software platform be provided with morely, need foundation, the selection of multiparameter in the definition of data variable and the function through training, the especially database of certain hour.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is:
1, how to realize not by programming, only need required system information and the channel information of configuration just can generate TT﹠C software;
2, how self-defined editor is carried out at the TT﹠C software interface and make the more attractive in appearance and suitable user's operation in interface.
(2) technical scheme
A kind of TT﹠C software generation method may further comprise the steps:
S101: dispose the project information of TT﹠C software to be generated, and described project information is saved in database, specifically comprise:
Configuration-system information, described system information comprises: the TT﹠C software name to be generated and the sampling interval of described TT﹠C software,
The channel information of configuration parameter, described parameter comprises: detected parameters, calculating parameter and output controlled variable, and described channel information comprises: parameter name, observing and controlling passage, parameter display mode, quantities full scale, quantities zero point, quantities unit, physical quantity full scale and physical quantity zero point;
S102: generate the user interface of described TT﹠C software, generate corresponding controls according to the channel information of described detected parameters, the channel information of calculating parameter and the channel information of output controlled variable, and described control is aligned on the described user interface;
S103:, obtain the external signal data of detected parameters or simulate analog signal data according to described detected parameters.
Wherein, the sampling interval of described image data is 0.2~60000 millisecond.
Wherein, described system information also comprises: organization that described TT﹠C software is used and the used password of the described TT﹠C software of login.
Wherein, the described step that the channel information of the channel information of described detected parameters and calculating parameter is imported form that between step S101 and step S102, also comprises.
Wherein, the mode that control is arranged among the described step S102 is to arrange according to the configuration sequence piecemeal of detected parameters, specifically comprises:
Obtain total number of described detected parameters and calculating parameter;
If the square root of total number is an Integer n, so described user interface is divided into the capable n row of n;
If the square root of total number is not an integer, and integral part is n, judges that then n * (n+1) is whether greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+1 (n+1) greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+2 (n+1) less than total number of control.
Wherein, described in step S102 control also comprise after being aligned on the described user interface:
Change the appearance attribute of described control, to edit described user interface;
With generate or editor after user interface be saved in database;
Edit described user interface when logining described TT﹠C software once more.
Wherein, described step S103 specifically comprises:
Gather the external signal data of described detected parameters correspondence;
With the data presentation that collects in each corresponding controls of man-machine interface;
The data that collect are saved in the form;
The data that collect are carried out signal analysis and processing;
Data after handling are generated form;
Import and check the detection data of having preserved or handle after data.
Wherein, between step S102 and S103, also comprise the step of utilizing software debugging aids that the external digital signal data of gathering are debugged.
A kind of TT﹠C software generation system comprises:
Project management module, be used for TT﹠C software to be generated is configured to project information, and described project information is saved in database, specifically comprise: the system information configuration module: be used to dispose the TT﹠C software name to be generated and the sampling interval of described TT﹠C software, the channel information configuration module of parameter: be used to dispose the channel information of TT﹠C software desired parameters to be generated, described parameter comprises: detected parameters, calculating parameter and output controlled variable;
The user interface generation module, be used to generate the user interface of described TT﹠C software, generate corresponding controls according to the channel information of described detected parameters, the channel information of calculating parameter and the channel information of output controlled variable, and described control is shown on the described user interface;
Data operation modules is used for according to described detected parameters, obtains the external signal data of detected parameters or simulates analog signal data.
Wherein, described system configuration module also is used to dispose organization and the used password of the described TT﹠C software of configuration registry that described TT﹠C software is used.
Wherein, described system also comprises: the module that is used for the channel information of the channel information of described detected parameters and calculating parameter is imported form.
Wherein, described system also comprises:
The user interface editor module is used to change the appearance attribute of described control, to edit described user interface;
User interface is preserved module, be used for generate or editor after user interface be saved in database;
The user interface modifications module is edited described user interface when logining described TT﹠C software once more.
Wherein, described data operation modules comprises:
Data acquisition module is used for gathering by data acquisition unit the external signal data of described detected parameters correspondence;
Data disaply moudle, the data presentation that is used for collecting is to each corresponding controls of man-machine interface;
Data are preserved module, and the data that are used for collecting are saved in form;
Signal processing module is used for the data that collect are carried out signal analysis and processing;
The report generation module is used for the data after handling are generated form;
Data are checked module, be used to import and check the detection data of having preserved or handle after data.
Wherein, described system also comprises:
The signal data debugging module is used to utilize software debugging aids that the signal data of gathering is debugged.
(3) beneficial effect
The present invention has following beneficial effect:
1, based on software repeated usage thought, realized no code programming, operating personnel only need according to concrete detection task, simple operationss such as configuration detection parameter information, detection signal passage, selection display mode, just can generate automatically and detect the interface, hatch special-purpose TT﹠C software;
2, by revising position, size, color, instrument title, font, the font size of interface control; Or add and modify frame, picture and animation etc., edit out the user interface of more attractive in appearance and suitable operation.
Description of drawings
Fig. 1 is the TT﹠C software generation method flow diagram according to the embodiment of the invention;
Fig. 2 is the process flow diagram according to configuration project information in the TT﹠C software generation method of the embodiment of the invention;
Fig. 3 is the process flow diagram that generates, edits, preserves and revise according to user interface in the TT﹠C software generation method of the embodiment of the invention;
Fig. 4 is the TT﹠C software generation method data manipulation process flow diagram according to the embodiment of the invention;
Fig. 5 is the TT﹠C software generation system structural representation according to the embodiment of the invention;
Fig. 6 is the TT﹠C software generation system operational flowchart according to the embodiment of the invention.
Embodiment
The TT﹠C software that the present invention proposes generates method and system, is described as follows in conjunction with the accompanying drawings and embodiments.
The present invention proposes a kind of TT﹠C software generation method, as shown in Figure 1.
Step S101 disposes the project information of TT﹠C software to be generated and is saved in database, and comprising: configuration-system information and channel information, configuration flow are as shown in Figure 2.
Configuration-system information mainly disposes the sampling interval of TT﹠C software name to be generated (being project name) and described TT﹠C software.
The TT﹠C software name is set: when the newly-built engineering project of user, need oneself to import the title of engineering project, for the software name is the first step of exploitation TT﹠C software, for the facility of managing, usually effectively manage with the so-called dbase of actual detected project, and by bulleted list.As united reaper intelligent observing and controlling system, rotary cultivator test macro and tractor testing system of safety performance etc., with universal Software Platform called after professional software, whether this method can detect automatically and repeat with existing engineering project.
Sampling interval is set: set the time interval of sampling asynchronous clock, the character of visual detection task is selected sampling time interval, 0.2~60000 millisecond of the sampling interval of image data, and temperature parameter can be more longer.Sampling interval is more little, and the unit interval image data is many more, and memory data output is big more, and the user should require and the hardware configuration choose reasonable according to actual test event.
Configuration-system information also comprises the applying unit setting and the password setting of TT﹠C software to be generated:
Applying unit is set: set the title of applying unit, can manually import, also can use existing applying unit title.
Password setting: for TT﹠C software to be generated provides cryptoguard; be provided with the password authority; the general test personnel can only use software and check channel configuration information etc.; special software configuration personnel; behind the input password; could revise and increase and decrease channel arrangement, editing interface etc. are to guarantee the data security of TT﹠C software.In addition, method of the present invention also need be provided with high grade cryptosystem, in order to user's uses that forget Password, or the senior modification usefulness of developer.
The channel information of configuration parameter: the channel information that mainly disposes TT﹠C software desired parameters to be generated, described parameter comprises: detected parameters, calculating parameter and output control, and described channel information comprises: parameter name, observing and controlling passage, parameter display mode, quantities full scale, quantities zero point, quantities unit, physical quantity full scale and physical quantity zero point;
Parameter name: parameter to be measured is divided three classes, is respectively: detected parameters, calculating parameter and output controlled variable.Detected parameters is a modal test parameter in the testing process, can change non electrical quantity into measurable electric weight by sensor; Calculating parameter refers to directly to utilize some parameter of sensor, as the rate of skidding, power etc.; The output controlled variable is represented the external control ability of this system, comprises aanalogvoltage control and switching value control.The user can select the parameter name that provides for use, and suggestion is convenient to later stage INTERFACE DESIGN and parameter management with actual detected project and parameter classification custom parameter title.The configuration information of this parameter will be shown in " detected parameters channel configuration information table " in real time, if disposed this parameter before, then the parameter information that disposed is loaded in " channel configuration information table ", otherwise the user needs oneself to be configured.
Calculating parameter is obtained by the combination arithmetical operations such as ratio, four fundamental rules, power, rooting, exponentiation and trigonometric function of two direct measurement parameters.For this reason, present embodiment has designed " the equation editing device " that is used for engineering signal indirectly measurement parameter especially, has strengthened the applicability that detects software.
The observing and controlling passage: can carry out the configuration of observing and controlling passage according to the type of parameter, this system provides the passage of 6 types of analog input, simulation output, frequency input, counting input, switching value input and switching value outputs.The user needs to carry out the software channel arrangement according to the collector configuring condition of reality.
Display mode: after having defined parameter name, then can carry out the selection of display mode according to demand, it is available that this system has 3 kinds of curve maps, 3 kinds of commentaries on classics to turn round table, 7 kinds of digital display meters, 2 kinds of pilot lamp and 4 kinds of switches.
Transducer calibration: wherein, adopt transducer calibration to realize to being provided with of quantities full scale, quantities zero point, quantities unit, physical quantity full scale and physical quantity zero point.Arbitrary line parameter in selected " channel configuration information table " is demarcated the sensor of testing this parameter.With the full scale and the zero point of full scale, zero point, unit and the corresponding physical quantity of determining quantities.
Computing formula is:
U = ( U max - U min ) ( d - V min ) ( V max - V min ) + V min
U wherein MaxBe quantities full scale, U MinFor quantities zero point, d are output valve, the V of sensor MaxBe physical quantity full scale (maximal value of sensor output quantity), V MinBe physical quantity zero point (minimum value of sensor output value), U is the value of the pairing quantities of d.
Form with the channel configuration information table after the channel information configuration is finished shows that the channel configuration information matrix section comprises " detected parameters channel configuration information table " and " calculating parameter channel configuration information table " two large divisions.
Detected parameters channel configuration information table is used to show the channel information of the detected parameters that has disposed, comprises title, observing and controlling passage, display mode, full scale, zero point, unit, physical quantity full scale and the zero point of test parameter." calculating parameter channel configuration information table " is used to show the parameter information of the calculating parameter that has disposed, calculating parameter is obtained by computing by two detected parameters that configured, and the user can choose the detected parameters of X and Y representative by the sequence number in " detected parameters channel configuration information table ".In addition, the user can set the operation relation between X and the Y and display mode, unit, full scale and the zero point of this calculating parameter.
After having disposed project information, detected parameters channel configuration information and the calculating parameter configuration information that has configured can be exported in the word form, make things convenient for the user to check and printing etc.
Step S102, the user interface of generation TT﹠C software generates control according to the channel information of described detected parameters, the channel information of calculating parameter and the channel information of output controlled variable, and described control is aligned on the described user interface.In the present embodiment, the corresponding control of the channel information of each parameter as shown in Table 1, 2 and 3, is respectively the corresponding control of channel information of detected parameters, calculating parameter and output controlled variable, and generates the information such as control function of this control
Corresponding control of table 1 detected parameters channel information and explanation
Figure BSA00000137807000101
Corresponding control of table 2 calculating parameter channel information and explanation
Figure BSA00000137807000102
Corresponding control of table 3 output controlled variable channel information and explanation
Figure BSA00000137807000103
The mode that control is arranged is to arrange according to the configuration sequence piecemeal of detected parameters and calculating parameter, specifically comprises:
Obtain total number of described detected parameters and calculating parameter;
If the square root of total number is an Integer n, so described user interface is divided into the capable n row of n;
If the square root of total number is not an integer, and integral part is n, judges that n * (n+1) is whether greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+1 (n+1) greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+2 (n+1) less than total number of control.
As shown in Figure 3, after being aligned to control on the interface, also comprise the steps:
If dissatisfied to arrangement mode, can editing interface, change the appearance attribute of control, as size, position, font, foreground and background colour etc.
Control can directly be preserved after being aligned on the interface, or in the interface editing process, can carry out the preservation at interface at any time.During preservation, can be saved in respectively in the database in the corresponding tables of data according to the type of control.Wherein, the detected parameters control is saved in " selected parameter " tables of data; The calculating parameter control is saved in " calculating parameter allocation list "; Modifying control is saved in " decoration information " tables of data; Text control is saved in " text message " tables of data; Picture control is saved in " pictorial information " tables of data; The Flash control is saved in " animation information " tables of data.In addition, also can the parameter setting information in the channel configuration information table be saved in " PARAMETER " tables of data, in the preservation process, can upgrade existing parameter information and preserve the configuration information of new parameter.
If the user is dissatisfied to the editing interface after preserving, or do not edit last time, can make amendment to the interface of having edited with edit pattern again, and promptly the interface had been edited once more and preserved.
Step S103 according to described detected parameters, obtains the actual external signal data of detected parameters and handles or simulate analog signal data and processing.In the present embodiment,, select right sensors, sensor is connected to the IO interface of corresponding types on the collector according to the actual detection parameter.The multichannel data that collects reaches computing machine in real time through the usb bus mode, is carried out demonstration, processing, analysis and the storage of data by computing machine.As shown in Figure 4, specifically comprise the steps:
Gather the external signal data of described detected parameters correspondence by data acquisition unit, preferred agricultural equipment common parameters collector, this collector has adopted 4 blocks of data capture cards, and USB-6211 provides 16 tunnel analog input channels, 2 tunnel analog output channels and 2 tunnel frequency input channels; USB7405 provides 9 tunnel frequency input channels and 9 tunnel counting channels; USB7408 provides 4 way switch amount output channels and 16 way switch amount input channels.The data of gathering can also be by the analog signal data that simulates, and simulating signal has three kinds of patterns available, is respectively: sine wave, triangular wave and square wave.
With the data presentation that collects in each corresponding controls of man-machine interface, the signal data that data collecting card is gathered, each different detection channel number with capture card leaves in the different arrays, and each control of TT﹠C software reads and show the signal of respective channel according to oneself channel configuration information.
The data that collect are saved in the Excel form.
The data that collect are carried out signal analysis and processing, comprise time-domain analysis, frequency-domain analysis and digital filtering, wherein, the type of time-domain analysis has: integral operation, differentiate, signal plus, signal subtraction, signal multiplication, signal are divided by, correlation analysis and Convolution Analysis; The type of frequency-domain analysis has Fast Fourier Transform (FFT) etc., and various window functions also are provided in addition, and multiple window function is provided, and comprising: Hanning window, hamming window, Brackman window, window index, Gaussian window, quarter window; Digital filter has the Butterworth filter function of single stage method, two step method and three-step approach, and these three kinds of methods all have four types filter function, is respectively the logical and rejection filter of low pass, high pass, band.
After having preserved data, can generate the Word form to experimental result, the content of form comprises the engineering project of test, detects the signature tune line chart of unit, detection date and all measured parameter.
When the needs data query, import and check the detection data of having preserved or handle after data.
Between step S102 and S103, also comprise the step of utilizing software debugging aids to debug to the signal data of gathering in the present embodiment, comprising:
Mainly the data capture card is debugged, comprised analog input output debugging, frequency input debugging, pulse input debugging (counting debugging) and switching value input and output debugging.Wherein, present embodiment provides 18 road stationary conduits and 18 road extended channels.18 road stationary conduits comprise: 4 tunnel analog input channels, 2 tunnel analog output channels, 2 tunnel frequency quantity input channels, 2 tunnel counting channels, 2 way switch amount input channels and 4 way switch amount output channels.For 18 road extended channels: can expand 12 road analog input channels, 7 tunnel frequency input channels, 7 tunnel counting channels and 14 way switch amount input channels at most.Can debug signal observing and controlling passage, owing to there is systematic error, revise so need carry out the zero point of analog channel, at present, through debugging, the modified value at zero point of each passage is 0.027V.
Present embodiment has designed the oscillograph of four kinds of drainage patterns, is respectively single channel oscillograph, dual channel oscilloscope, four-way oscillograph and eight oscilloscope channels.The oscillograph of various patterns can be gathered the signal of eight analog channels, in gathering engineering, can select the signal of any one passage to show.Every kind of oscillographic function comprises: sample frequency setting, the most large and small value of Y-axis are set, cursor is controlled, display channel is selected, begin to gather and stop collection.Also have the signal type selection function in addition, this function is when TT﹠C software is operated in " signal imitation " pattern, and the simulating signal that selection simulates has three kinds of patterns available, is respectively: sine wave, triangular wave and square wave.
The present invention has utilized software repeated usage thought, and LabWindows/CVI software is carried out secondary development, has made up zero hatching of code layout type TT﹠C software platform, i.e. TT﹠C software generation system.Make the software user can utilize the personalized software of graphical component development oneself, carry out the test of association area engineering signal.
A kind of TT﹠C software generation system that the present invention also proposes as shown in Figure 5, comprising:
Project management module is used for TT﹠C software to be generated is configured to project information, and described project information is saved in database, comprising:
System information configuration module: be used to dispose the TT﹠C software name to be generated and the sampling interval of described TT﹠C software, also be used to dispose the described TT﹠C software password of described TT﹠C software applying unit title and configuration registry.In the present embodiment, the corresponding login interface of system information configuration module is created new projects' (configuration TT﹠C software name, applying unit, sampling interval and password etc.) or the existing project of login (input TT﹠C software name, applying unit, sampling interval and password etc.) in login.
The channel information configuration module of parameter: be used to dispose the channel information of TT﹠C software desired parameters to be generated=, described parameter comprises: detected parameters, calculating parameter and output controlled variable, described channel information comprises: parameter name, observing and controlling passage, parameter display mode, quantities full scale, quantities zero point, quantities unit, physical quantity full scale and physical quantity zero point.In the present embodiment, this module comprises a configuration interface, is used to dispose above-mentioned channel information.
The user interface generation module is used to generate the user interface of TT﹠C software, generates control according to the channel information of described detected parameters calculating parameter and output controlled variable, and described control is shown on the described user interface;
Data operation modules is used for according to described detected parameters, obtains the actual external signal data of detected parameters and handles or simulate analog signal data and processing.As seen the data of TT﹠C software have two sources, and the one, obtain the external signal data of gathering in real time by hardware interface, the 2nd, the analog signal data that simulates by native system.
Described system also comprises: be used for the channel information of the channel information of described detected parameters and calculating parameter is imported the module of form, so that check later on.
Described system also comprises: the user interface editor module is used to change the appearance attribute of described control, to edit described user interface; User interface is preserved module, be used for generate or editor after user interface be saved in database; The user interface modifications module is edited described user interface when logining described TT﹠C software once more.
Described data operation modules comprises: data acquisition module is used for gathering by data acquisition unit the external signal data of described detected parameters correspondence; Data disaply moudle, the data presentation that is used for collecting is to each corresponding controls of man-machine interface; Data are preserved module, and the data that are used for collecting are saved in form; Data processing module is used for the data that collect are carried out signal analysis and processing; The report generation module is used for the data after handling are generated form.Data are checked module, be used to import and check the detection data of having preserved or handle after data.
Described system also comprises: the signal data debugging module, be used for utilizing software debugging aids to debug to the signal data of gathering, each sub-interface of this debugging module all has a data presentation time interval function is set, and the time interval of this system clock control minimum is 0.01s.
The workflow of the system in the present embodiment as shown in Figure 6.
System database design in the present embodiment is as follows:
1, Logic Structure Design: system design adopted two kinds of type of data structure: it is linear structure that the interface generates corresponding data structure, and the storage mode of database is tree-like nonlinear organization.
(1) channel information configuration complete after, the corresponding control of each channel information.Be defined as follows data structure: Panel=(P, R), wherein: P={C 1, C 2... C n, B 1, B 2... B n, 1≤n≤36}, R={<C i, B i| 1≤i≤n}, C represents channel information, B represents control.The channel information table is as shown in table 4:
Table 4 channel information table
(2) projects (i.e. the TT﹠C software of Sheng Chenging) comprise several data, for example system information (as shown in table 5), channel information, control property (as shown in table 6) etc.A plurality of projects are stored in the database.Be defined as follows data structure:
HardDisk=(E,R)
Wherein: E={D, P 1, P 2... P 3, C 1, C 2... C n, B 1, B 2... B 3, S 1, S 2... S n, n 〉=1}
R={R 1,R 2,R 3,R 4}
R 1={<D,P i>|1≤i≤n}
R 2={<P i,C i>|1≤i≤n}
R 3={<P i,B i>|1≤i≤n}
R 4={<P i,S i>|1≤i≤n}
D represents database, and P represents engineering project, and C represents channel configuration information, and B represents control property information, and S represents system information.
Table 5 system message list
Figure BSA00000137807000161
2, physical design: the physical arrangement of system is specifically designed and is generated by database.The physical arrangement file of database can be divided three classes by its effect:
Data file: control property information, channel information, image data information have self-extendability.
Journal file: preserve the modification information relevant, guarantee that database security and DB Backup and recovery have the file of direct relation with database.
Control documents: only need a control documents, the content of control documents comprises, (1) database name and database unique identification, and (2) data file and journal file sign, the required synchronizing information of (3) database recovery is promptly checked period.
System of the present invention also provides online help, and the Online Help System of the windows style of standard promptly is provided, and operator's classification is seeked advice from provides detailed software and hardware information, and the staff is played directive function.Version information and software developer's details of this system also are provided.
Table 6 system message list
Figure BSA00000137807000171
Error message is also pointed out by system of the present invention:
1, during software initialization, if database is opened failure, a system prompt: " data base initialize failure! ".
2, hardware initialization failure, system prompt: " open 7405 failures of frequency measurement acquisition module.Please check hardware.", or " open 7408 failures of frequency measurement acquisition module.Please check hardware.”。
The user does not input correct password, system prompt: " password bad please re-enter when 3, logining edit pattern! ".
4, create a new project, the user does not have the typing project name, system prompt: " project name could not be sky! ".
When 5, logining edit pattern, the user does not input password, system prompt: " the password input could not be sky! ".
When 6, revising password, the user is the input validation password not, system prompt: " confirm that password can not be sky! ".
When 7, revising password, entered passwords differ, system prompt: " import incorrectly, please reaffirm password! ".
System prompt: " you do not have authority deletion acquiescence engineering project when 8, not having user's Force Deletion engineering project of enough authorities! ".
When 9, the user attempted the engineering project of modification system reservation, system prompt: " this project project was system's suspended item, can not edit.If any specific (special) requirements, please get in touch " with the software developer.
10, after the user had selected same parameter, system provided prompting: " this parameter is selected, please select other parameter or carry out self-defined during channel arrangement! ".
11, during channel arrangement, same passage is repeated to select, and system provides prompting: " this extended channel is selected, please select other passage.”。
12, after data volume that real-time collection or analog simulation obtain surpassed certain limitation, system provides prompting: " data bulk had surpassed the Excel maximum permissible value.System will jump to save routine automatically.You can select to preserve data, or cancel, abandon surveying data.”。
When 13, hardware DA exported, the user had selected wrong signal type, and system provides prompting: " signal type is selected mistake, please reselect! When needs output pulse, the signal of two passages must all get the strobe pulse signal ".
Above-mentioned error handling processing countermeasure is: because data have had backup in database, thus after makeing mistakes, system can rely on the restore funcitons of database, and rely on journal file to make warm boot, even if the system crash user data can not lost or be destroyed yet.But might take the more data storage space, the balance measure is decided by the user.
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (14)

1. a TT﹠C software generation method is characterized in that, may further comprise the steps:
S101: dispose the project information of TT﹠C software to be generated, and described project information is saved in database, specifically comprise:
Configuration-system information, described system information comprises: the TT﹠C software name to be generated and the sampling interval of described TT﹠C software,
The channel information of configuration parameter, described parameter comprises: detected parameters, calculating parameter and output controlled variable;
S102: generate the user interface of described TT﹠C software, generate corresponding controls according to the channel information of described detected parameters, the channel information of calculating parameter and the channel information of output controlled variable, and described control is aligned on the described user interface;
S103:, obtain the external signal data of detected parameters or simulate analog signal data according to described detected parameters.
2. TT﹠C software generation method as claimed in claim 1 is characterized in that, 0.2~60000 millisecond of the sampling interval of described image data.
3. TT﹠C software generation method as claimed in claim 2 is characterized in that, described system information also comprises: organization that described TT﹠C software is used and the used password of the described TT﹠C software of login.
4. TT﹠C software generation method as claimed in claim 1 is characterized in that, the described step that the channel information of the channel information of described detected parameters and calculating parameter is imported form that also comprises between step S101 and step S102.
5. TT﹠C software generation method as claimed in claim 1 is characterized in that, the mode that control is arranged among the described step S102 is to arrange according to the configuration sequence piecemeal of detected parameters, specifically comprises:
Obtain total number of described detected parameters and calculating parameter;
If the square root of total number is an Integer n, so described user interface is divided into the capable n row of n;
If the square root of total number is not an integer, and integral part is n, judges that then n * (n+1) is whether greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+1 (n+1) greater than total number of control;
If n *, so just the interface is divided into the capable n row of n+2 (n+1) less than total number of control.
6. TT﹠C software generation method as claimed in claim 5 is characterized in that, described in step S102 control also comprise after being aligned on the described user interface:
Change the appearance attribute of described control, to edit described user interface;
With generate or editor after user interface be saved in database;
Edit described user interface when logining described TT﹠C software once more.
7. TT﹠C software generation method as claimed in claim 1 is characterized in that, described step S103 specifically comprises:
Gather the external signal data of described detected parameters correspondence;
With the data presentation that collects in each corresponding controls of man-machine interface;
The data that collect are saved in the form;
The data that collect are carried out signal analysis and processing;
Data after handling are generated form;
Import and check the detection data of having preserved or handle after data.
8. as each described TT﹠C software generation method among the claim 1-7, it is characterized in that, between step S102 and S103, also comprise the step of utilizing software debugging aids that the external digital signal data of gathering are debugged.
9. a TT﹠C software generation system is characterized in that, comprising:
Project management module, be used for TT﹠C software to be generated is configured to project information, and described project information is saved in database, specifically comprise: the system information configuration module: be used to dispose the TT﹠C software name to be generated and the sampling interval of described TT﹠C software, the channel information configuration module of parameter: be used to dispose the channel information of TT﹠C software desired parameters to be generated, described parameter comprises: detected parameters, calculating parameter and output controlled variable;
The user interface generation module, be used to generate the user interface of described TT﹠C software, generate corresponding controls according to the channel information of described detected parameters, the channel information of calculating parameter and the channel information of output controlled variable, and described control is shown on the described user interface;
Data operation modules is used for according to described detected parameters, obtains the external signal data of detected parameters or simulates analog signal data.
10. TT﹠C software generation system as claimed in claim 9 is characterized in that, described system configuration module also is used to dispose organization and the used password of the described TT﹠C software of configuration registry that described TT﹠C software is used.
11. TT﹠C software generation system as claimed in claim 9 is characterized in that, described system also comprises: the module that is used for the channel information of the channel information of described detected parameters and calculating parameter is imported form.
12. TT﹠C software generation system as claimed in claim 9 is characterized in that, described system also comprises:
The user interface editor module is used to change the appearance attribute of described control, to edit described user interface;
User interface is preserved module, be used for generate or editor after user interface be saved in database;
The user interface modifications module is edited described user interface when logining described TT﹠C software once more.
13. TT﹠C software generation system as claimed in claim 9 is characterized in that, described data operation modules comprises:
Data acquisition module is used for gathering by data acquisition unit the external signal data of described detected parameters correspondence;
Data disaply moudle, the data presentation that is used for collecting is to each corresponding controls of man-machine interface;
Data are preserved module, and the data that are used for collecting are saved in form;
Signal processing module is used for the data that collect are carried out signal analysis and processing;
The report generation module is used for the data after handling are generated form;
Data are checked module, be used to import and check the detection data of having preserved or handle after data.
14., it is characterized in that described system also comprises as each described TT﹠C software generation system among the claim 8-13:
The signal data debugging module is used to utilize software debugging aids that the signal data of gathering is debugged.
CN201010194803A 2010-06-08 2010-06-08 Method and system for generating measurement and control software Pending CN101872176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010194803A CN101872176A (en) 2010-06-08 2010-06-08 Method and system for generating measurement and control software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010194803A CN101872176A (en) 2010-06-08 2010-06-08 Method and system for generating measurement and control software

Publications (1)

Publication Number Publication Date
CN101872176A true CN101872176A (en) 2010-10-27

Family

ID=42997095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010194803A Pending CN101872176A (en) 2010-06-08 2010-06-08 Method and system for generating measurement and control software

Country Status (1)

Country Link
CN (1) CN101872176A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325156A (en) * 2011-07-14 2012-01-18 北京联合大学 Communication system for transmitting simulation data
CN102540994A (en) * 2010-12-23 2012-07-04 上海航天能源股份有限公司 High-efficiency configuration system and method
CN102692880A (en) * 2012-04-28 2012-09-26 哈尔滨工业大学 Operation monitoring system configuration monitoring page generation method
CN102857375A (en) * 2012-09-08 2013-01-02 中色科技股份有限公司 Method for managing and explaining communication protocols
CN103076753A (en) * 2012-12-27 2013-05-01 南京因泰莱电器股份有限公司 Analog channel configurable method
WO2017107159A1 (en) * 2015-12-25 2017-06-29 研祥智能科技股份有限公司 Industrial control method, device, and system for digital equipment
CN107291057A (en) * 2017-07-27 2017-10-24 许文远 A kind of industrial automatic instrument control system
CN107918359A (en) * 2016-10-09 2018-04-17 兰州交通大学 The digital control processing macroprogram and automatic generating software of a exposed semiellipsoid
CN108027597A (en) * 2015-08-13 2018-05-11 Avl 里斯脱有限公司 System for monitoring technology equipment
CN109445323A (en) * 2018-10-11 2019-03-08 上海求本信息技术有限公司 A kind of distributed intelligence TT&C software platform designing method based on WEB
CN109683865A (en) * 2018-12-26 2019-04-26 中车青岛四方车辆研究所有限公司 EMU vehicle-mounted control software generation system and method
CN109710300A (en) * 2018-11-29 2019-05-03 中国北方车辆研究所 A kind of software architecture of calibration and diagnostic software version management
CN110019297A (en) * 2017-10-13 2019-07-16 北京北方华创真空技术有限公司 A kind of historical data output processing method and device
CN110413298A (en) * 2019-07-16 2019-11-05 南京邮电大学 The method that single-chip microcontroller serially upgrades and debugs is carried out based on Labwindows platform
CN111176997A (en) * 2019-12-25 2020-05-19 珠海格力电器股份有限公司 Generalized parameter management system and parameter management method
CN111427567A (en) * 2020-03-20 2020-07-17 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN112118056A (en) * 2020-09-18 2020-12-22 中电科仪器仪表有限公司 Signal real-time simulation generation system based on data scheme
CN112461404A (en) * 2020-10-30 2021-03-09 浙江中控技术股份有限公司 Full-automatic calibration and inspection system suitable for industrial secondary instrument

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540994A (en) * 2010-12-23 2012-07-04 上海航天能源股份有限公司 High-efficiency configuration system and method
CN102325156B (en) * 2011-07-14 2013-10-16 北京联合大学 Communication system for transmitting simulation data
CN102325156A (en) * 2011-07-14 2012-01-18 北京联合大学 Communication system for transmitting simulation data
CN102692880A (en) * 2012-04-28 2012-09-26 哈尔滨工业大学 Operation monitoring system configuration monitoring page generation method
CN102857375A (en) * 2012-09-08 2013-01-02 中色科技股份有限公司 Method for managing and explaining communication protocols
CN103076753A (en) * 2012-12-27 2013-05-01 南京因泰莱电器股份有限公司 Analog channel configurable method
CN108027597A (en) * 2015-08-13 2018-05-11 Avl 里斯脱有限公司 System for monitoring technology equipment
US10921795B2 (en) 2015-08-13 2021-02-16 Avl List Gmbh System for monitoring a technical device
WO2017107159A1 (en) * 2015-12-25 2017-06-29 研祥智能科技股份有限公司 Industrial control method, device, and system for digital equipment
CN107918359A (en) * 2016-10-09 2018-04-17 兰州交通大学 The digital control processing macroprogram and automatic generating software of a exposed semiellipsoid
CN107291057A (en) * 2017-07-27 2017-10-24 许文远 A kind of industrial automatic instrument control system
CN110019297A (en) * 2017-10-13 2019-07-16 北京北方华创真空技术有限公司 A kind of historical data output processing method and device
CN109445323A (en) * 2018-10-11 2019-03-08 上海求本信息技术有限公司 A kind of distributed intelligence TT&C software platform designing method based on WEB
CN109710300A (en) * 2018-11-29 2019-05-03 中国北方车辆研究所 A kind of software architecture of calibration and diagnostic software version management
CN109683865A (en) * 2018-12-26 2019-04-26 中车青岛四方车辆研究所有限公司 EMU vehicle-mounted control software generation system and method
CN110413298A (en) * 2019-07-16 2019-11-05 南京邮电大学 The method that single-chip microcontroller serially upgrades and debugs is carried out based on Labwindows platform
CN111176997A (en) * 2019-12-25 2020-05-19 珠海格力电器股份有限公司 Generalized parameter management system and parameter management method
CN111427567A (en) * 2020-03-20 2020-07-17 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN111427567B (en) * 2020-03-20 2023-08-18 杭州涂鸦信息技术有限公司 Intelligent product rapid generation method, system and equipment thereof
CN112118056A (en) * 2020-09-18 2020-12-22 中电科仪器仪表有限公司 Signal real-time simulation generation system based on data scheme
CN112461404A (en) * 2020-10-30 2021-03-09 浙江中控技术股份有限公司 Full-automatic calibration and inspection system suitable for industrial secondary instrument

Similar Documents

Publication Publication Date Title
CN101872176A (en) Method and system for generating measurement and control software
US9053260B2 (en) Utilizing spreadsheet user interfaces with flowsheets of a CPI simulation system
US9754059B2 (en) Graphical design verification environment generator
JP4827834B2 (en) Method and apparatus for modifying process control data
CN1703703B (en) Device and method for checking railway logical software engines for commanding plants, particularly station plants
EP1917582B1 (en) Virtual testing in a development environment
US10095678B2 (en) Database user interfaces with flowsheets of a simulation system
CN102520619A (en) General-purpose satellite remote sensing simulator
US20060036799A1 (en) Multi-platform development and execution of graphical programs
CN105974907A (en) Satellite attitude control ground simulation testing system
CN205788161U (en) The test system of communication interface
CN112036023B (en) Software integrated generation system of generator transformer set protection device
CN105653245A (en) Code automatic generation system, device and method
CN107861459A (en) A kind of PLC control system and its control method of configurable aobvious control integration
CN109597475A (en) A kind of server power supply information processing method, apparatus and system
CN108388753A (en) A kind of design method, device, system and the storage medium of the wiring of SIS cabinets
CN103970967B (en) A kind of electromagnetic transient in power system simulation analysis system
CN113608731B (en) Building block programming checkpoint updating method and device, terminal equipment and storage medium
CN110135814A (en) The correlating method of BIM and project data, system and terminal device
CN107562422B (en) Programming method of controller human-machine interface and server for providing the programming tool
CN104933923A (en) A medical electronic apparatus simulation experiment teaching platform based on a virtual instrument
CN105824684B (en) A kind of implementation method of multi-mode big data software simulator
CN103809973B (en) Graphic control interface design system and graphic control interface design operation method thereof
CN114189534A (en) Design method of device interaction software simulation program in Internet of things system
CN106796430A (en) Monitoring control device test 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101027