Summary of the invention
In view of this, the present invention provides a kind of no breakpoint Multiple Target Signals synthetic method, this method has hardware resource benefit
With rate height, Multiple Target Signals advantage with high accuracy.
For achieving the above object, the technical scheme adopted by the invention is that: a kind of no breakpoint Multiple Target Signals synthesis
Method the following steps are included:
1) user generates the parameter input interface that software provides, setting signal parameter by signal;
2) signal memory usage is calculated;
3) virtual memory space size needed for calculating composite signal, and according to Multiple Target Signals required precision adjustment signal arteries and veins
The PRI of punching;
4) it using step 3 signal parameter adjusted is passed through, chronologically arranges signal again in virtual memory space, obtains
To the envelope information of Multiple Target Signals;
5) intrapulse information processing is executed, adds intrapulse information for Multiple Target Signals envelope;
6) arbitrary waveform generator generates Multiple Target Signals according to multiple target wave file.
Preferably, the signal parameter in the step 1 includes signal number, the delay Delay of signal, signal pulsewidth τ, letter
Number pulse recurrence interval PRI, signal intra-pulse modulation mode and signal intra-pulse modulation parameter.
Preferably, the signal parameter in the step 1 is converted to discrete time signal parameter by continued time domain signal parameter
Formula are as follows:
τpoints=round ((τ * fs)/Ngran)*Ngran;
PRIpoints=round ((PRI*fs)/Ngran)*Ngran;
Delaypoints=round ((Delay*fs)/Ngran)*Ngran;
Wherein, τ is signal pulsewidth, and PRI is signal pulse recurrence interval, and Delay is signal delay, fsFor systematic sampling
Rate, NgranFor the accessible signal granularity of system, τpointsAnd PRIpointsFor after digitizing and adjusting Relationship Between Size
Signal pulsewidth and signal pulse recurrence interval, DelaypointsFor the discrete points of delay.
Preferably, the detailed process of the step 2 are as follows:
The first step initializes memory headroom;
Second step, circulation stores each input pulse signal, and recording impulse position in memory headroom;
Third step counts signal sampling point number and idle sampling point number after all Signal averagings;
4th step, the calculating of space utilization rate:
Space utilization rate=signal sampling point number/memory headroom size.
Preferably, the detailed process of the step 3 are as follows:
The first step sets currently available gross space;
Second step can use the minimum memory headroom of search in gross space in setting;
Third step, there are minimum memory headroom, then minimum memory headroom is as signal occupied space, signal parameter without
Adjustment;There is no minimum memory headrooms, search again for, and the smallest space of pulse signal PRI error is signal occupied space, and is adjusted
The entire signal PRI skeleton period.
Preferably, each signal stored in the minimum memory headroom is complete cycle.
Preferably, the pulse signal PRI error is defined as:
Signal PRI error=(occupied space points-signal skeleton period * signal skeleton total number of cycles)/signal skeleton week
Phase sum;
Wherein, signal skeleton total number of cycles=floor (occupied space points/signal skeleton period), floor is directed to down
It is rounded;
The new skeleton period after adjustment signal are as follows:
New skeleton period=original signal skeleton period+signal PRI error.
Preferably, the detailed process of the step 4 are as follows:
The first step, parameter after input adjustment;
Second step, in the virtual memory being calculated in step 3, count after all Signal averagings signal sampling point number and
The envelope informations such as idle sampling point number;
Signal sampling point number total in composite signal is written in Multiple Target Signals file, in composite signal by third step
Total idle sampling point number is written in signal configuration file.
Preferably, the detailed process of the step 5 are as follows:
The first step, by the signal pulse number that the total segments of the signal after synthesizing is calculated in step 4, every section of segment includes;
Second step, data size of defining arrays are every section of segment points;
Third step, the envelope information that read step 4 saves;
4th step is superimposed each letter by overall pulse number in resultant signal number and segment in chronological order in array data
Number amplitude information;
The signal segment synthesized in array data after the completion of each segment signal superposition, is saved in multiple target letter by the 5th step
In number file, and empties array and recycled next time.
Preferably, the arbitrary waveform generator in the step 6 generates analog signal using the method for digital-to-analogue conversion.
The invention has the following advantages: in the inventive solutions, because according to composite signal required precision
The PRI of signal pulse is adjusted, so that the multiple target composite signal precision generated is high.And it is needed by calculating composite signal
The virtual memory space size of occupancy ensure that the skeleton period of each signal holding full number in composite signal, so that
Multiple Target Signals frequency spectrum is continuous, and spurious reduction performance is good.Simultaneously when generating Multiple Target Signals file, by only storing signal arteries and veins
The method that interior information (signal sampling point) does not store idle sampling point not only efficiently uses hardware resource and also saves storage time.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
A kind of no breakpoint Multiple Target Signals synthetic method comprises the concrete steps that: as shown in Figure 1, first according to the spy of pulse signal
Individual signals are divided into signal sampling point (pulse width part) and an idle sampling point (pulse period interior remainder after removing pulsewidth by sign
Part) two parts.Secondly, storage signal sampling point generates Multiple Target Signals file in RAM, while generating signal configuration text
Part.It may then use that arbitrary waveform generator, multi-target simulation signal generated by the method for digital-to-analogue conversion.The random waveform
Generator is dedicated arbitrary waveform generator or the signal generator of function occurs with random waveform.
The Multiple Target Signals file only stores signal sampling point, and to idle sampling point without storage, it is empty to reach saving storage
Between purpose.The signal configuration file includes two parts content, and a part of content is total segments of signal sampling point and each
The number of segment signal sampling point, another part content are total number of segment of idle sampling point and the number of each section of idle sampling point;The letter
The signal of number sampling point and idle sampling point alternately stores, i.e., first stores the first bars sampling point information, then store first
Idle sampling point information, followed by the second bars sampling point information of storage, then followed by storage Article 2 free time sampling point information, directly
It stores and completes to all information.
Further, the Multiple Target Signals composition principle are as follows: firstly, inputting each pulse signal by user interface
Delay Delay, signal pulsewidth τ, signal pulse recurrence interval PRI, signal amplitude, in signal intra-pulse modulation mode and signal arteries and veins
The signal parameters such as modulation parameter.
Then, because the signal that the present invention is handled all is discrete time-domain signal, therefore need to be by continuous time signal Parameter Switch
For discrete-time signal parameter.The relationship of continuous time signal and discrete-time signal are as follows:
τpoints=round ((τ * fs)/Ngran)*Ngran;
PRIpoints=round ((PRI*fs)/Ngran)*Ngran;
Delaypoints=round ((Delay*fs)/Ngran)*Ngran;
Wherein, τ is signal pulsewidth, and PRI is signal pulse recurrence interval, and Delay is signal initial time delay, fsIt is adopted for system
Sample rate, NgranFor the accessible signal granularity of system, τpointsAnd PRIpointsFor after digitizing and adjusting Relationship Between Size
Signal pulsewidth and signal pulse recurrence interval, DelaypointsFor the discrete points of delay.
Then, multiple signals are synthesized in the time domain.As shown in Fig. 2, being carried out to signal S1 (t) and signal S2 (t)
Synthesis processing, generates composite signal S (t).Within the period that only pulse occur in individual signals, retain original signal envelope, closes
The pulse 2 in signal S1 (t) is only remained at the signal segment 2 in signal S (t), during this period of time signal S2 (t) no pulse
It generates.Within the period that multiple signals pulse occur simultaneously, signal envelope superposition, the signal patch in composite signal S (t) are carried out
Section 1 and signal segment 3 are then signal envelope overlapping portion, i.e., during this period of time, the pulse of signal S1 (t) and signal S2 (t)
Signal generates simultaneously or pulse signal part generates simultaneously.Then signal segment number in statistics composite signal S (t), and
Count the pulse sequence information in the sampling number and signal segment that each segment signal segment includes, the signal segment number,
Sampling number and pulse sequence information are written in signal configuration file, and the signal segment is written to Multiple Target Signals file
In.Intra-pulse modulation information is finally handled in the signal segment in composite signal S (t), forms signal waveform file and by appointing
Waveform generator of anticipating generates Multiple Target Signals.The processing mode of the composite signal S (t) and intra-pulse modulation information be all according to when
Between with systematic sampling rate signal sampling point is calculated.
In composition principle of the invention, the signal type synthesized is not limited to a type of signal, for
The signal type multiplicity of selection.It include: conventional, irregular, shake and sliding change according to pulse repetition classification of type, according to intrapulse information
Classification includes: single-frequency, diversity, LFM, NLFM, biphase coding and four phases coding.
Further, as shown in figure 3, the no breakpoint Multiple Target Signals synthesize detailed process are as follows: firstly, signal generation is soft
Part provides parameter input interface, and the signal generates the preferred W2261BP software of software in the present embodiment.User is in input interface
Input signal number, the delay Delay of signal, signal pulsewidth τ, signal pulse recurrence interval PRI, signal intra-pulse modulation mode and
The information such as signal intra-pulse modulation parameter.
In conjunction with shown in Fig. 4-5, the duty ratio that function calculate_duty_cycle calculates signal is recalled, in function
In calculate_duty_cycle, first according to input pulse signal parameter, memory headroom is initialized, that is, defines total sampling point institute
Take up space size, and each input pulse signal, recording impulse position are recycled in this section of memory headroom.Then statistics is all
Information after signal overlap, i.e., signal sampling point number sig_pnts (one or more signal pulsewidth overlappings in statistics composite signal
Part) and free time sampling point number idle_pnts (one or more signal free time laps).Finally calculate the space benefit of signal
With rate, that is, the duty ratio of signal is calculated,
Space utilization rate=signal sampling point number/memory headroom size.
As shown in fig. 6, it is virtual interior then to call function calculate_virtual_ram calculating composite signal that need to occupy
Space size is deposited, is adjusted according to PRI of the required precision to signal pulse.Because idle sampling point and signal sampling point are all by outer
Portion's input, so first setting currently available gross space as total_pnts, then in the available gross space total_ of setting
Search meets the minimum memory headroom min_pnts of condition in pnts, so that each signal stored in space is complete cycle
(pulse skeleton period):
Min_pnts=k*PRI,
Wherein k is integer, and PRI is the signal skeleton period.
If there is minimum memory headroom min_pnts, so that each signal of storage is the integer skeleton period, then
Min_pnts is returned to as signal occupied space, signal parameter does not adjust.If there is no minimum memory headroom min_pnts,
So that each signal of storage is the integer skeleton period, then search again for, it is the smallest that calculating meets pulse signal PRI error
Available space is as signal occupied space.PRI error is defined as:
Signal PRI error=(occupied space points-signal skeleton period * signal skeleton total number of cycles)/signal skeleton week
Phase sum;
Wherein, signal skeleton total number of cycles=floor (occupied space points/signal skeleton period), floor is directed to down
It is rounded;
The new skeleton period after adjustment signal are as follows:
New skeleton period=original signal skeleton period+signal PRI error.
Parameter, the gross space virtual_ram that setting signal occupies are finally returned to, the signal occupies gross space
Virtual_ram is virtual memory space, updates signal parameter adjusted, i.e., the new PRI skeleton period.The virtual memory
Space, which refers to, stores the memory headroom that all signal messages (all information in signal pulse PRI) need to occupy.In this method
In, only signal intrapulse information is stored, idle sampling point is not stored, so that the actual memory that wave file occupies is empty
Between be much smaller than virtual memory.
As shown in fig. 7, then function rearrange_mult_sig is called to reset multi signal time domain, first input
Signal arteries and veins after signal parameter adjusted in function calculate_virtual_ram, i.e. signal number, signal pulsewidth, adjustment
Rush repetition period PRI, signal occupied space virtual_ram;Then count all in signal occupied space virtual_ram
Information after signal overlap, i.e. signal sampling point number sig_pnts and idle sampling point number idle_pnts, in multiple signal overlaps
Part, the gain of signal is that the amplitude of all overlapped signals is superimposed after synthesis;Finally by signal number of samples total in composite signal
Mesh sig_pnts is written in Multiple Target Signals file, and total idle sampling point number idle_pnts is written to letter in composite signal
In number configuration file.When handling timing information in virtual memory space, need to consider the initial time delay of each signal, it is described
Initial time delay is a fixed value or external input value.
Intrapulse information processing is finally carried out, the wave file of composite signal is generated.The intrapulse information is handled each letter
The signal sampling point of number segment is all stored in wave file.
When carrying out without the synthesis of breakpoint Multiple Target Signals, it is adjusted according to PRI of the composite signal precision to signal pulse,
So that the multiple target composite signal precision generated is high.And the virtual memory space size that composite signal needs to occupy is calculated, guarantee
Each signal is kept for the skeleton period of full number in composite signal, and signal spectrum is continuous, spurious reduction is good.
Wherein, described function calculate_duty_cycle, calculate_virtual_ram, rearrange_
Mult_sig is signal envelope information processing content.After the signal envelope information processing is for calculating Multiple Target Signals synthesis
Envelope relationship between envelope information and individual signals and composite signal.
When the signal envelope information processing carries out the timing synthesis of signal, when the period of only individual signals appearance
It is interior, retain original signal envelope;In the period for there are multiple signals while occurring, signal envelope superposition is carried out.In function
Rearrange_mult_sig completes segment number, each fragment signal of signal after multi signal retiming is synthesized later
Pulse sequence information in the number of sampling point and each segment.Pulse sequence information in each segment includes a certain conjunction
At timing position of each pulse signal number and each pulse signal for including in segment in synthesis segment.When a certain
Pulse signal is synthesized in segment and do not included, then is set as 0.Pulse sequence information in each segment is in subsequent arteries and veins
Information processing.
As shown in figure 8, a certain synthesis segment includes that each pulse signal number specifically refers to, each signal is read in the letter
The pulse signal number generated in number segment, the signal segment are by " segment starting " mark to " segment terminates " mark
It terminates.Signal S3 (t) pulse-free signal in signal segment shown in Fig. 4, therefore its number is set as 0, signal in the signal segment
S4 (t) pulse signal number is 3, and signal S5 (t) pulse signal number is 1 in the signal segment.
The composite signal intrapulse information processing effect is the addition intra-pulse modulation information into composite signal, is formed final
Composite signal.The signal intrapulse information handles detailed process are as follows:, will be each according to the information that signal envelope information processing obtains
The intrapulse information of a signal is synthesized, and multiple target wave file is formed.As shown in figure 5, firstly, by function rearrange_
The total segments of signal after synthesis is calculated in mult_sig.Secondly, array data is for storing data sample, space size
For the sampling point number of each segment signal segment.Then, the ginseng of each signal of user interface of software input is generated according to signal
Number, signal message is synthesized in signal segment, i.e., is handled resultant signal number and overall pulse number in array data, on time
Between laminated structure each signal amplitude information.Finally, after the completion of the superposition of each segment signal, the letter that will be synthesized in array data
Number segment is saved in Multiple Target Signals file, then carries out the processing of next signal segment.
Further, after the synthesis of no breakpoint Multiple Target Signals, the signal sampling point of each signal segment is all stored in
In multiple target wave file.Then, arbitrary waveform generator reads file, while basis according to the signal number of samples of signal segment
Interval points addition free time between signal segment, complete pulse signal sampling point is generated, and download in memory, adopted
Analog signal is exported with the method for digital-to-analogue conversion.
Multiple Target Signals synthetic method of the invention, when generating Multiple Target Signals file, by only storing in signal arteries and veins
The method that information does not store idle sampling point not only efficiently uses hardware resource and also saves storage time.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.