CN101017623B - An experimental instrument and method for automatic control principle - Google Patents

An experimental instrument and method for automatic control principle Download PDF

Info

Publication number
CN101017623B
CN101017623B CN2007100672437A CN200710067243A CN101017623B CN 101017623 B CN101017623 B CN 101017623B CN 2007100672437 A CN2007100672437 A CN 2007100672437A CN 200710067243 A CN200710067243 A CN 200710067243A CN 101017623 B CN101017623 B CN 101017623B
Authority
CN
China
Prior art keywords
module
signal
white noise
sequence
automatic control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2007100672437A
Other languages
Chinese (zh)
Other versions
CN101017623A (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.)
Sinyada Technology Co.,Ltd.
Original Assignee
XINYADA SYSTEM ENGINEERING Co LTD HANGZHOU
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 XINYADA SYSTEM ENGINEERING Co LTD HANGZHOU filed Critical XINYADA SYSTEM ENGINEERING Co LTD HANGZHOU
Priority to CN2007100672437A priority Critical patent/CN101017623B/en
Publication of CN101017623A publication Critical patent/CN101017623A/en
Application granted granted Critical
Publication of CN101017623B publication Critical patent/CN101017623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This invention relates to one experiment device and method of automatic control principles, which comprises the following parts: one PC with LabView function module as virtual wave display and virtual signal generator function after connection with main module; one set of same function module to form each process of parts needed; one main module composed of switch power, AD/DA module and series communication module to generate source signal to it and to convert the module into analogue signal to form experiment box for digital signal to PC machine into digital signals.

Description

A kind of experimental apparatus of Automatic Control Theory and method
Technical field
The present invention relates to the experiment teaching instrument field, mainly be a kind of experimental apparatus and method of Automatic Control Theory, can be widely used in the course teaching experiment of " Automatic Control Theory " or " control engineering " or " Signals ﹠ Systems " of control engineering class specialty, robotization specialty, mechanical speciality, the instrument class specialty of all kinds of schools (mainly being institution of higher learning).
Background technology
The structural drawing of the experimental system of existing Automatic Control Theory is as shown in Figure 1 mostly.For this class experimental system, the student will be with the naked eye reads the data such as amplitude, time value of signal from oscillograph doing when experiment, and error is bigger, and some experiment can only be done qualitatively, and the branch folding arrangement of experimental data is also inconvenient.
On the whole, the product that is specifically designed to Experiment on Auto-Control also is not a lot, and great majority have been sold product for many years on market, and ubiquity: operation is convenient inadequately; Can not allow the student focus onto on the principle of automatic control that experiment embodies; Required class hour of laboratory is many; There is not copying ... or the like deficiency.
Summary of the invention
The present invention will solve above-mentioned existing shortcoming, and a kind of experimental apparatus and method of Automatic Control Theory is provided.
The present invention solves the technical scheme that its technical matters adopts.The experimental apparatus of this Automatic Control Theory mainly comprises a PC, mainly comprises the functional module of LabView, is used for and the function that has played virtual oscilloscope and virtual signal generator after primary module is connected; The identical little module of one set constructor is used to insert required components and parts and can constitutes various links; A primary module mainly comprises Switching Power Supply, AD/DA module and serial communication modular; Wherein, the functional module of LabView produces source signal and sends to primary module by serial communication modular, and become simulating signal by the AD/DA module converts, experimental box by constituting after amplifying by the identical little module of a set constructor, the signal of output becomes digital signal by the AD/DA module converts, returns PC by serial communication modular again.
Can overlap various links with circuit module in the described experimental box, comprise inertial element, proportional component, integral element, differentiation element, delay link and single order leading, second order vibration.
The experimental technique of this Automatic Control Theory of the present invention, key step is as follows: the signal generator of upper PC virtual instrument sends signal, pumping signal or input signal, be sent to primary module through serial communication modular, after the D/A conversion, signal is delivered to experimental box, after the experimental box of flowing through, after the A/D conversion, deliver to by serial ports in the virtual instrument of upper PC.
The effect that the present invention is useful is: experimental system of the present invention, form by PC, a primary module and some little modules.Functions such as Switching Power Supply, AD/DA, serial communication that primary module is integrated.The structure of each little module is identical, and they can constitute various links by inserting required components and parts.PC and the function that has played virtual oscilloscope and virtual signal generator after primary module is connected.
This experimental system is simplified student's operation as far as possible, and student's notice is focused on the theory that experiment embodies, but not in the operation of testing equipment, and operating platform flexibly is provided, help bringing into play student's initiative and creation enthusiasm.Aspect software design, select experiment content meticulously, when under the prerequisite of grasping experiment content better, shortening laboratory.The operation interface that design is friendly, and integrated from normal moveout correction, automatic Drafting, function such as saving result at any time; On the hardware design, each module can be configured to various links by inserting different components and parts, helps the performance of student's creativity.Free layout between the module can be accomplished with the layout of schematic diagram identically, has reduced the wiring error rate like this, has also improved student's experimental interests.
This experimental system has great software emulation function, and all experiments all have the software emulation function, and the student can partly test the grasp experimental principle by software emulation before hardware experiments, selected hardware experiments parameter.For example, the software emulation of system compensation experiment partly can be used for the system compensation on the actual engineering, and the software section of frequency characteristic experiment can be made bode figure and nyquist schemes immediately to transport function arbitrarily.
The software extensions function of this experimental system is very strong, can revise and the way of extensive experimentation function according to user's needs at short notice, and the cost of upgrading is less.In addition, native system also can make up online experimental system, can allow the student pass through the internet learning relevant knowledge before laboratory, and the experiment of function software emulation part, so just can shorten laboratory class hour when the raising student learns initiative.
Description of drawings
Fig. 1 is traditional principle of automatic control experimental system structural drawing;
Fig. 2 is a systematic square frame structural drawing of the present invention;
Fig. 3 is a hardware connection layout of the present invention;
Fig. 4 is embodiments of the invention 1 inertial element line synoptic diagram;
Fig. 5 is a circuit theory synoptic diagram of the present invention;
Fig. 6 is a program of lower computer process flow diagram of the present invention;
Fig. 7 is the mimic channel synoptic diagram of proportional component of the present invention;
Fig. 8 is the mimic channel synoptic diagram of inertial element of the present invention;
Fig. 9 is the mimic channel synoptic diagram of integral element of the present invention;
Figure 10 is the mimic channel synoptic diagram of differentiation element of the present invention;
Figure 11 is the mimic channel synoptic diagram of ratio+differentiation element of the present invention;
Figure 12 is the mimic channel synoptic diagram of proportional+integral link of the present invention;
Figure 13 is an analog device schematic diagram of the present invention;
Figure 14 is the process flow diagram of two machine communication of the present invention;
Figure 15 is frequency-domain analysis principle signal of the present invention.
Embodiment
The present invention is further detailed explanation below in conjunction with drawings and Examples.
As shown in Figure 2, the experimental apparatus of this Automatic Control Theory mainly comprises a PC, mainly comprises the functional module of LabView, is used for and the function that has played virtual oscilloscope and virtual signal generator after primary module is connected; The identical little module of one set constructor is used to insert required components and parts and can constitutes various links; A primary module mainly comprises Switching Power Supply, AD/DA module and serial communication modular; Wherein, the functional module of LabView produces source signal and sends to primary module by serial communication modular, and become simulating signal by the AD/DA module converts, experimental box by constituting after amplifying by the identical little module of a set constructor, the signal of output becomes digital signal by the AD/DA module converts, returns PC by serial communication modular again.
The principle of work of system:
Utilized the virtual instrument concept of LabView software in this system, utilize the functional module of LabView, produce source signal, promptly be equivalent to the effect of signal generator, by serial ports the signal that signal generator produces is sent to slave computer then, promptly the Single Chip Microcomputer (SCM) system of being made up of Cygnal F320 receives this signal, because the signal that PC sends over is a data-signal, therefore 12 D/A conversions that carry by Cygnal F320, convert simulating signal to, case (can overlap various links with circuit module in the experimental box by experiment after amplifying, comprise inertial element, proportional component, integral element, differentiation element, delay link and single order leading, second order vibration etc., and as can be known from the theory of principle of automatic control, the system of any complexity all can be made up of these basic modules, just the control system of any complexity is simulated after all can being overlapped by these circuit modules), signal is by after the system, the A/D conversion that the signal (being response signal) of output carries through Cygnal F320, be back to PC by serial ports again, at host computer, we utilize LabView to develop oscillograph, oscillograph (is that pumping signal compares with signal and the source signal that receives, can carry out time-domain analysis or frequency analysis easily, PC has the very strong data processing and the function of analysis, can improve the efficient and the effect of experiment greatly; Need not open the PC mainframe box during experiment, very easy to use; Simultaneously, we utilize LabView to carry at host computer control and ICP/IP protocol have also been developed remote communication module, and long-range user needs only the authentication by system, but can carry out the experiment of remote automatic control principle by the Internet net.
In addition, when carrying out system compensation, we can add corresponding correcting circuit link in circuit module, promptly proofread and correct firmly, also can add corresponding module in upper computer software, with hardware circuit, implement " soft " of system proofreaied and correct; If remove host computer, the experimental box part also can be used for traditional principle of automatic control experiment, promptly insert real signal generator, by experiment after case (system that the promptly simulated) output, insert real oscillograph again, response signal (output) can be shown, thereby carry out corresponding time domain or frequency-domain analysis; If remove slave computer, the upper computer software part also can carry out testing the experiment of various principle of automatic control by software simulation.
The characteristics of system:
Native system has been given full play to the advantage of PC, finishes collection of experiment data, storage and computing by PC, just experimental result and the theoretical folding value of dividing can be compared when experiment, has improved conventional efficient.Owing to be under the Windows environment, to use making software; man-machine interface is very friendly, and is easy and simple to handle, also comprised experimental projects such as root locus drafting that traditional means of experiment can't finish, Bode diagram drafting simultaneously; and can be used with softwares such as teaching coursewares, strengthened experiment effect greatly.This experimental provision also has the experimental program flexible configuration, is convenient to expansion and carries out advantages such as other experiments.Upper and lower computer all can alone become system, or realizes soft simulation or die plan, also can be used as other purposes at PC when not doing experiment, thereby has in fact saved equipment investment.
Automatic Control Theory or control engineering test employed equipment by PC, control chamber and printer (optional) automatically and form, high-performance single-chip microcomputer and virtual instrument technique have fully been used, feature richness, easy and simple to handle, beautiful human computer interface allow the student reach the purpose of principle of automatic control requirement of experiment in the shortest class hour.
PC as host computer adopts virtual instrument technique can play the effect of signal generation, measurement, demonstration, system's control and data processing according to different experiments respectively.Native system can also carry out software emulation, can under the situation that is not connected to external circuit, carry out software emulation to each experiment, and the function of simulation hardware has also been expanded in this emulation greatly, the user can set up model by direct input transport function, and PC can be made system's time domain, frequency domain characteristic figure fast according to this model.In addition, but the grabgraf function rapid saving experimental data that this experimental system provides has not only been saved valuable time in classroom, also is convenient to the student and does the experiment report.The powerful accurate function of native system can also be used for the dynamic design of actual robot control system(RCS) except that being used for experiment, can be used as the student and control the design software that Course Exercise is easy to learn and use automatically.
This Experiment on Auto-Control system has utilized and has utilized the TCP/IP technology to realize remote data acquisition among the LabView, can realize the tele-experimentation of Automatic Control Theory.This is extremely helpful to remote teaching from now on.
Experimental box has comprised a plurality of computing amplification modules, by allotment electric capacity, resistance, switch, can constitute the controlled device of multifrequency nature.High performance Cygnal mixed signal ISP FLASH microcontroller has been adopted in experimental box inside, and integrated A/D, D/A translation function adopt RS232 serial ports and PC to communicate.
The design of whole hardware
The hybrid simulation hardware components that designs and produces for the applicant as shown in Figure 3.Comprise a primary module, some little modules, multiple inside is packaged with the joint of components and parts such as resistance capacitance, and the double end audio frequency wiring used of the colour signal wiring that connects between the module and module for power supply.Primary module adopts the 220V mains-supplied, carries out the AC/DC conversion by switch power module.Primary module one side is drawn three lines, and blue line is the DA output line, and red line is an AD sampling incoming line, and black line is used for each little module is powered.Because little module adopts the OP07 operational amplifier, power supply needs+5V ,-5V, GND, adopt the encapsulation of audio frequency head can to accomplish that just in time single line exports three voltages simultaneously, and avoided three lines to export the situation of easy wiring error.
Fig. 4 gives an example for line, and two little modules are wherein arranged, and the little module in the left side is configured to an inertial element, and the little module in the right is configured to a phase inverter, be used for less than 0 conversion of signals for greater than 0 signal.The DA signal of primary module is connected to the input end of left side little module, the AD line is connected to the output end of the right little module, power lead is connected to the powerin end of left side little module, also the output termination of left side little module to be gone into the input end on the right then, the powerout on the left side be met the powerin on the right.Like this, the hybrid simulation hardware of an inertial element has just been put up.
1.1 main module circuit design
The hardware circuit of slave computer main control chip as shown in Figure 5.
Main devices has three: AS1117 chip, SP3223E level transferring chip and C8051F330 single-chip microcomputer.The AS1117 chip with transformer input+the 5V voltage transitions is+3.3V, as the power supply of C8051F330 single-chip microcomputer.SP3223E is intelligent RS-232 transceiver, can carry out signal between RS232 and Transistor-Transistor Logic level under 3V drives and transmit.
The C8051F330 single-chip microcomputer is to be produced by the U.S. Cygnal company that general headquarters are positioned at Texas, USA.This Cygnal company has upgraded former 51 single chip computer architectures, has designed the CIP-51 kernel with autonomous property right, makes 51 single-chip microcomputers shine new vitality, and its travelling speed is up to per second 25MIPS.
Cygnal C8051F series monolithic is integrated mixed signal SOC (system on a chip) SOC (System on Chip), have and MCS-51 kernel and the compatible fully microcontroller of instruction set, except digital peripherals parts with standard 8051, also integrated analog component and other digital peripherals and functional part commonly used in the data acquistion and control system in the sheet.
This instrument has adopted C8051F330, and this chip has numerous advantages of Cygnal C8051F series monolithic, integrated ADC and the DAC of 10 200ksps, stable performance.We are with his AD sample effect with after AD chip 0809 makes comparisons, the AD that finds C8051F330 is highly stable, make 40 to 50 times effect as long as the sample mean of doing 3 to 4 times just can reach 0809, and improve two than 0809 precision, sampling rate is also up to 200k.More valuable is that price is very cheap.
Among the last figure, POWERin inserts outside+5V direct supply, after AS1117 (voltage regulator) regulates, output+3.3V voltage, to single-chip microcomputer power supply .C1, C2 is a filter capacitor, and R1 is to show single-chip microcomputer normal power supply state for the circuit of regulating resistance .+3.3V+R2RLED+CND composition; The principle of work of C8051F330 reaches respectively forms the explanatory note of face as follows: in the JTAG module, 1 pin connects+the 3.3V power supply, is its operating voltage, 2,3,9 pin ground connection, and 4 pins link to each other with the P2.0/C20 mouth of single-chip microcomputer C8051F330, use for procedure simulation; 6 pins link to each other with the P2.0/C20 mouth of single-chip microcomputer C8051F330 after connecing R6 resistance, download for program and use; 5,7 pins and RESET key, capacitor C 5 and resistance R 4 etc. has been formed reset circuit, and resetting with .SP3223E for Single Chip Microcomputer (SCM) system is intelligent RS-232 transceiver, can carry out signal between RS232 and Transistor-Transistor Logic level under 3V drives and transmit.Among the JP4, the P0.4 of 1,3 pin and single-chip microcomputer C8051F330, P0.5 links to each other, and 13,15 pins with SP3223E link to each other simultaneously, 5,7 pins and P1.1, the P1.1 of P1.2 and C8051F330, P1.2 links to each other, and 12,10 pins with SP3223E link to each other simultaneously; 2,4,6,8 pins of JP4 link to each other with 13,15,12,10 of SP3223 chip respectively.Signal flow is: the signal generator of host computer virtual instrument sends signal (pumping signal or input signal), be sent to down bit single-chip system through serial ports, slave computer is after the D/A conversion, signal is delivered to experimental box by P0.1, flow through after the experimental box, after delivering to the built-in A/D of single-chip microcomputer conversion by single-chip microcomputer P0.1 mouth, deliver to by serial ports in the virtual instrument of host computer.
Fig. 6 is a native system program of lower computer process flow diagram, and the baud rate of serial communication is 19200, and the every 5ms of host computer sends out 10 DA values to slave computer, carries out the DA conversion after slave computer is accepted, and then does 50 sample means and reduces interference, again mean value is sent back to host computer.This external program has begun to do the mutual inspection of upper and lower computer, and the communication of guaranteeing on the one hand is correct, has played the effect of simple and easy hardware lock on the other hand.
1.2 little module circuit design
Control system is interconnected by various components to be formed, and used unit, parts and the function of different control system is inequality, as machinery, electronics, hydraulic pressure, air pressure with photoelectricity etc.For the dynamic perfromance of analytic system, must reasonably classify to the unit, the parts that vary.Character by transport function knows how not different the physical arrangement of argument, parts is, as long as its transport function is identical, dynamic perfromance is just inevitable identical.According to transport function whether identical unit of classifying, parts be called link, and forming control system and representative basic link be exactly typical link.Below respectively several typical links and transport function thereof are carried out.Attempt to find out their similitude, for its hardware design provides thinking.
(1) proportional component (claiming amplifying element again), all output quantities are directly proportional with input quantity, export undistorted again also the delay and the link of reflection input pari passu is called proportional component (as Fig. 7).
Its transport function is G ( s ) = R 2 R 1
The lever of nonelastic distortion, the electron-amplifier of disregarding non-linear and inertia, tech-generator etc. all can be thought proportional component.
(2) inertial element claims the cycle link again, generally comprises an energy-storage travelling wave tube and a dissipative cell (as Fig. 8).Because of containing energy-storage travelling wave tube, so can not reappear immediately to the input signal of sudden change.
Its transport function is G ( s ) = K Ts + 1 , Wherein K = R 2 R 1 , T = R 2 C
Can be considered inertial element as single appearance liquid level control system, electrothermal furnace furnace temperature with change in voltage system and Dan Rongchong blow-off system.
(3) integral element, characteristics are that output quantity is an input quantity to the accumulation of time, and output amplitude is linear growth, in the system all have store or the element of accumulation characteristic all has the characteristic (as Fig. 9) of integral element.
Its transport function is G ( s ) = 1 Ts , T=RC wherein
Systems such as the electronic integrator in the actual engineering, tank liquid level, oven temperature, motor speed all belong to integral element.
(4) differentiation element, the differential of the output reflection input of differentiation element, as when being input as unit-step function, output is exactly impulse function, and this is impossible in practice, so the impossible individualism of differentiation element, and it is simultaneous with other link.Differentiation element claims differentiation element again, is divided into two kinds of citation forms, promptly theoretical differentiation element and actual differentiation element (as Figure 10).
Its transport function is G (s)=Ts, wherein T=RC 2
(5) ratio+differentiation element also claims the PD link
Its transport function is G (s)=K (Ts+1), wherein K = R 2 R 1 , T = R 2 C
(6) proportional+integral link also claims the PI link
Its transport function is G ( s ) = K ( 1 + 1 Ts ) , Wherein K = R 2 R 1 , T = R 1 C
Can know by analysis these six links, each link all has and only has an operational amplifier, and they have similarity on circuit, thereby can consider to adopt unified modular design, reach the configuration of different links by different components and parts wiring.In practical design, we have adopted following PCB schematic diagram, as shown in figure 13.
Operational amplifier adopts paster OP07, and the power supply between the module adopts previous module to give the mode of a back module for power supply.This mode has requirement to power supply, in case the power supply that a module load increases will influence other several modules is wherein arranged, causes having disturbing entering, so adopt the electric capacity of one 10 microfarad and one 0.1 microfarad to carry out filtering here.
Advantage by above combination is that the system of any complexity can be formed by above simple module combinations.Therefore native system can carry out the simulation and analysis of control performance to complication system.
1.3 the realization of upper computer software
Upper computer software is mainly finished the generation of virtual signal, with the serial communication (comprising detection and correction etc.) of slave computer, virtual oscilloscope and data processing, functions such as telecommunication.
1.3.1 the realization of detection and calibration function
In this experimental apparatus, System self-test carries out as follows: host computer sends hardware detection word " U " by serial ports to slave computer, with the double host computer that is sent back to of the hardware detection word that receives, whether what host computer was relatively received character string was that " UU " judges whether slave computer connects correctly after slave computer was accepted.If acceptance error then jump out message box, " communication failure or serial ports are made mistakes, and please the scrutiny system connect in prompting.Detect once more by " determining ".As by " cancellation ", make mistakes for avoiding system, the relevant experiment content of forbidding hardware.Correctly just enter the system compensation subprogram if receive.
The system compensation subprogram before this must be earlier DA and AD short circuit, and our purpose is also to be 0 input in the time of will allowing 0 output of DA pass to AD, and the full scale output of DA also is full scale input when passing to AD.So, send out 10 0 earlier and export to DA, the value that collects is done on average, this mean value is composed to global variable and is used for doing system's zeroing correction, then sends out 10 255 again and gives DA, and the AD value of receiving is done on average, this mean value is also composed to global variable, is used for doing system's ratio adjustment.The global variable hardware flags will be changed to 0 in addition, expression has correctly connected lower computer hardware.
Zeroing of concrete system and ratio adjustment at first need to prove, because AD is 10, thereby each AD sampled value slave computer needs to deliver to host computer by the serial ports asynchronous communication at twice, thereby the serial ports that at every turn circulates is to read two bytes.The array that sampling is obtained deducts system's zeroing value then, has so just removed the situation on floating ground, then multiply by system's ratio adjustment value again, has just finished zeroing and ratio adjustment.
The mathematical principle of proofreading and correct: host computer sends 10 0 and 10 255 step signal of forming to the DA of slave computer, then AD is obtained signal (being made as f (t)) and analyzes, and finds to have the phenomenon of floating ground and signal span deficiency.Can calculate zeroing value a and signal span b this moment, then the signal f (t) that receives deducted zeroing value a, multiply by coefficient c/b again, can obtain reasonable calibration result.
What also require emphasis any is exactly to allow slave computer with the double host computer that is uploaded to of hardware detection word why.This is because if the TXD and the RXD of short circuit PC serial ports, though do not connect hardware circuit, software can be received U equally, like this erroneous judgement will be arranged, but host computer is if slave computer is sent out U twice, this moment TXD and the RXD host computer procedure of can not out-tricking by simple short circuit PC serial ports.Slave computer test section program is as follows.
While (RI0==0); // accept the hardware detection word of host computer
RI0=0;
check=SBUF0;
SBUF0=check; // the hardware detection word of receiving is sent back to host computer
while(TI0==0);
TI0=0;
SBUF0=check; // send out once again.Also can be in the time of can avoiding the communication of serial ports unit by situation about detecting
while(TI0==0);
TI0=0;
1.3.2 time-domain analysis Module Design
In general, we design control system at a certain class input signal.Some system, as room temperature system or Water Level Regulating System, its input signal is room temperature or the height of water level that requires, this is that the deviser is known.But in most of the cases, the input signal of control system changes in unpredictable mode.For example, in Pantser Rups Tegen Luchtdoelen, the position of enemy plane and speed can't be expected, make the input signal of gun control system have stochastic pattern, thereby have brought difficulty for the performance requirement of the system that stipulates and analysis and design.For the ease of analyzing and designing, also compare simultaneously for the ease of performance to various control system, we need suppose the input function form that some are basic, are referred to as typical input signal.So-called typical input signal is the input signal form that often runs into according to system, more Utopian basic input functions in addition on mathematical description.Type signal commonly used has unit step signal, slope (speed) signal, unit acceleration (para-curve) signal.
For time-domain analysis, we need as required type signal to be generated the array form on host computer, again it is sent to slave computer with fixed frequency one by one from serial ports, and the result that slave computer is sampled does corresponding record, then two groups of data are compared display analysis, and provide hold function in the mode of figure.
Step signal, pulse signal, ramp signal and acceleration signal are the generation module of four kinds of type signals, all are to produce signal with the form of array.Signal shows and preserves module, adopts the jpeg form to preserve at present, and handle preserving mistake.
The hardware system of experiment is a second-order system, and the unit of X-axis is sampling interval, is 5ms at present, thereby can analyze rise time, time delay, time to peak, adjusting time and overshoot easily on time domain.Host computer produces a step signal as signal generator, and this step signal is sent to slave computer from serial ports through behind proportional zoom of amplitude, and slave computer carries out the DA conversion one by one, and obtains and be returned to host computer after the AD value of response and show.The precision and the effect of this experimental system are very desirable as can be seen from observed figure.
1.3.3 frequency-domain analysis Module Design
Signal in the control system can be expressed as the synthetic of different frequency sinusoidal signal.The performance of system responses under the frequency characteristic reflection sinusoidal signal effect of control system.The classical way of applying frequency characteristic research linear system is called frequency domain analysis.Though our purpose is the research system, for the work of design frequency-domain analysis module, the certain signal Processing of more most work, particularly discrete digital Signal Processing.
The frequency domain characteristic that obtains system can adopt several different methods, and generally commonly used is by obtaining system transter, substituting s with j ω again and promptly get frequency characteristic.Native system is a hybrid simulation system, and what host computer was handled is discrete signal, thereby it seems that from host computer to be processed is a discrete system.And we can gather response signal simultaneously by to system's input signal in discrete signal recovery acquisition system, and two groups of signals are carried out fast fourier transform respectively, and the plural array that obtains has promptly been expressed the frequency characteristic of system.
As long as the pumping signal of input has each frequency component, can adopt the individual pulse signal in theory as excitation.But in real system,, add that PC can't compare accurately system by a signals sampling value to find the solution, thereby we adopt and comprise the white noise sequence of various frequency components as pumping signal because desirable pulse signal is unavailable.
Host computer has produced a white noise sequence, passes to slave computer with fixed frequency one by one by serial ports, and slave computer receives that whenever the point of no symbol 8 bit representations just carries out the DA conversion, has so just generated the white noise signal of response.The white noise signal that generates is input to the hardware input end of hybrid simulation, output terminal in hybrid simulation produces white noise by the response signal behind the hardware system simultaneously, this signal is caught with fixing sampling rate by the AD converter of slave computer, transfer back to host computer by serial ports simultaneously, so just obtained white noise corresponding sequence corresponding to the white noise sequence of front.
PC then is multiplied by window function to white noise corresponding sequence and white noise sequence respectively.The purpose that multiply by window function is in order to reduce the energy leakage of frequency spectrum at HFS, because the signal that we handle is not desirable periodic signal, sampling number is also few, connecting together at a plurality of sequence datas is the sign mutation that will appear at the linking point place, cause the appearance of HFS energy, the window function that adds is generally the two ends amplitude near 0 function, go to take advantage of each sequence with such window function, couple together then and just make the amplitude of tie point, so just avoided the problem of spectrum leakage all near 0.
Two sequences that are multiplied by window function are carried out fast Fourier transform (FFT) respectively, time-domain signal is transformed into frequency field to get on, to handle sequence that the white noise response sequence obtains then divided by handling the sequence that white noise sequence obtains, just available is a sequence of complex numbers, this sequence of complex numbers is by after root mean square (RMS) average treatment, again each plural number is represented with amplitude and angle, just obtained phase frequency figure and amplitude frequency diagram.
Will emphasize a bit that also because this method adopts very out of true of unitary sampling, so this program adopted repeatedly sampling, and the method that connects the repeatedly sample sequence of handling by the Hanning window function reaches precision preferably.
1.3.4 the optimization of sampling and response
When doing the time domain specification experiment, though lower to sampling number and frequency requirement, if do not carry out the time-delay of 500 microseconds in Fig. 6 b interrupt response process flow diagram, still can cause the obvious shake and the noise of sampling.The time-delay that therefore must respond through experiment, as long as we find to carry out the peak value that the time-delay of 500 microseconds just can be avoided toning for the first time, is carried out 50 AD according to the flow process of the description of front again and is sampled this moment, finally can reach reasonable effect.
In addition, we have utilized and have utilized the TCP technology to realize remote data acquisition among the LabView, can realize the tele-experimentation of Automatic Control Theory.This provides support preferably for remote teaching from now on.
Because LabVIEW provides a series of TCP nodes (power function) that are used to realize network data transmission.Write server software, control DAQ equipment is finished data acquisition, utilizes the programming of TCP node that data are published on the network then.In client software, utilize the TCP node to receive these data and can realize remote data acquisition.The flow process of two machine communication as shown in figure 16.This method is actually the transmission that realizes test data by programming.
DataSocket be of releasing of NI company based on the TCP/IP standard towards measuring and the new technology of the online real time high-speed exchanges data of automation engineering, can be used in the PC or the sharing and issue of real time data between a plurality of application programs in the network.DataSocket utilizes dstp (DataSocket Transfer Protocol) agreement, resource locator URL to carry out network service.The DataSocket comparatively complicated TCP/IP programming on bottom layer of having forgone has overcome the slower shortcoming of transfer rate, simplifies even exempted the Internet programming greatly.
In the LabVIEW version more than the LabVIEW6i, all controls have all increased a specific properties that is called DataSocket Connection, utilize this attribute, can realize the communication of the DataSocket between corresponding two even a plurality of generic control on the different PCs.
The DataSocket URL address of this control can be set in the configuration dialog box of the DataSocket of control Connection attribute, and the form of address is as follows: dstp: //servername/dataname, for example: dstp: //lht/wave.If be the identical LabVIEW control of two types in two PCs be provided with identical DataSocket ConnectionURL address (for example all be dstp: //lht/wave), and its connection type (Connection Type) all is made as Publish and Subscribe, these two controls are just coupled together by DataSocket, it is synchronous that the value of these two controls can keep fully, variation has taken place in one of them control, and another control also same variation can take place synchronously.
Utilize this specific character of DataSocket, just can realize remote data acquisition: utilize server software control DAQ equipment to finish data acquisition, test data is put in the array control, in client-side software, utilize same array control to receive these data, by further programming these data are carried out relevant treatment then by DataSocket Server.In fact this method is exactly to utilize the data of the data sharing acquisition server end of DataSocket.
In addition to the implementation, the present invention can also have other embodiments.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection domain of requirement of the present invention.

Claims (5)

1. the experimental apparatus of an Automatic Control Theory is characterized in that: mainly comprise
One PC mainly comprises the functional module of LabView, is used for and the function that has played virtual oscilloscope and virtual signal generator after primary module is connected;
The identical little module of one set constructor is used to insert required components and parts and can constitutes various links; Operational amplifier adopts paster OP07, and the power supply between the module adopts previous module to give the mode of a back module for power supply, adopts the electric capacity of one 10 microfarad and one 0.1 microfarad to carry out filtering;
A primary module mainly comprises Switching Power Supply, AD/DA module and serial communication modular;
Wherein, the functional module of LabView produces source signal and sends to primary module by serial communication modular, and becomes simulating signal by the AD/DA module converts, case by experiment after amplifying, the signal of output becomes digital signal by the AD/DA module converts, returns PC by serial communication modular again; Described experimental box is to insert the various links that required components and parts constitute in the identical little module of a set constructor.
2. the experimental apparatus of Automatic Control Theory according to claim 1, it is characterized in that: can overlap various links with circuit module in the described experimental box, comprise inertial element, the experiment link of ratio Automatic Control Theory, integral element, differentiation element, delay link and single order leading, second order vibration.
3. the experimental technique of an Automatic Control Theory, it is characterized in that: key step is as follows: the signal generator of upper PC virtual instrument sends signal, pumping signal or input signal, be sent to primary module through serial communication modular, after the D/A conversion, signal is delivered to experimental box, after the experimental box of flowing through, after the A/D conversion, deliver to by serial ports in the virtual oscilloscope of upper PC; Described experimental box is to insert the various links that required components and parts constitute in the identical little module of a set constructor, an operational amplifier is only arranged in the little module, operational amplifier adopts paster OP07, power supply between the little module adopts last module to give the mode of back one module for power supply, adopts the electric capacity of one 10 microfarad and one 0.1 microfarad to carry out filtering.
4. the experimental technique of Automatic Control Theory according to claim 3, it is characterized in that: adopt to comprise the white noise sequence of various frequency components as pumping signal, host computer has produced a white noise sequence, pass to slave computer with fixed frequency one by one by serial ports, slave computer receives that whenever the point of no symbol 8 bit representations just carries out the DA conversion, has so just generated the white noise signal of response; The white noise signal that generates is input to the hardware input end of hybrid simulation, produces the white noise response signal behind the case by experiment at the hardware output terminal of hybrid simulation simultaneously; This signal is caught with fixing sampling rate by the AD converter of slave computer, transfers back to host computer by serial ports simultaneously, has so just obtained the white noise corresponding sequence corresponding to the white noise sequence of front; Wherein the hardware of hybrid simulation is meant the system that is made up of jointly single-chip microcomputer and experimental box.
5. the experimental technique of Automatic Control Theory according to claim 4, it is characterized in that: respectively white noise corresponding sequence and white noise sequence are multiplied by window function, the window function that adds is the two ends amplitude near 0 function, two sequences that are multiplied by window function are carried out fast fourier transform respectively, time-domain signal is transformed into frequency field to get on, to handle sequence that the white noise response sequence obtains then divided by handling the sequence that white noise sequence obtains, just available is a sequence of complex numbers, this sequence of complex numbers is by after the root mean square average treatment, again each plural number is represented with amplitude and angle, just obtained phase frequency figure and amplitude frequency diagram.
CN2007100672437A 2007-02-09 2007-02-09 An experimental instrument and method for automatic control principle Active CN101017623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100672437A CN101017623B (en) 2007-02-09 2007-02-09 An experimental instrument and method for automatic control principle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100672437A CN101017623B (en) 2007-02-09 2007-02-09 An experimental instrument and method for automatic control principle

Publications (2)

Publication Number Publication Date
CN101017623A CN101017623A (en) 2007-08-15
CN101017623B true CN101017623B (en) 2010-08-18

Family

ID=38726609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100672437A Active CN101017623B (en) 2007-02-09 2007-02-09 An experimental instrument and method for automatic control principle

Country Status (1)

Country Link
CN (1) CN101017623B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779413A (en) * 2012-07-23 2012-11-14 上海汉世智能交通科技发展有限公司 Motor vehicle characteristics data acquisition analyzer and analyzing method

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714301B (en) * 2009-11-04 2011-10-05 翁木云 Operation simulation training system and training method of spectrum monitoring and direction-finding receiver
CN103514073B (en) * 2013-05-27 2015-01-28 西北工业大学 Serial port communication system based on LabVIEW passive receiving type
CN103854548B (en) * 2014-03-12 2016-05-11 北京交通大学 Autocontrol theory teaching experimental system
CN103995474A (en) * 2014-05-12 2014-08-20 西北大学 Virtual automatic control experimental system and design method of virtual automatic control experimental system
CN104407184A (en) * 2014-11-28 2015-03-11 深圳市赛格导航科技股份有限公司 Testing device and power supply interference signal generation device thereof
CN104504975B (en) * 2014-12-29 2017-08-11 清华大学 Portable comprehensive electronic experiment bed based on field programmable gate array
CN107978338B (en) * 2016-10-21 2020-09-08 深圳市中兴微电子技术有限公司 Test signal generation method and device
CN109036041A (en) * 2018-08-10 2018-12-18 上海理工大学 Automation-control experiment equipment
CN110570734A (en) * 2019-08-19 2019-12-13 天津大学 Portable comprehensive experiment box and method for measurement and control circuit
CN112798036B (en) * 2021-04-13 2021-07-02 立臻科技(昆山)有限公司 Testing device based on short circuit triggering and in-place detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494014A (en) * 2002-10-29 2004-05-05 上海理工大学 Virtual computer process control and communication experiment system
CN1905589A (en) * 2006-08-01 2007-01-31 武汉龙安集团有限责任公司 Automatic tester of adapter based on virtual apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494014A (en) * 2002-10-29 2004-05-05 上海理工大学 Virtual computer process control and communication experiment system
CN1905589A (en) * 2006-08-01 2007-01-31 武汉龙安集团有限责任公司 Automatic tester of adapter based on virtual apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779413A (en) * 2012-07-23 2012-11-14 上海汉世智能交通科技发展有限公司 Motor vehicle characteristics data acquisition analyzer and analyzing method
CN102779413B (en) * 2012-07-23 2014-10-29 上海汉世智能交通科技发展有限公司 Motor vehicle characteristics data acquisition analyzer and analyzing method

Also Published As

Publication number Publication date
CN101017623A (en) 2007-08-15

Similar Documents

Publication Publication Date Title
CN101017623B (en) An experimental instrument and method for automatic control principle
CN102147619B (en) Virtual instrument-based motor control automatic testing system and method for electric automobile
CN102881204B (en) Digital experimental system based on universal serial bus (USB) and virtual instrument
Angrisani et al. A flexible remote laboratory with programmable device under test
Arora et al. A low cost, open source, single board heater system
CN102830629B (en) Testing device and method of power electronic control system
Callaghan et al. Intelligent user support in autonomous remote experimentation environments
CN112505528A (en) STM 32-based detection system
CN104933923A (en) A medical electronic apparatus simulation experiment teaching platform based on a virtual instrument
WO2003010612A2 (en) Multifunction interface device for use, inter alia, in laboratory procedures
CN109658769A (en) A kind of low order LTI continuous system characteristic comprehensive experiment device
CN206451035U (en) A kind of satellite control system ground checkout equipment automates combined adjuster
CN105245252B (en) A kind of voltage Power Line Carrier Channel communication environment simulation system
CN113109691A (en) Portable circuit board test equipment based on VI curve
CN201607514U (en) Automobile electric signal screen tester
CN201725181U (en) Automatic control principle experimental module
CN206946788U (en) A kind of novel electron technology experiment system based on MCU
CN201765732U (en) Automatic control principle experiment module
Bai et al. Design and implementation of an embedded remote electronic measurement system
CN205898913U (en) Universal tool is used in electronic test equipment test
Galwas et al. Virtual laboratory-A future part of the new web-based model of undergraduate engineering studies developed by Warsaw University of Technology
CN214310775U (en) STM 32-based detection system
CN114267228B (en) Analog circuit, detection circuit and circuit inspection method for electronic experiment box
Lavayssière et al. LaboREM-A Network of Open Source Remote Laboratories for Learning.
CN201829099U (en) Experiment module for automatic control principle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051

Patentee after: Sinyada Technology Co.,Ltd.

Address before: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051

Patentee before: SUNYARD SYSTEM ENGINEERING Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051

Patentee after: SUNYARD SYSTEM ENGINEERING Co.,Ltd.

Address before: 310053, 3888 Jiangnan Avenue, Hangzhou, Zhejiang, Binjiang District

Patentee before: HANGZHOU SUNYARD SYSTEM ENGINEERING Co.,Ltd.