CN104808086A - AD acquisition board card with self-adaption function and acquisition method - Google Patents

AD acquisition board card with self-adaption function and acquisition method Download PDF

Info

Publication number
CN104808086A
CN104808086A CN201510213815.2A CN201510213815A CN104808086A CN 104808086 A CN104808086 A CN 104808086A CN 201510213815 A CN201510213815 A CN 201510213815A CN 104808086 A CN104808086 A CN 104808086A
Authority
CN
China
Prior art keywords
sampling
effective
effective value
digital signal
sampling points
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.)
Granted
Application number
CN201510213815.2A
Other languages
Chinese (zh)
Other versions
CN104808086B (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.)
BEIJING RONGXIN HUIKE TECHNOLOGY Co Ltd
Super High Transmission Co of China South Electric Net Co Ltd
Original Assignee
BEIJING RONGXIN HUIKE TECHNOLOGY Co Ltd
Super High Transmission Co of China South Electric Net Co Ltd
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 BEIJING RONGXIN HUIKE TECHNOLOGY Co Ltd, Super High Transmission Co of China South Electric Net Co Ltd filed Critical BEIJING RONGXIN HUIKE TECHNOLOGY Co Ltd
Priority to CN201510213815.2A priority Critical patent/CN104808086B/en
Publication of CN104808086A publication Critical patent/CN104808086A/en
Application granted granted Critical
Publication of CN104808086B publication Critical patent/CN104808086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Complex Calculations (AREA)

Abstract

The invention provides an AD acquisition board card with a self-adaption function and an acquisition method. The acquisition board card comprises a multi-channel AD sampling chip and a digital signal processor, wherein the digital signal processor is used for calculating sampling intervals adaptively and accurately according to input signal frequency of sine wave signals; selecting a plurality of effective sampling points from sampling points uploaded from the multi-channel AD sampling chip according to the sampling intervals; then executing the following steps: storing the effective sampling points and calculating the effective sampling points included by a signal period to obtain effective value of sine waves. By designing the number Zmax of the sampling points in advance, various sine wave signals of different signal frequencies can share the common effective calculation module, so that on the premise of guaranteeing calculation accuracy of the effective value, resources of the digital signal processor are effectively saved, and implement function, cost and FPGA (field programmable gate array) power consumption of the digital signal processor are reduced.

Description

A kind of AD analog input card and acquisition method with adaptation function
Technical field
The invention belongs to data acquisition technology field, be specifically related to a kind of AD analog input card and the acquisition method with adaptation function.
Background technology
Existing AD analog input card gathers sine wave signal and the method calculating effective value is: sample with fixed frequency offset of sinusoidal ripple signal, and be stored into successively in storer by the sampled point obtained of sampling; Digital signal processor calculates each sampled point in signal period each in storer, obtains the effective value corresponding to this signal period.
Such as, when the signal frequency of sine wave signal is 1HZ, its signal period is 1 second; Suppose that sample frequency is 100KHZ, the sampling period is 10 microseconds, i.e. 10us; Then 1 signal period needs collection 100000 sampled points, and 100000 sampled points need all to be stored in storer.And under normal circumstances, calculate the precision that effective value realizes 1% and can meet most requirement, and this precision only needs each signal period to have 5000 points, through actual verification, too much sampled point can not significantly improve effective value computational accuracy, visible, existing AD samples and the method calculating effective value has following problem: (1) too much sampled point is stored in storer, consumes a large amount of storage resources; Because digital signal processor internal storage resources is limited, therefore, need the external storage resources outside occupying volume, add system hardware cost; (2) when precision is enough, too much sampled point participates in effective value and calculates, and on the one hand, consumes the computational resource of digital signal processor; On the other hand, the performance of digital signal processor is had higher requirement, need the digital signal processor of high configuration could meet this kind of computation requirement, further increase system hardware cost.Original method also have FPGA power dissipation ratio comparatively large, can the shortcoming of survey frequency scope deficiency.
Summary of the invention
For the defect that prior art exists, the invention provides a kind of AD analog input card and the acquisition method with adaptation function, can effectively solve the problem.
The technical solution used in the present invention is as follows:
The invention provides a kind of AD analog input card with adaptation function, comprise hyperchannel AD sampling A/D chip and digital signal processor; Described hyperchannel AD sampling A/D chip is connected with described digital signal processor;
Described hyperchannel AD sampling A/D chip is used for offset of sinusoidal ripple signal and samples, and the sampled point obtained of sampling is sent to described digital signal processor;
Described digital signal processor is used for: according to the signal frequency of inputted sine wave signal, adaptively accurately calculates sampling interval; Then, from the sampled point that described hyperchannel AD sampling A/D chip is uploaded, according to described sampling interval, choose and obtain several effective sampling points; Then, operate below executed in parallel: store described effective sampling points; The effective sampling points that a signal period comprises is calculated, obtains sinusoidal wave effective value.
Preferably, described digital signal processor is FPGA.
The present invention also provides a kind of AD acquisition method with adaptation function, comprises the following steps:
S1, if AD sampling A/D chip has n sampling channel, is designated as the 1st sampling channel, the 2nd sampling channel respectively ... n-th sampling channel; Wherein, n is natural number; Digital signal processor has 1 effective value computing module;
S2, when needing when there being n road sine wave signal sampled by AD and calculate effective value, the signal frequency of every road sine wave signal sends to digital signal processor in advance; If n road sine wave signal is followed successively by: the 1st road sine wave signal, the 2nd road sine wave signal ... n-th road sine wave signal; Its signal frequency corresponds to: f 1, f 2f n; Its signal period corresponds to: T 1, T 2t n;
The maximal value Zmax of effective sampling points quantity required for the digital signal processor presetting signal period, and, the presetting minimum sampling interval t of digital signal processor 0; Wherein, described minimum sampling interval t 0setting principle be: minimum sampling interval t 0=effective value computing module calculates 1 effective value required time t y* n+t x; Wherein, t xfor margin time;
S3, described digital signal processor adaptometer calculates the sampling interval of each road sine wave signal, and circular is:
For arbitrary i-th road sine wave signal, its signal period is T i; Wherein, i=1,2 ... n; The method of S3.1-S3.3 is adopted to calculate its sampling interval:
S3.1, makes j=1;
S3.2, judges T i/ jt 0whether be less than or equal to Zmax, if judged result is yes, then the sampling interval t of the i-th road sine wave signal ithe minimum sampling interval t of=j* 0, and terminate the calculation procedure to this road sine wave signal sampling interval; If judged result is no, then perform S3.3;
S3.3, makes j=j+1, returns S3.2;
Calculate the sampling interval of each road sine wave signal thus, it is minimum sampling interval t 0integral multiple, the sampling interval of n road sine wave signal is designated as successively: sampling interval t 1, sampling interval t 2sampling interval t n;
N sampling channel of S4, AD sampling A/D chip continues to walk abreast with fixed frequency and carries out independent sample to n road sine wave signal;
S5, digital signal processor processes the n road sampled point that AD sampling A/D chip collects, and calculates effective value, and concrete grammar is:
When the signal frequency of n road sine wave signal does not all change, perform following steps:
Digital signal processor is with minimum sampling interval t 0for circulation shot clock;
(1) initial time, carries out the 1st circulating treatment procedure: namely: first digital signal processor samples the current sampling point of the 1st sampling channel, obtains 1-1 effective sampling points; Then, on the one hand, the 1st that described 1-1 effective sampling points is stored into the 1st storage area; On the other hand, effective value is calculated to 1-1 effective sampling points, effective value result is designated as A1, and A1 is stored into 2-1 storage area;
Then, digital signal processor samples the current sampling point that the 2nd sampling channel is carried, and obtains 2-1 effective sampling points; Then, on the one hand, the 1st that described 2-1 effective sampling points is stored into the 2nd storage area; On the other hand, effective value is calculated to 2-1 effective sampling points, effective value result is designated as A2, and A2 is stored into 2-2 storage area;
The rest may be inferred, until digital signal processor samples the current sampling point that the n-th sampling channel is carried, obtains 2-n effective sampling points; Then, on the one hand, the 1st that described 2-n effective sampling points is stored into the n-th storage area; On the other hand, effective value is calculated to 2-n effective sampling points, effective value result is designated as An, and An is stored into 2-n storage area;
Above-mentioned total process required time is less than but close to minimum sampling interval t 0;
(2) from described initial time, when through minimum sampling interval t 0after, carry out the 2nd circulating treatment procedure: namely: digital signal processor turns back to the 1st sampling channel, judge once whether sampling interval t is reached to current time institute's elapsed time interval to the moment that the sampled point of the 1st sampling channel conveying samples in the past 1; If reached, then the current sampling point of the 1st sampling channel conveying is sampled, obtain 1-2 effective sampling points; Then, on the one hand, the 2nd that described 1-2 effective sampling points is stored into the 1st storage area; On the other hand, calculate effective value to 1-2 effective sampling points, its computing method are: the value of 1-2 effective sampling points and A1 carry out accumulation and calculate, and the effective value result obtained is designated as A2, and upgrades A1 with A2; If do not reached, then any process is not carried out to the current sampling point of the 1st sampling channel conveying;
Then, adopt same disposal route, digital signal processor processes the 2nd sampling channel to the n-th sampling channel successively;
(3) from described initial time, when through the minimum sampling interval t of 2 times 0after, carry out the 3rd circulating treatment procedure; So constantly circulation, the sampled point that digital signal processor is carried n sampling channel, by each self-corresponding sampling interval, constantly carries out sampling and calculating effective value;
Wherein, for any one the i-th sampling channel, its signal period is T i, sampling interval is t i, then a signal period includes M=T altogether i/ t i+ 1 effective sampling points, is designated as successively: C 1, C 2c m; I-th sampling channel effective value computation process is specially:
S10: when obtaining the 1st effective sampling points C 1time, calculate effective value A1; Wherein, effective value A1 is only intermediate value;
When obtaining the 2nd effective sampling points C 2time, by effective sampling points C 2carry out accumulation with effective value A1 to calculate, obtain effective value A2; Effective value A2 is only intermediate value;
The rest may be inferred, when obtaining last effective sampling points C of one-period mtime, and and A m-1carry out accumulation to calculate, obtain effective value A m; Herein, effective value A mbe no longer intermediate value, store A m;
S20, when after first signal period, obtains M+1 effective sampling points C when follow-up m+1after, now, pass through C 2c m, C m+1the value of this M effective sampling points calculates effective value A m+1; Herein, effective value A m+1be no longer intermediate value, store A m+1;
M+2 effective sampling points C is obtained when follow-up m+2after, now, pass through C 3c m+1, C m+2the value of this M effective sampling points calculates effective value A m+2; Herein, effective value A m+2be no longer intermediate value, store A m+2;
The rest may be inferred, as long as when the signal frequency of the i-th sampling channel does not change, constantly calculates and obtain effective value, finally obtaining multiple effective value;
S30, at any time, when the signal frequency of the i-th sampling channel changes, sampling interval adaptive change, the 1st effective sampling points after signal frequency being changed is designated as C 1, then, return S10, circulation S10-S20.
Provided by the invention there is adaptation function AD analog input card and acquisition method have the following advantages:
(1) pre-designed sampling number Zmax, and, each sine wave signal of unlike signal frequency shares same effective value computing module, thus under the prerequisite ensuring valid value computational accuracy, effective resource of saving digital signal processor, reduces practical function and the cost of digital signal processor.(2) the present invention can survey frequency scope little of 0.001HZ, be particularly useful for small frequency sine wave measure, small frequency effective value can be calculated; After one-period, each sampled point exports an effective value; Without the outer RAM of sheet; Computational accuracy is high; Low in energy consumption; Save FPGA resource, reduce hardware cost.
Accompanying drawing explanation
Fig. 1 is the structural representation with the AD analog input card of adaptation function provided by the invention;
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
The invention provides a kind of AD analog input card with adaptation function, adopt all-wave Fourier algorithm to calculate sinusoidal wave effective value.Each board can calculate the effective value of 12 paths, and the frequency of each passage can be different, can be that the optional frequency of 0 to 100HZ is sinusoidal wave; Then according to the RAM resource of frequency size and signal processor inside, take into account the precision calculating effective value, self-adaptation goes out the interval of sampling simultaneously.
As shown in Figure 1, be the structural representation of AD analog input card, comprise hyperchannel AD sampling A/D chip and digital signal processor;
Described hyperchannel AD sampling A/D chip is connected with described digital signal processor; Described hyperchannel AD sampling A/D chip is used for offset of sinusoidal ripple signal and samples, and the sampled point obtained of sampling is sent to described digital signal processor;
Described digital signal processor is used for: according to the signal frequency of inputted sine wave signal, adaptively accurately calculates sampling interval; Then, from the sampled point that described hyperchannel AD sampling A/D chip is uploaded, according to described sampling interval, choose and obtain several effective sampling points; Then, operate below executed in parallel: store described effective sampling points; The effective sampling points that a signal period comprises is calculated, obtains sinusoidal wave effective value.In practical application, digital signal processor can adopt FPGA, e.g., adopts the cyclone family chip of ALTERA company.AD sampling A/D chip can adopt 26 passage high-speed parallel chips.
Based on above-mentioned AD analog input card, the present invention also provides a kind of AD acquisition method with adaptation function, comprises the following steps:
S1, if AD sampling A/D chip has n sampling channel, is designated as the 1st sampling channel, the 2nd sampling channel respectively ... n-th sampling channel; Wherein, n is natural number; Digital signal processor has 1 effective value computing module;
S2, when needing when there being n road sine wave signal sampled by AD and calculate effective value, the signal frequency of every road sine wave signal sends to digital signal processor in advance; If n road sine wave signal is followed successively by: the 1st road sine wave signal, the 2nd road sine wave signal ... n-th road sine wave signal; Its signal frequency corresponds to: f 1, f 2f n; Its signal period corresponds to: T 1, T 2t n;
The maximal value Zmax of effective sampling points quantity required for the digital signal processor presetting signal period, and, the presetting minimum sampling interval t of digital signal processor 0; Wherein, described minimum sampling interval t 0setting principle be: minimum sampling interval t 0=effective value computing module calculates 1 effective value required time t y* n+t x; Wherein, t xfor margin time;
S3, described digital signal processor adaptometer calculates the sampling interval of each road sine wave signal, and circular is:
For arbitrary i-th road sine wave signal, its signal period is T i; Wherein, i=1,2 ... n; The method of S3.1-S3.3 is adopted to calculate its sampling interval:
S3.1, makes j=1;
S3.2, judges T i/ jt 0whether be less than or equal to Zmax, if judged result is yes, then the sampling interval t of the i-th road sine wave signal ithe minimum sampling interval t of=j* 0, and terminate the calculation procedure to this road sine wave signal sampling interval; If judged result is no, then perform S3.3;
S3.3, makes j=j+1, returns S3.2;
Calculate the sampling interval of each road sine wave signal thus, it is minimum sampling interval t 0integral multiple, the sampling interval of n road sine wave signal is designated as successively: sampling interval t 1, sampling interval t 2sampling interval t n;
N sampling channel of S4, AD sampling A/D chip continues to walk abreast with fixed frequency and carries out independent sample to n road sine wave signal;
S5, digital signal processor processes the n road sampled point that AD sampling A/D chip collects, and calculates effective value, and concrete grammar is:
When the signal frequency of n road sine wave signal does not all change, perform following steps:
Digital signal processor is with minimum sampling interval t 0for circulation shot clock;
(1) initial time, carries out the 1st circulating treatment procedure: namely: first digital signal processor samples the current sampling point of the 1st sampling channel, obtains 1-1 effective sampling points; Then, on the one hand, the 1st that described 1-1 effective sampling points is stored into the 1st storage area; On the other hand, effective value is calculated to 1-1 effective sampling points, effective value result is designated as A1, and A1 is stored into 2-1 storage area;
Then, digital signal processor samples the current sampling point that the 2nd sampling channel is carried, and obtains 2-1 effective sampling points; Then, on the one hand, the 1st that described 2-1 effective sampling points is stored into the 2nd storage area; On the other hand, effective value is calculated to 2-1 effective sampling points, effective value result is designated as A2, and A2 is stored into 2-2 storage area;
The rest may be inferred, until digital signal processor samples the current sampling point that the n-th sampling channel is carried, obtains 2-n effective sampling points; Then, on the one hand, the 1st that described 2-n effective sampling points is stored into the n-th storage area; On the other hand, effective value is calculated to 2-n effective sampling points, effective value result is designated as An, and An is stored into 2-n storage area;
Above-mentioned total process required time is less than but close to minimum sampling interval t 0;
(2) from described initial time, when through minimum sampling interval t 0after, carry out the 2nd circulating treatment procedure: namely: digital signal processor turns back to the 1st sampling channel, judge once whether sampling interval t is reached to current time institute's elapsed time interval to the moment that the sampled point of the 1st sampling channel conveying samples in the past 1; If reached, then the current sampling point of the 1st sampling channel conveying is sampled, obtain 1-2 effective sampling points; Then, on the one hand, the 2nd that described 1-2 effective sampling points is stored into the 1st storage area; On the other hand, calculate effective value to 1-2 effective sampling points, its computing method are: the value of 1-2 effective sampling points and A1 carry out accumulation and calculate, and the effective value result obtained is designated as A2, and upgrades A1 with A2; If do not reached, then any process is not carried out to the current sampling point of the 1st sampling channel conveying;
Then, adopt same disposal route, digital signal processor processes the 2nd sampling channel to the n-th sampling channel successively;
(3) from described initial time, when through the minimum sampling interval t of 2 times 0after, carry out the 3rd circulating treatment procedure; So constantly circulation, the sampled point that digital signal processor is carried n sampling channel, by each self-corresponding sampling interval, constantly carries out sampling and calculating effective value;
Wherein, for any one the i-th sampling channel, its signal period is T i, sampling interval is t i, then a signal period includes M=T altogether i/ t i+ 1 effective sampling points, is designated as successively: C 1, C 2c m; I-th sampling channel effective value computation process is specially:
S10: when obtaining the 1st effective sampling points C 1time, calculate effective value A1; Wherein, effective value A1 is only intermediate value;
When obtaining the 2nd effective sampling points C 2time, by effective sampling points C 2carry out accumulation with effective value A1 to calculate, obtain effective value A2; Effective value A2 is only intermediate value;
The rest may be inferred, when obtaining last effective sampling points C of one-period mtime, and and A m-1carry out accumulation to calculate, obtain effective value A m; Herein, effective value A mbe no longer intermediate value, store A m;
S20, when after first signal period, obtains M+1 effective sampling points C when follow-up m+1after, now, pass through C 2c m, C m+1the value of this M effective sampling points calculates effective value A m+1; Herein, effective value A m+1be no longer intermediate value, store A m+1;
M+2 effective sampling points C is obtained when follow-up m+2after, now, pass through C 3c m+1, C m+2the value of this M effective sampling points calculates effective value A m+2; Herein, effective value A m+2be no longer intermediate value, store A m+2;
The rest may be inferred, as long as when the signal frequency of the i-th sampling channel does not change, constantly calculates and obtain effective value, finally obtaining multiple effective value;
S30, at any time, when the signal frequency of the i-th sampling channel changes, sampling interval adaptive change, the 1st effective sampling points after signal frequency being changed is designated as C 1, then, return S10, circulation S10-S20.
The cardinal principle of above-mentioned process is:
Digital signal processor only arranges an effective value computing module, by 1 effective value computing module, in turn effective value is calculated to the effective sampling points that each sampling channel extracts, for ensureing when calculating each passage effective value, there is not each Channel contention, need to arrange a minimum sampling interval t 0, make minimum sampling interval t 0time is greater than effective value computing module to the time needed for all path computations 1 effective value;
Then, digital signal processor is according to the signal frequency of each sampling channel, adaptometer calculates the sampling interval of each sampling channel, the principle at calculating sampling interval is: under this sampling interval, the effective sampling points quantity that this sine wave signal extracts in one cycle as far as possible close to but be no more than preset value Zmax, ensure, under the prerequisite meeting effective value computational accuracy, to process the least possible sampled point, save the resource spent by effective value calculating;
In addition, for ensureing that 1 effective value computing module can carry out effective value calculating to the effective sampling points of each different frequency in turn, need to make the sampling interval of each sampling channel be minimum sampling interval t 0integral multiple.
In addition, for each sampling channel, when carrying out effective value and calculating, first signal period, calculate a correct effective value with accumulation only; In subsequent process, often obtain an effective sampling points, this effective sampling points can obtain 1 correct effective value with N-1 effective sampling points COMPREHENSIVE CALCULATING above; Wherein, N is that the efficiently sampling of each signal period is counted; And not needing as in prior art, each independently signal period just can calculate an effective sampling points, thus improves the number of computations of effective value, finally improves the computational accuracy of effective value, enhances the real-time that effective value calculates.
Empirical tests, the present invention can when not having external SRAM, accurately calculates effective value according to the frequency self-adaption of each road sine wave signal of input, and input sine wave frequency range, at 0-100HZ, calculates effective value precision within 1%.
As can be seen here, AD analog input card and the acquisition method with adaptation function provided by the invention, have the following advantages: (1) pre-designed sampling number Zmax, and, each sine wave signal of unlike signal frequency shares same effective value computing module, thus under the prerequisite ensuring valid value computational accuracy, effectively saved the resource of digital signal processor, reduce practical function and the cost of digital signal processor.(2) the present invention can survey frequency scope little of 0.001HZ, be particularly useful for small frequency sine wave measure, small frequency effective value can be calculated; After one-period, each sampled point exports an effective value; Without the outer RAM of sheet; Computational accuracy is high; Low in energy consumption; Save FPGA resource, reduce hardware cost.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (3)

1. there is an AD analog input card for adaptation function, it is characterized in that, comprise hyperchannel AD sampling A/D chip and digital signal processor; Described hyperchannel AD sampling A/D chip is connected with described digital signal processor;
Described hyperchannel AD sampling A/D chip is used for offset of sinusoidal ripple signal and samples, and the sampled point obtained of sampling is sent to described digital signal processor;
Described digital signal processor is used for: according to the signal frequency of inputted sine wave signal, adaptively accurately calculates sampling interval; Then, from the sampled point that described hyperchannel AD sampling A/D chip is uploaded, according to described sampling interval, choose and obtain several effective sampling points; Then, operate below executed in parallel: store described effective sampling points; The effective sampling points that a signal period comprises is calculated, obtains sinusoidal wave effective value.
2. the AD analog input card with adaptation function according to claim 1, is characterized in that, described digital signal processor is FPGA.
3. there is an AD acquisition method for adaptation function, it is characterized in that, comprise the following steps:
S1, if AD sampling A/D chip has n sampling channel, is designated as the 1st sampling channel, the 2nd sampling channel respectively ... n-th sampling channel; Wherein, n is natural number; Digital signal processor has 1 effective value computing module;
S2, when needing when there being n road sine wave signal sampled by AD and calculate effective value, the signal frequency of every road sine wave signal sends to digital signal processor in advance; If n road sine wave signal is followed successively by: the 1st road sine wave signal, the 2nd road sine wave signal ... n-th road sine wave signal; Its signal frequency corresponds to: f 1, f 2f n; Its signal period corresponds to: T 1, T 2t n;
The maximal value Zmax of effective sampling points quantity required for the digital signal processor presetting signal period, and, the presetting minimum sampling interval t of digital signal processor 0; Wherein, described minimum sampling interval t 0setting principle be: minimum sampling interval t 0=effective value computing module calculates 1 effective value required time t y* n+t x; Wherein, t xfor margin time;
S3, described digital signal processor adaptometer calculates the sampling interval of each road sine wave signal, and circular is:
For arbitrary i-th road sine wave signal, its signal period is T i; Wherein, i=1,2 ... n; The method of S3.1-S3.3 is adopted to calculate its sampling interval:
S3.1, makes j=1;
S3.2, judges T i/ jt 0whether be less than or equal to Zmax, if judged result is yes, then the sampling interval t of the i-th road sine wave signal ithe minimum sampling interval t of=j* 0, and terminate the calculation procedure to this road sine wave signal sampling interval; If judged result is no, then perform S3.3;
S3.3, makes j=j+1, returns S3.2;
Calculate the sampling interval of each road sine wave signal thus, it is minimum sampling interval t 0integral multiple, the sampling interval of n road sine wave signal is designated as successively: sampling interval t 1, sampling interval t 2sampling interval t n;
N sampling channel of S4, AD sampling A/D chip continues to walk abreast with fixed frequency and carries out independent sample to n road sine wave signal;
S5, digital signal processor processes the n road sampled point that AD sampling A/D chip collects, and calculates effective value, and concrete grammar is:
When the signal frequency of n road sine wave signal does not all change, perform following steps:
Digital signal processor is with minimum sampling interval t 0for circulation shot clock;
(1) initial time, carries out the 1st circulating treatment procedure: namely: first digital signal processor samples the current sampling point of the 1st sampling channel, obtains 1-1 effective sampling points; Then, on the one hand, the 1st that described 1-1 effective sampling points is stored into the 1st storage area; On the other hand, effective value is calculated to 1-1 effective sampling points, effective value result is designated as A1, and A1 is stored into 2-1 storage area;
Then, digital signal processor samples the current sampling point that the 2nd sampling channel is carried, and obtains 2-1 effective sampling points; Then, on the one hand, the 1st that described 2-1 effective sampling points is stored into the 2nd storage area; On the other hand, effective value is calculated to 2-1 effective sampling points, effective value result is designated as A2, and A2 is stored into 2-2 storage area;
The rest may be inferred, until digital signal processor samples the current sampling point that the n-th sampling channel is carried, obtains 2-n effective sampling points; Then, on the one hand, the 1st that described 2-n effective sampling points is stored into the n-th storage area; On the other hand, effective value is calculated to 2-n effective sampling points, effective value result is designated as An, and An is stored into 2-n storage area;
Above-mentioned total process required time is less than but close to minimum sampling interval t 0;
(2) from described initial time, when through minimum sampling interval t 0after, carry out the 2nd circulating treatment procedure: namely: digital signal processor turns back to the 1st sampling channel, judge once whether sampling interval t is reached to current time institute's elapsed time interval to the moment that the sampled point of the 1st sampling channel conveying samples in the past 1; If reached, then the current sampling point of the 1st sampling channel conveying is sampled, obtain 1-2 effective sampling points; Then, on the one hand, the 2nd that described 1-2 effective sampling points is stored into the 1st storage area; On the other hand, calculate effective value to 1-2 effective sampling points, its computing method are: the value of 1-2 effective sampling points and A1 carry out accumulation and calculate, and the effective value result obtained is designated as A2, and upgrades A1 with A2; If do not reached, then any process is not carried out to the current sampling point of the 1st sampling channel conveying;
Then, adopt same disposal route, digital signal processor processes the 2nd sampling channel to the n-th sampling channel successively;
(3) from described initial time, when through the minimum sampling interval t of 2 times 0after, carry out the 3rd circulating treatment procedure; So constantly circulation, the sampled point that digital signal processor is carried n sampling channel, by each self-corresponding sampling interval, constantly carries out sampling and calculating effective value;
Wherein, for any one the i-th sampling channel, its signal period is T i, sampling interval is t i, then a signal period includes M=T altogether i/ t i+ 1 effective sampling points, is designated as successively: C 1, C 2c m; I-th sampling channel effective value computation process is specially:
S10: when obtaining the 1st effective sampling points C 1time, calculate effective value A1; Wherein, effective value A1 is only intermediate value;
When obtaining the 2nd effective sampling points C 2time, by effective sampling points C 2carry out accumulation with effective value A1 to calculate, obtain effective value A2; Effective value A2 is only intermediate value;
The rest may be inferred, when obtaining last effective sampling points C of one-period mtime, and and A m-1carry out accumulation to calculate, obtain effective value A m; Herein, effective value A mbe no longer intermediate value, store A m;
S20, when after first signal period, obtains M+1 effective sampling points C when follow-up m+1after, now, pass through C 2c m, C m+1the value of this M effective sampling points calculates effective value A m+1; Herein, effective value A m+1be no longer intermediate value, store A m+1;
M+2 effective sampling points C is obtained when follow-up m+2after, now, pass through C 3c m+1, C m+2the value of this M effective sampling points calculates effective value A m+2; Herein, effective value A m+2be no longer intermediate value, store A m+2;
The rest may be inferred, as long as when the signal frequency of the i-th sampling channel does not change, constantly calculates and obtain effective value, finally obtaining multiple effective value;
S30, at any time, when the signal frequency of the i-th sampling channel changes, sampling interval adaptive change, the 1st effective sampling points after signal frequency being changed is designated as C 1, then, return S10, circulation S10-S20.
CN201510213815.2A 2015-04-29 2015-04-29 A kind of AD analog input cards and acquisition method with adaptation function Active CN104808086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510213815.2A CN104808086B (en) 2015-04-29 2015-04-29 A kind of AD analog input cards and acquisition method with adaptation function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510213815.2A CN104808086B (en) 2015-04-29 2015-04-29 A kind of AD analog input cards and acquisition method with adaptation function

Publications (2)

Publication Number Publication Date
CN104808086A true CN104808086A (en) 2015-07-29
CN104808086B CN104808086B (en) 2017-07-28

Family

ID=53693084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510213815.2A Active CN104808086B (en) 2015-04-29 2015-04-29 A kind of AD analog input cards and acquisition method with adaptation function

Country Status (1)

Country Link
CN (1) CN104808086B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108761181A (en) * 2018-03-07 2018-11-06 珠海欧比特宇航科技股份有限公司 A kind of acquisition processing device and method of airborne 36V three-phase ac signals
CN110702972A (en) * 2019-10-08 2020-01-17 浙江大学 Adaptive sampling method and device for analog signals

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580905Y (en) * 2002-12-06 2003-10-22 清华大学 Multichannel AD collector based on USB
CN101782607A (en) * 2009-01-19 2010-07-21 上海华建电力设备股份有限公司 Frequency-conversion harmonic measuring device of electrical power system
CN101917196A (en) * 2010-08-19 2010-12-15 河南科技大学 Analog-to-digital joint type data acquisition device
JP2012225767A (en) * 2011-04-20 2012-11-15 Panasonic Corp Power measuring device
CN204229198U (en) * 2014-10-17 2015-03-25 湖北三江航天万峰科技发展有限公司 The AD harvester that a kind of hyperchannel is multiplexing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580905Y (en) * 2002-12-06 2003-10-22 清华大学 Multichannel AD collector based on USB
CN101782607A (en) * 2009-01-19 2010-07-21 上海华建电力设备股份有限公司 Frequency-conversion harmonic measuring device of electrical power system
CN101917196A (en) * 2010-08-19 2010-12-15 河南科技大学 Analog-to-digital joint type data acquisition device
JP2012225767A (en) * 2011-04-20 2012-11-15 Panasonic Corp Power measuring device
CN204229198U (en) * 2014-10-17 2015-03-25 湖北三江航天万峰科技发展有限公司 The AD harvester that a kind of hyperchannel is multiplexing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108761181A (en) * 2018-03-07 2018-11-06 珠海欧比特宇航科技股份有限公司 A kind of acquisition processing device and method of airborne 36V three-phase ac signals
CN108761181B (en) * 2018-03-07 2020-12-08 珠海欧比特宇航科技股份有限公司 Airborne 36V three-phase alternating current signal acquisition and processing device and method
CN110702972A (en) * 2019-10-08 2020-01-17 浙江大学 Adaptive sampling method and device for analog signals

Also Published As

Publication number Publication date
CN104808086B (en) 2017-07-28

Similar Documents

Publication Publication Date Title
CN104502684B (en) A kind of totally digitilized peak value due in discrimination method
CN108537331A (en) A kind of restructural convolutional neural networks accelerating circuit based on asynchronous logic
CN103412284B (en) Matrix transposition method in SAR imaging system based on DSP chip
CN202256483U (en) GPS (Global Positioning System) second-based real-time self-adaptive evenly-spaced sampling synchronous data acquisition device
Zhang et al. Deadline-aware task scheduling for solar-powered nonvolatile sensor nodes with global energy migration
CN103970720A (en) Embedded reconfigurable system based on large-scale coarse granularity and processing method of system
CN109871949A (en) Convolutional neural networks accelerator and accelerated method
CN103984560A (en) Embedded reconfigurable system based on large-scale coarseness and processing method thereof
CN201226025Y (en) Processor for pulse Doppler radar signal
CN105426918B (en) Normalize associated picture template matching efficient implementation method
Que et al. Efficient weight reuse for large LSTMs
CN104808086A (en) AD acquisition board card with self-adaption function and acquisition method
CN103197287A (en) High-speed real-time frequency domain pulse compression device and processing method thereof
CN106802409A (en) External illuminators-based radar real-time signal-processing method based on multi -CPU treatment
CN105527609A (en) PD radar system matrix transposition method based on DSP
Sun et al. An OpenCL-based hybrid CNN-RNN inference accelerator on FPGA
CN103400153B (en) Serial filtering matching method and system for real-time image identification
Zong-ling et al. The design of lightweight and multi parallel CNN accelerator based on FPGA
CN104821801A (en) Moving target detection filtering device and method
CN203617974U (en) Configurable coefficient filter and electronic device based on FPGA
CN104777456A (en) Configurable radar digital signal processor and processing method adopting same
CN103838704A (en) FFT accelerator with high throughput rate
CN101694648A (en) Fourier transform processing method and device
CN102353940A (en) Pulse compression optimization method based on field programmable gate array (FPGA)
CN102353838A (en) Rapid high precision frequency measuring realization method by applying FPGA chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant