Summary of the invention
(1) technical problems to be solved
It is directed to existing technical problem, the present invention provides a kind of synchronization timing triggering system applied to particle accelerator
And method, at least partly solving the above technical problem.
(2) technical solution
The present invention provides a kind of synchronization timing triggering system applied to particle accelerator, which can be connected to one few
Client carries out data interaction, the synchronization using the mode of client-side/server-side between client and synchronization timing triggering system
Timer and trigger system includes:
Example generating system is made of PXIe/PXI industrial personal computer and example output board card, which is used for
According to example document number from database index example file, which exports example optical signal according to example file,
PXIe/PXI industrial personal computer is carried out data transmission with example output board card by PXIe/PXI High speed rear panel bus;
Example Transmission system, for transmitting the example optical signal;
Example reception/interpreter, for receiving example optical signal and being converted to example code, by the example code and example of conversion
Reception/interpreter storage triggering example code comparison, if the two example code is completely the same, generates trigger signal or level, touches
Synchronous equipment is needed in hair particle accelerator.
Wherein, example Transmission system connects at least one example reception/interpreter, it is each need synchronous equipment have with
Corresponding example reception/interpreter, example optical signal is fanned out to and is distributed as multiple example optical signals by example Transmission system, together
When be transferred to and each need the synchronous corresponding example reception/interpreter of equipment.
Optionally, PXIe/PXI industrial personal computer is provided with example editing interface, example control interface, control logic processing and plate
Block the function of driving, example editing interface is stored in database for writing example file;Example control interface is for selecting
It selects example document number and carries out parameter setting;Control logic processing is for literary from database index example according to example document number
Part;Labcard driver is for driving example output board card to export example optical signal according to example file.
Optionally, example Transmission system is by multiple tree structures for being fanned out to device and being formed by connecting by plastic optical fiber, each fan
Device includes at least an output interface out, and example optical signal is enabled to be transferred to multiple example reception/interpreters simultaneously.
Optionally, example file includes example title, delay time and number of repetition, and example title is for specified triggering
Equipment;Delay time is used to limit the interval time since last time example end of output to this output;Number of repetition is used for
Limit the number that current case repeats output.
Optionally, example reception/interpreter includes network interface and optical signal interface, and network interface is used for from database
The triggering example code that load needs synchronous equipment must be responsive to is to example reception/interpreter;Optical signal interface is for receiving institute
State example optical signal.
Optionally, information is carried out using standard industry OPC-UA communication protocol between client and synchronization timing triggering system
Interaction, to provide multi-client access.
Optionally, it is isometric that multiple plastic optical fibers being fanned out between device are connected, so that the transmission range of example optical signal is equal.
Optionally, PXI industrial personal computer is equipped with multiple peripheral slots, and example output board card is inserted in one of slot, with after an action of the bowels
Function Extension of the phase to synchronization timing triggering system.
Optionally, example output board card includes: light signal output end mouth, for exporting example optical signal;Debugging interface is used
It is debugged in the performance to example output board card.
Another aspect of the present invention provides a kind of synchronization timing triggering method, comprising: PXI industrial personal computer according to example document number from
Example file is indexed in database;Example output board card receives example file by PXI High speed rear panel bus, and according to example text
Part exports example optical signal;Example optical signal is fanned out to and is distributed as multiple example optical signals by example Transmission system;Each needs
The corresponding example reception of synchronous equipment/interpreter receives example optical signal, and is converted into example code, by the example code of conversion with
Example reception/interpreter storage triggering example code comparison, if the two example code is completely the same, generates trigger signal or electricity
It is flat, it triggers in particle accelerator and needs synchronous equipment.
(3) beneficial effect
The present invention provides a kind of synchronization timing applied to particle accelerator and triggers system and method, including the utility model has the advantages that
1, the system uses the hardware plan of PXI industrial personal computer+PXI plug-in type example output board card, has storage abundant
Resource and computing resource can be convenient and analyzed data, handled and stored, and solves aforementioned mentioned system on chip and calculates
The problem of function and storage resource deficiency effectively increases the control accuracy and speed of system.
2, data interaction is carried out by PXI bus between controller and example output board card in system, ensure that data
Transmission speed, real-time, reliability and the synchronism of system effectively improve, meanwhile, PXI chassis expansion slot provides superfluous
Remaining slot so as to later period system function extension.
3, the system is capable of providing multi-client access, and uses standard industry communication agreement OPC-UA, solves communication
The problem of port and resource contention, while ensure that the standardization and normalization of communications protocol.
4, the application of visual instrument technology effectively reduces the period of hardware research and development, improves the reliability of system
And it is maintainable, system upgrade difficulty is avoided, the task difficulty of system is reduced.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.
The embodiment of the present invention proposes a kind of particle accelerator synchronization timing triggering system, which can be connected to one few
Client, is capable of providing multi-client access, and structure is as shown in Figure 1.The system can be used for medical heavy particle therapy device,
In medical heavy particle therapy device therapeutic process, synchronization timing trigger accelerator and treat terminal synchronization in need equipment,
With an accurately time reference synchronous operation, the particle beams needed for generating treatment.Its structure includes example generating system, example
Transmission system and example reception/interpreter, wherein example Transmission system connects at least one example reception/interpreter, Mei Gexu
The equipment to be run has corresponding example reception/interpreter, the thing that example Transmission system generates example generating system
Example optical signal is fanned out to and is distributed as multiple example optical signals, while being transferred to each corresponding example of equipment for needing synchronization and connecing
Receipts/interpreter.Lower mask body introduction.
Example generating system is used for according to example document number from database index example file, further according to the example file
Export example optical signal.
The example generating system is made of PXIe/PXI industrial personal computer and example output board card, is had in PXIe/PXI industrial personal computer
Corresponding control software.PXIe/PXI industrial personal computer is the server that synchronization timing triggers system comprising PXIe/PXI controls machine
Case, PXIe/PXI core bus, system controller and example output board card, as shown in Figure 2.When need synchronization timing trigger unite
When the one corresponding equipment of triggering, physics personnel issue example document number, setting operation by host computer (central monitoring client)
Parameter and load request, system controller running control software, according to example document number automatic indexing example in the database
The corresponding example file of document number, then be loaded onto the example file and operating parameter that index by PXIe/PXI core bus
In the onboard RAM of example output board card.Example output board card receive host computer sending enabled instruction after, then in strict accordance with
The example optical signal of example file and operating parameter output 32Bit.Meanwhile the instantaneous operating conditions of example output board card can pass through
Core bus real-time Transmission is shown that is, example output board card and controller are logical to PXIe/PXI industrial personal computer by interface
The High speed rear panel bus for crossing the offer of PXIe/PXI cabinet carries out data interaction.
Specifically, PXIe/PXI industrial personal computer is provided with example editing interface, example control interface, control logic processing and plate
The functions such as card driving are write example file by example editing interface and are saved in the database, selected by example control interface
The example document number currently needed is selected, is handled by control logic according to example document number automatic indexing example in the database
The corresponding example file of document number, then be loaded onto the example file and operating parameter that index by PXIe/PXI core bus
In the onboard RAM of example output board card.
Wherein, example file is write according to beam energy needed for treatment and treatment line, different treatment lines and energy
Measurer has corresponding example file, and therefore, physics personnel can be edited in advance all according to actually required by physical computing
Beam energy and the corresponding example file for the treatment of line, and save in the database.When which example file is actual needs use, then
In the onboard RAM for being loaded into example output board card after indexing in database according to example reference number of a document.
One example file is made of example title, delay time and number of repetition, as shown in table 1.
Table 1
16 system numbers expression of the example title by 8 strict difinitions, format are as follows: " C0XXYYZZ ", example title are divided into three
Section, " C0 " are to start byte, and " XX ", " YYZZ " represent different headend equipments, acceleration energy and corresponding treatment line.
Delay time indicates that last time example end of output to this example starts the relative time-intervals of output, and the present invention is real
Applying a delay precision for example board was 10 nanoseconds.
Number of repetition indicates that currently selected example continuously repeats the number of output, if number is 1, current case terminates simultaneously
Automatically begin to next example output;If it is greater than 1, then current case output and delay time are recycled, until reaching setting
Number.
PXIe/PXI industry control cabinet is provided with a system slot and multiple peripheral slots, wherein in multiple peripheral slots
Include a star-like trigger controller slot.System controller is inserted into the system slot of PXIe/PXI industrial personal computer, example output
One in addition to star-like trigger controller slot of board insertion sets in slot, be arranged multiple slots purpose be to provide for it is superfluous
Remaining slot, the extension so as to the later period to PXIe/PXI industrial personal computer function.In the embodiment of the present invention, PXI industry control cabinet uses Ling Hua
(ADLINK) the eight slot PXI cabinet of 3U of company PXIS-2630 model supports 3U PXI and Compact PCI module, compatible PXI
Rev.2.2 specification, provides a system slot and 7 peripheral slots, and system controller uses Ling Hua (ADLINK) company
PXI-3950 model controller, controller CPU: CoreTM2 Duo T7500 2.2GHz, front side bus: 800MHz,
Maximum supports 4GB SO-DIMM memory, and two gigabit Ethernet RJ-45 network ports shown with LED are provided on front panel,
4 ports USB2.0,320GB SATA hard disc.The PXI cabinet meets CPCI mechanical specification, has air-cooling apparatus, meets
Industrial environment is tested (temperature, humidity, vibration and impact test) etc. and is required, and ensure that the EMC and electrical safety characteristic of this system,
And the property easy of integration of system.
Example output board card is the board being inserted in PXIe/PXI bus slot, occupies 1 peripheral slot, is based on FPGA skill
Art is designed, and includes an optical signal input mouth (R1), two signal emission ports (T1, T2), a standard TTL signal
Input port and a JTAG debug port, as shown in Figure 2.
For exporting example optical signal, interface type is two optical signal output interfaces (T1, T2) of example output board card
T-1522Z is connect by optical fiber with the fan-out unit of example Transmission system.Meanwhile in order to facilitate the expansion of example generating system function
Exhibition, example output board card are additionally provided with optical signal input interface (R1), and interface type R-2522Z, TTL signal input interface can connect
By external Transistor-Transistor Logic level signal, JTAG debugging interface is mainly used for the performance adjustment of example output board card.The output of example output board card
Example wavelength of optical signal be 660nm, each example is made of the binary number of 32Bit, and each bit width is 2.56us, baud
Rate is 390625bit/s, and byte order is big end mode, and FPGA memory 256MB, bus is standard PXI bus.Output optical signal
Color is visible red, and the position can be judged by the flashing of optical signal output interface feux rouges for " 1 " or " 0 ", when the position is " 1 "
When, optical signal output interface flashes feux rouges;When the position is " 0 ", light emitting interface does not flash, and is in " light-off " state, example
For output board card in " free time " state, light emitting interface is in " light-off " state always.
Example Transmission system, for transmitting the example optical signal.
Example Transmission system of the embodiment of the present invention uses optical fiber technology, is fanned out to device and plastic optical fiber is formed by connecting by multiple
Tree structure transmission network is responsible for that example generating system example optical signal is fanned out to and is distributed to the equipment for needing to trigger, knot
Structure is as shown in Figure 3.
Level-one is fanned out to the top that device is located at tree structure, is responsible for passing through the example optical signal that example generating system exports
Isometric plastic optical fiber is connect with the second level fan-out unit for being located at therapeutic device different zones, and second level fan-out unit passes through plastic light
Fibre connection three-level fan-out unit, three-level fan-out unit connect level Four fan-out unit by plastic optical fiber, according to actual needs step by step
It extends downwardly, until being connected to example reception/interpreter or front end intelligent controller, realizes the transmitting and distribution of example optical signal
Function.
Device is fanned out to including at least an output interface, enables example optical signal to be transferred to multiple examples simultaneously and connects
Receipts/interpreter, the embodiment of the present invention are fanned out to device and are fanned out to device using the ACFO model of Chinese Academy of Sciences's Contemporary Physics Research Institute,
It is responsible for receiving example optical signal and carries out power amplification, expands network transmission distance.Meanwhile all nodes are concentrated on it
Centered on node on, realization be fanned out to function.It is described to be fanned out to device 1MBps is up to the transmission rate of signal, using red
Visible light, wavelength 660nm, frequency highest 1MHZ work 20~24V of voltage rating (DC).It is described be fanned out to device provide RS485,
RS232 and POF sonet standard interface is provided simultaneously with 9 with model optical fiber interface, may be implemented in the same time by internal circuit
It is interior will a kind of input trigger pulse sequence distribute simultaneously under be transmitted to the function of 9 equipment, i.e., signal 1 into 9 go out be fanned out to function.Together
When, shell uses aluminum alloy material, fixes convenient for the installation of equipment, and shell carries out grounding, improves set to a certain extent
Standby EMC and electrical safety performance.
Transmission medium of the plastic optical fiber as example signal, has that loss of signal is low, transmission speed is fast, long transmission distance,
Strong antijamming capability and it is light-weight the features such as, can effectively lifting system real-time, synchronism and anti-interference.Meanwhile light is believed
Number transmission frequency is much higher than wave transmissions frequency, and suffered forceful electric power interference is smaller, improves the EMC and electrical safety performance of system.
Example reception/interpreter, for receiving example optical signal and being converted to example code, by the example code and example of conversion
Reception/interpreter storage triggering example code comparison, if the two example code is completely the same, generates trigger signal or level, touches
Synchronizer is needed in hair accelerator.
Example reception/interpreter mainly includes that example reception/interpreter or intelligent controller, intelligent controller refer to itself
The device controller of function is received and interpreted with example, and example reception/interpreter is not have setting for example interpretation function
The standby external triggering equipment prepared.Due to needing the intelligent controller itself for having some equipment in synchronous equipment that there is example
Reception/interpretation function is equivalent to included example reception/interpreter, but have some equipment do not have example receive/interpret function,
It therefore, is that example reception/interpreter (external triggering equipment) is arranged in the equipment for not having example interpretation function.Example Transmission system
Example optical signal is directly passed into those equipment for receiving/interpreting function with example, does not have example reception/interpretation and sets
It is standby, then example optical signal is received by external example reception/interpreter.
Example reception/interpreter is provided simultaneously with network interface and optical signal interface, which adds in advance for receiving
The triggering example code of load is simultaneously stored in example reception/interpreter RAM, pre-loaded triggering example code to example reception/interpretation
Purpose in device RAM is to set the trigger condition that corresponding equipment brings into operation in advance, and the optical signal interface is for receiving
The example optical signal of example Transmission system transmitting, the purpose for receiving the optical signal when is determined according to pre-loaded triggering thing
Example condition triggers corresponding equipment.It is translated into corresponding example code after receiving example optical signal, by the example code of conversion
It is compared with example reception/interpretation system storage triggering example code, if the two example code is completely the same, example reception/interpretation
Device output transistor-transistor logic (TTL) triggering level is to needing the equipment that runs and trigger the equipment.Since example exports
System be simultaneously by example optical signal transmission to the corresponding example reception/interpreter of each equipment, therefore, each equipment be in strict accordance with
The timing of example generating system triggering example is triggered.
Example of embodiment of the present invention reception/interpreter provides RJ45 network joint operating frequency range: DC~2.5MHz, frequency
Rate stability: it is better than 10-7, frequency accuracy: is better than 10ppm, amplitude range, gear 1:0V~10V;Gear 2:-10V~+
10V is settable;Harmonic distortion: it is better than 35dBc, clutter distortion: is better than -55dBc, phase noise: -107dBc/Hz@10kHz, tool
Standby random waveform channel self-checking function, has two-way sampling channel self-checking function.
The control software that there is synchronization timing triggering system provided in an embodiment of the present invention itself to rely on, the software is using empty
Quasi- technology of instrument and meter carries out the system integration and exploitation, this makes the later period only need more cenotype to the improvement of the system and Function Extension
The software design of pass effectively reduces the period of hardware research and development, mentions without being modified or redesigning to hardware board
The high reliability and maintainability of system, avoids system upgrade difficulty.Controlling software includes Server control software and thing
Example output board card program, control software structure composed are as shown in Figure 4.
Server control software as slave computer software (PXIe/PXI industrial personal computer, that is, synchronization timing trigger system server),
It is bridge of the host computer (central monitoring client etc. controls computer) with the information interaction of example output board card, it is main to provide
Man machine operation interface realizes that protocol conversion, control logic processing, the publication of chain logical process, OPC-UA variable, example file are compiled
Collect storage, data-transformation facility (correlation function that virtual instrument table technology is realized).Operator by human-computer interaction interface into
It acts example Document Editing and saves, send example control request instruction and monitor the real-time status of example output board card.Meanwhile it taking
Device control software be engaged in provided with debugging mode and treatment mode, in treatment mode, Server control software human-computer interaction interface
All editors and control function are locked, only when operational mode is switched to debugging mode, unlock just now.As described above, clothes
Business device control software is that operator and engineer provide the interpersonal operation interface of debugging, operation and maintenance, while conduct again
OPC-UA Server issues crucial parameter and control command high speed Ethernet in the form of OPC-UA variable,
To realize synchronization timing triggering system and accelerator central monitoring system and the information exchange and data for the treatment of terminal control system
Transmission.
Server control software is the core that synchronization timing triggers system, LABVIEW and Microsoft using NI company, the U.S.
Visual Studio software is based on C/S (Client/Server) architecture design, passes through standard industry OPC- as developing instrument
UA agreement and client carry out data interaction.By this design, so that synchronization timing trigger can satisfy multi-client visit
The demand asked when solving multi-user and carrying out information exchange with it, the problem of PORT COM and resource contention, ensure that communication association
The standardization and normalization of view facilitates the seamless connection of this system Yu other standards industrial control system, substantially reduces system development
Period, improve upgrading replacement product washability.Meanwhile the life cycle of software is extended, so that whole system standard, opening
It puts, is conducive to later system and extends and upgrade.
Example output board card program generates according to the control instruction and example file that software issues is controlled and exports example light
Signal.Meanwhile the real-time output state of example output board card is fed back into Server control software, realize example output board card fortune
Row status monitoring function.
On the other hand the embodiment of the present invention provides a kind of synchronization timing triggering method, comprising:
S1, example generating system export example optical signal according to example file.
Specifically, host computer (central monitoring client, treatment client terminals) issues example document number and load request
To PXIe/PXI industrial personal computer, PXIe/PXI industrial personal computer is according to example document number automatic indexing example document number pair in the database
The example file answered, then the example file and operating parameter that index are loaded by example output board card by High speed rear panel bus
Onboard RAM in, example output board card according to example file export example optical signal;
Example optical signal is fanned out to and is distributed as multiple example optical signals and exports simultaneously by S2, example Transmission system.
Example Transmission system is formed by being fanned out to device and plastic optical fiber, is fanned out to device with multiple output interfaces, is connect when being fanned out to device
After receiving an example optical signal, internal circuit exports multiple things identical with the example optical signal according to the example optical signal
Example optical signal.
S3, example reception/interpreter generate trigger signal or level triggers equipment according to example optical signal.
The each corresponding example reception of equipment for needing to trigger/interpreter receives example optical signal, and is converted into example code,
Example code and example reception/interpreter storage triggering example code are compared, if the two example code is completely the same, generated
Trigger signal or level trigger the equipment.
In conclusion the embodiment of the invention provides a kind of synchronization timings to trigger system, it can be used for synchronization timing triggering and add
Fast device and treatment terminal synchronization in need equipment.The system uses PXIe/PXI industrial personal computer+PXIe/PXI plug-in type example
The hardware plan of output board card, have storage resource abundant and computing resource, can be convenient data are analyzed, handle and
Storage solves the problems, such as that aforementioned mentioned system on chip computing function and storage resource are insufficient, effectively increases the control of system
Accuracy and speed processed;The application of visual instrument technology effectively reduces the period of hardware research and development, improves the reliable of system
Property and maintainability, avoid system upgrade difficulty;It is total by PXIe/PXI between controller and example output board card in system
Line carries out data interaction, ensure that the transmission speed of data, real-time, reliability and the synchronism of system effectively improve,
Meanwhile PXIe/PXI chassis expansion slot provides redundancy slot so as to the extension of later period system function;The system is capable of providing
Multi-client access, and standard industry communication agreement OPC-UA is used, solve the problems, such as PORT COM and resource contention, simultaneously
It ensure that the standardization and normalization of communications protocol.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects
It describes in detail bright, it should be understood that the above is only a specific embodiment of the present invention, is not intended to restrict the invention, it is all
Within the spirit and principles in the present invention, any modification, equivalent substitution, improvement and etc. done should be included in guarantor of the invention
Within the scope of shield.