Summary of the invention
Purpose of the present invention just provides a kind of electric system all-digital real-time simulation physical interface device.The computing platform corresponding with electric system all-digital real-time simulation physical interface device of the present invention is a high-performance server group of planes.
For this reason, the invention provides a kind of physical interface device of all-digital real-time simulation system of power system, comprising: cabinet is used to install the cabinet inner module;
Base plate is used to provide power bus, synchronous bus and pci bus;
The polylith power panel is used to provide redundant, power supply power supply reliably;
Master control borad is used to control all functions plate and the liquid crystal display of whole cabinet;
Liquid crystal display is used for operation monitoring and equipment debugging;
The polylith feature board, the analog quantity input AI plate, analog quantity output AO plate, digital quantity input DI plate and the digital quantity output DO plate that comprise different numbers, be used to realize the function switching signal of analog quantity input AI, analog quantity output AO, digital quantity input DI and digital quantity output DO, and can be according to the quantity of using needs flexible configuration difference in functionality plate;
Correcting device comprises high-precision meter and high-precision signal source, is used for the automatic calibration of physical interface device;
Server is used to move simulated program and physical interface driver, and swap data between the physical interface device.
According to electric system all-digital real-time simulation physical interface device of the present invention, can high precision, synchronously change AI, AO, the signals such as DI, DO of real-time emulation system; The incidents such as level saltus step, trigger action of can catching are also stamped accurate markers for incident; Can realize functions such as failure wave-recording playback, traveling-wave device open-loop test with the continuous output waveform of refresh interval of minimum 2 microseconds (us).
According to electric system all-digital real-time simulation physical interface device of the present invention, realized modular design, the interface of AI, AO, DI, DO feature board is identical, can dispose the number of difference in functionality plate according to the test needs neatly.
According to electric system all-digital real-time simulation physical interface device of the present invention, functions such as fault diagnosis, automatic calibration have been realized, whether physical interface device can detect automatically channel failure, and can calibrate automatically the conversion accuracy of AI, AO feature board, to revise channel gain and channel offset.
In addition, according to electric system all-digital real-time simulation physical interface device of the present invention, synchronous, the parallel running of a plurality of physical interface devices have been realized.If the port number that physical interface device provides does not satisfy the test demand, can use a plurality of (being no more than four) physical interface device, parallel running does not have adverse effect to conversion accuracy, the conversion timing sequence of each physical interface device.
Embodiment
Fig. 1 is the synoptic diagram according to electric system all-digital real-time simulation physical interface device of the present invention, has represented the annexation between the various piece in the physical interface device.
As shown in Figure 1, electric system all-digital real-time simulation physical interface device according to the present invention mainly comprises cabinet 10, base plate 20, power panel 30, master control borad 40, liquid crystal display 50, feature board 60, correcting device 70.Cabinet 10 is used to install the cabinet inner module.Base plate 20 is used to provide power bus, synchronous bus and pci bus etc.Redundant, power supply power supply reliably that power panel 30 is used to provide.Master control borad 40 is used to control all functions plate and the liquid crystal display of whole cabinet.Liquid crystal display 50 is used for operation monitoring and equipment debugging.Feature board 60 comprises AI plate, AO plate, DI plate and DO plate, is used to realize function switching signals such as AI, AO, DI, DO, can be according to the number of test needs flexible configuration difference in functionality plate.Correcting device 70 comprises high-precision meter, high-precision signal source, is used for the automatic calibration of physical interface device.In addition, in the physical interface device operational process, need at least one high-performance server 80, this server is the part of computing platform in the analogue system, is used to move simulated program and physical interface driver, and swap data between the physical interface device.
Particularly, connect by gigabit Ethernet between master control borad 40 and the high-performance server 80; Connect by the liquid crystal control bus between master control borad 40 and the liquid crystal display 50; Be connected with synchronous bus by pci bus between master control borad 40 and the polylith feature board 60, master control borad 40 control synchronous buss are to coordinate the synchronous operation of polylith feature board 60.
For guaranteeing the conversion accuracy of physical interface device, improve interference free performance, the power panel 30 of physical interface device adopts insulating power supply and through multistage voltage stabilizing, has taken into full account circuit and wiring during design, to reduce the influence of power supply ripple to mimic channel; The AI plate uses 16 AD chips, and adopts the difference input mode; The AO plate uses 16 DA chips.For improving the operational reliability of physical interface device, all AI, the AO of physical interface device, DI, DO passage all adopt high speed optoelectronic to isolate.
Fig. 2 is the cabinet plan structure figure according to power system digital simulation physical interface device of the present invention.In cabinet 10, base plate 20 and liquid crystal display 50 are installed in the cabinet front portion, power panel 30, master control borad 40 and feature board 60 vertical being plugged on the base plate 20.Totally eight of feature boards 60, be defined as 601~608 respectively, the AI plate, AO plate, DI plate and the DO plate that comprise different numbers, wherein every block of AI plate has 8 road AI passages, every block of AO plate has 8 road AO passages, and every DI has 16 road DI passages, and every block of DO plate has 16 road DO passages, the interface of these four kinds of feature boards is identical, can dispose the number of difference in functionality plate according to the test needs neatly.
Describe operating process below in detail according to electric system all-digital real-time simulation physical interface device of the present invention.
For ease of describing, we suppose that feature board 601 is the AO plate, feature board 602 is the AI plate, the user needs three voltage quantities U1, U2, U3 and three electric current variable I1, I2, I3 are outputed to the actual physics device from the AO passage 0 to 5 of feature board 601 in l-G simulation test, and gathers the voltage signal U4 that the actual physics device returns by the AI passage 0 of feature board 602.Fig. 3 shows the test connection layout.
At all-digital real-time simulation system before external actual physics device carries out closed test by physical interface device, the user carries out wiring according to the test needs earlier, the AO passage 0 to 5 of feature board 601 and the respective channel of actual physics device are connected by shielded signal wire, the AI passage 0 of feature board 602 and the respective channel of actual physics device are connected by shielded signal wire.Then, the user is the signalization channel arrangement in real-time emulation system, voltage quantities U1, U2, the U3 AO passage 0 to 2 of corresponding function plate 601 respectively promptly is set, electric current variable I1, I2, the I3 AO passage 3 to 5 of corresponding function plate 601 respectively is set, the AI passage 0 of voltage signal U4 corresponding function plate 602 is set.In simulation process, high-performance server 80 carries out simulation calculation, and each the time step will need data U1, the U2, U3, I1, I2, the I3 that export to send to master control borad 40 by gigabit Ethernet, master control borad 40 arrives feature board 601 with data distribution again, through 0 to 5 output of the AO of feature board 601 passage; Feature board 602 is gathered the data of AI passage 0 and is issued master control borad 40 simultaneously, and master control borad 40 is uploaded to high-performance server 80 with data by gigabit Ethernet.Like this, the electric system by digital form simulation in the high-performance server 80 just and the actual physics device constituted closed loop, thereby can carry out closed loop test to the actual physics device.
Describe operation sequential below in detail according to electric system all-digital real-time simulation physical interface device of the present invention.
In simulation process, master control borad 40 and high-performance server 80 are according to fixing simulation step length T (representative value is 50us) swap data.In each time step, master control borad 40 will be finished and read AI/DI data, network and send AI/DI data, network and receive the AO/DO data, write task such as AO/DO data; High-performance server 80 will be finished network and receive tasks such as AI/DI data, simulation calculation and network transmission AO/DO data.
Fig. 4 is the operation sequential chart according to power system digital simulation physical interface device of the present invention.In the simulation process, the 40 generation cycles of master control borad are the synchronizing signal of T and issue each feature board 60, to coordinate the synchronous operation of each feature board 60.Trigger constantly in synchronizing signal, the AI plate latchs incoming level and starts the AD conversion, and the DI plate latchs and analyze incidents such as the level saltus step, trigger action in step when last, and the AO plate latchs output level and starts the DA conversion, 0/1 level signal that the output of DO plate is provided with.
The operation sequential of physical interface device is very accurate.Base and coordinated operation when feature board 60, master control borad 40 with the synchronizing signal are, the base when interrupt event that high-performance server 80 is uploaded network data with master control borad 40 is.Can controllably finish these tasks in real time for guaranteeing master control borad 40 and high-performance server 80, on master control borad 40 and high-performance server 80, (SuSE) Linux OS has been installed, and linux kernel made amendment postpone and the process switching time with the interrupt response that reduces operating system, make it satisfy the requirement that master control borad 40 and high-performance server 80 real-time network datas are received and dispatched.
For satisfying the needs that devices such as the external FACTS controller of real-time emulation system, HVDC controller carry out closed test, on the DI plate, realized the function of incidents such as the saltus step of accurate seizure level, trigger action, make its triggering that can accurately catch the transverter firing pulse constantly, the warranty test precision.Fig. 5 shows the basic sequential chart that the DI plate is caught incidents such as level saltus step, trigger action.
Before l-G simulation test, the user can be provided with the seizure trigger mode of DI plate, and alternative mode comprises that level saltus step, direct impulse trigger, negative-going pulse triggers.Fig. 5 (a) shows the sequential chart of level saltus step pattern, and Fig. 5 (b) shows the sequential chart of direct impulse trigger mode.Under level saltus step pattern, during the saltus step of DI signal level, the DI plate is caught the saltus step incident and is analyzed the markers t of jumping moment with respect to synchronizing signal, and the level value after markers t and the saltus step (0/1) is sent to master control borad 40 and finally is uploaded to high-performance server 80; Under the trigger action pattern, when the DI signal pulse triggered, the DI plate was caught trigger event and is analyzed triggering constantly with respect to the markers t of synchronizing signal, and markers t is sent to master control borad 40 and finally is uploaded to high-performance server 80.The time precision that the DI plate is caught incidents such as level saltus step, trigger action is higher than 1us.
For satisfying real-time emulation system, and then satisfy needs such as failure wave-recording playback, traveling-wave device open-loop test, on the AO plate, realized the function of the continuous output waveform of double buffering with closely-spaced continuous output waveform.Fig. 6 shows the synoptic diagram of continuous output waveform.
Before exporting beginning continuously, the user passes through the waveform that means such as failure wave-recording, nonreal time simulation need to obtain continuous output, and it is left on the high-performance server 80, and the while is opened two block buffer Buffer1 and Buffer2 on the AO plate.When output began continuously, high-performance server 80 write Wave data by master control borad 40 to the Buffer1 of AO plate earlier, and starts output, and the AO plate begins to read the data of Buffer1 and is converted into actual output level then.In the data procedures of AO plate output Buffer1, high-performance server 80 writes Wave data by master control borad 40 to the Buffer2 of AO plate.After the data output of Buffer1 finished, the AO plate began to export the Wave data of Buffer2 immediately, and this moment, high-performance server 80 write Wave data by master control borad 40 to the Buffer1 of AO plate again, and so circulation has just realized the continuous output function of waveform.Adopt the double buffering framework to export continuously, exportable Wave data length is not subjected to the restriction of AO plate buffer length, has promoted the use dirigibility greatly.According to physical interface device of all-digital real-time simulation system of power system of the present invention, the highest refreshing frequency of AO plate continuous wave output can reach 500kHz, can satisfy demands such as traveling-wave device open-loop test.
Describe automatic calibration process below in detail according to physical interface device of all-digital real-time simulation system of power system of the present invention.
Connection layout when Fig. 7 shows physical interface device and calibrates automatically.During calibration AI passage, shown in Fig. 7 (a), the input of AI feature board is received in the output in high-precision signal source, and master control borad 40 is connected by the RS-232 bus with the high-precision signal source.In calibration process, master control borad 40 reads the sampled result of AI feature board simultaneously by the output level in the total line traffic control high-precision signal of RS-232 source, and the result is analyzed and obtain by match calibration parameters such as the channel gain of AI passage and channel offset.During calibration AO passage, shown in Fig. 7 (b), the input of high-precision meter is received in the output of AO feature board, master control borad 40 be connected by the RS-232 bus with high-precision meter.In calibration process, the output level of master control borad 40 control AO feature boards reads the sampled result of high-precision meter simultaneously by the RS-232 bus, and the result is analyzed and obtain by match calibration parameters such as the channel gain of AO plate and channel offset.
Describe parallel running mode below in detail according to physical interface device of all-digital real-time simulation system of power system of the present invention.
If the number of active lanes that physical interface device can provide can not satisfy the needs of special test, can use a plurality of physical interface devices to test simultaneously, a plurality of physical interface devices can be connected on the high-performance server 80 by gigabit Ethernet, also can be connected on the different high-performance server 80.Connection layout when Fig. 8 shows a plurality of physical interface device parallel running.During parallel running, it is main website that a physical interface device need be set, and other physical interface device is a slave station.The main website physical interface device produces synchronizing signal, self does not produce synchronizing signal the slave station physical interface device, but receive the synchronizing signal that the main website physical interface device sends, base synchronous operation when this moment, each physical interface device all with the synchronizing signal of main website physical interface device was, as broad as long when the internal operation sequential of each physical interface device such as Fig. 4, shown in Figure 5 and independent operating.
In conjunction with the accompanying drawings the specific embodiment of the present invention is described above.It should be noted, the invention is not restricted to above-mentioned embodiment, under the premise of without departing from the spirit of the present invention, those skilled in the art can carry out multiple modifications and changes.