《基于LabVIEW的虚拟双踪示波器的设计外文翻译.doc》由会员分享,可在线阅读,更多相关《基于LabVIEW的虚拟双踪示波器的设计外文翻译.doc(25页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、外文文献A DAQ card based mixed signal virtual oscmoscopeAbstract Complex signals find many applications in SONAR, RADAR,Echo Location Systems and for studying the resonant frequencies. Digital Storage Oscilloscopcs(DSO) is used these days for acquisition and display of routine signals. This instrument,
2、found in every measurement laboratory, though potent in displaying simple periodic waveforms like sinusoids fails when frequency-varying time signals are applied, This problem surfaces because the underlying technique of oscilloscope used to trigger the waveform does not acquiesce with complex signa
3、ls like chirp. Ready solution to this problem is the mixed signal oscilloscope. This is a costly solution and small laboratories cannot afford to have the costly instruments. In this paper, a cost effective DAQ card based mixed signal virtual 0scilloscope is proposed to study the complex signals. An
4、 intelligent technique, Weighted Hamming Distance (WHD) algorithm was used to accurately trigger the complex waveforms. Also for frequency domain analysis, Joint Time Frequency Analysis(JTFA) techniques were used. A LabVlEWTM based virtual instrument was designed and developed with a capability to a
5、cquire, display and analyze the triggered signal. The integrated programming language LabVIEWTM was chosen as it offers many simple ready to use functions. In a way the proposal offers a cost effective, fast and flexible solution to treat the complex signals. The need to create such solutions is the
6、 consequence of costly hardware systems. The deficiency of conventional hardware. Scheme for the virtual oscilloscope for complex signals with some real time experimental results are presented in this work.Kevywords: Virtual instrumentation,Chirp signal,Data acquisition,Triggering, Complex signals,
7、JTFA For the last two decades there has been a tremendous progress in computer technology. Measurement domain is no longer left unaffected. The way measurements are being done is totally revolutionized. Computer based measurement or say virtual instrumentation is gradually replacing the costly bench
8、 top instrumentation as it offers flexible,fast and cost effective solutions. Various classical instrumentation systems namely Oscilloscope, Multimeters and Spectrum analyzers ect. are almost phased out by their counter part virtual instrumentation. Our research extends the trend and demonstrates th
9、e developmen of the computer based mixed signal digital oscilloscope. Conventional signals such as the sinusoids have a constant frequency and the amplitede only varies with time throughout the signal definition. On the other hand, complex signals can be defined in this context as signals in which a
10、ll the parameters vary. Fig.1 shows a typical complex signal i.e. Linear Chirp. Variation of amplitude and frequency with time can easily be understood by having a look at the signal. This requires a visually stable display of signal. The complex signal offers challenges for acquisition, display an
11、analysis. Even the conventional modern age DSO is not capable of displaying and analyzing complex signals because these instruments employ simple triggering technique like level trigger. The conventional technnique of voltage trigger apparently fails when complex signals like chirp are analyzed on D
12、SO. This is due to the very fact that these instruments consider chirp as a conventional sine wave and trigger for each cycle of the sine wave instead of triggering for the complete chirp cycle. This analysis of the chirp signal as several sine waveforms of different frequencies leads the DSO to dis
13、play them as sinusoids in quick succession. As this rapid change occues at a very high rate and because of human eye not registering events occurring faster than 1/20th of a second the display appears as several overlapped sine waves. In the recent work1, a new triggering technique was proposed for
14、the complex signals based on WHD. Subsequent sections present the solution to the problem. For analysis of the complex signals in frequency domain JFFA technique is utilized and implemented2-6. DSO uses the level trigger to display the waveform applied to it. This leads to trigger interval and the n
15、umber of samples for this trigger interval is computed and these numbers of samples are display. The DSO considers the interval as the fundamental time period of the whole waveform and thus takes tbat much samples from its buffer and starts displaying it in quick succession. With simple waveform lik
16、e a sine wave, level trigger can achieve stable display because trigger interval contains same number of cycles. This is shown in Fig. 2a. Now for the complex signal as shown in Fig.2b, level triggering produces a trigger interval having variable number of cycles for the same number of samples/time
17、resulting in a visually unstable display. The actual trigger interval should be one complete cycle for a chirp signal as indicated in Fig. 2c. Having done this the repeated chirp signal for this time duration will be displayed without any overlapping components as long as the entire time period is d
18、isplayed. To observe the shortcomings experimentally in display of complex signals on the oscilloscope Tektronix dual channel signal generator AFG-3022 (250 MS/s, 25 MHz) was used to generate a chirp signal by choosing the sweep mode to sine waveform with its frequency varying linearly with respect
19、to time. This signal was fed to TektronixTDS-2022 (2 GS/s, 200MHz) dual-channel DSO. The overlapping display as shown in Fig. 3 was observed.2. Intelligent method of triggering Accurate triggering lies solely on correct identification of the time period of waveform under consideration. For this purp
20、ose, pattern recognition scheme was implemented to identify the pattern in the signal 1 and thus obtain the time period of one complete cycle of the chirp. First, a fixed number of samples N are taken as reference pattern. Then the signal is shifted by one sample to form the test pattern. This patte
21、rn is then tested for its closeness to the reference pattern. Closeness can be defined as the distance by which test pattern is away from reference pattern. WHD is used as the decision function for closeness. Hamming distance is defined for two binary vectors as the number of different bits are give
22、n their vectors. In WHD the different bits are given their binary weighting according to the bit position and their weights according to the bit position and their weights are summed up. WHD of two binary n bit number x and a is given by If X and A are two binary vectors of n-bits element, then WHD
23、for these two vectors is computed by summing up the element by element WHD and is given by For a vector of dimension N, the samples are shifted N times and its closeness is computed at each shift.When these computations are done, the difference洫in the signals is found to be minimum (ideally zero whe
24、n no noise) when the cycle repeated itself. Following are the major steps involved and implemented for intelligent trigger mechanism. 1. Acquiring the long enough signal using DAQ card and to convert the decimal values of samples into binary form. 2.A fixed number(N) of binary samples are stored in
25、array. The stored samples are shifted by a fixedc number of samples, n (=1,inthis case). 3. The original saved samples and the shifted samples are XORed bit-by-bit.The result is then multiplied by a factor of 2, where I represent the position of bit.4.The summation of all the resulting values gives
26、the WHD for nth shifts.5.A plot of WHD vs. n is made and the minimum is calculated by peak detection method. The difference between two successive minima is the trigger interval in number of samples.6. The number of samples multiplied by the sampling rate results in trigger interval (in seconds). As
27、 a test case WHD algorithm is implemented for the following triangular waveforrn in Fig.4.The waveform is sampled at 8 points per eycle. Each sampled value is 3 bit length. The step by step implementation is given below.WHD waveforrn is plotted using WHD(1), WHD(2), , WHD(8), and the location of the
28、 minima gives the triggering interval. Fig.5 shows the WHD waveform also clearly indicating the trigger interval at 8th sample.The WHD VI(Fig.6) was developed for this task. It takes the waveform, whose triggering interval is to be found, and the no of samples, on which computation is to be done, as
29、 input and outputs the sample at which minima occurs along with the value of minima and the WHD waveform. For typical chirp signal WHD waveform is obtained as shown in Fig.7. The number of samples between two consecutive minima is equal to the number of samples in one cycle of the waveform. The prod
30、uct of the number of samples with the sampling interval is the triggering interval of the input signal. Thus, the virtual instrument could also display complex waveforms with considerable aese. Fig.7 shows triggering interval of 5 cycles.3. Frequency domain analysisFor simple signals the frequency a
31、nalysis is performed by traditional tools like FFT. For such signals the Fourier Transform works well as their frequency components remain constant throughout the signal existence and hence there is no need for the time-frequency relationship. In case of complex signals the frequency varies with tim
32、e. FFT fails to analyze these signals as it gives information about the frequency and its amplitude. Time information is lost.In order to overcome this difficulty, there are JTFA tools iike Short Time Fourier Transform(STFT) and Wavelet Transform. These are implemented for the signals und STFT is a
33、modified form of Fourier Transform. In this technique the signal is rnultiplied with a window function and their products Fourier Transform (2).The main principle behind this technique is that the window function(w) breaks down the signal into segments of small finite durtion. The frequency componen
34、t of the signal during this segment is assumed to be constant. By computing the Fourier Transform for this segment the frequency vs. amplitude information is obtained. Then the window is moved to another segment by a step having the same duration as the previous one giving the frequency component fo
35、r that segment. Thus the frequency for different time intervals gives time-frequency relationship. However, there is a disadvantage with this tecnique. The size of the window function used is fixed, thus STFT will have same resolution for low and high frequencies. Resolution is the certainty by whic
36、h one can determine time or frequency information. It is generally seen that a larger window leads to better frequency resolution and a small window leads to better time resolution. Thus, it depends upon the user whether he wants frequency or time resolution. Even if there is a need for change of re
37、solution, the user has to do the same manually.To overcome the resolution problern, a more advanced technique called Wavelet Transform is used these days. In this the window size can be altered, using a scaling parameter a. The equation for Wavelet Transform is given as wherea is the scaling paramet
38、er,b is the translation parameter,x(t) is the signal to beanalyzed andis the wavelet functionThe wavelet function (t) is known as the mother waveletIts scaled and time shifted versions are known as the daughter wavelets. These daughter wavelets having varying size offer different frequency and time
39、resolutions at different frequencies. The scale parameter a represents the freequency component in an inverse relation. Thus the valuc of scale is inversely proportional to frequency component. Initially the wavelet function has scale a=1 and is placed at the starting of the signal. The wavelet tran
40、sform and thus the frequency component of that segment. Then the wavelet function is moved by b steps and the wavelet transform is computed for that segment. This procecdure is continued till the end of the signal. Thus Wavelet transform for a=1 and all the time steps till the end of signal gets com
41、puted. Similarly the wavelet function is again placed at the start of the signal but with changed value of scale a. The procedure is continued till the Wavelet transform for each scale and time step combination has been computed. It can be observed that the computation of Wavelet Transform leads to
42、a lot of redundancy.To reduce the redundancy, the scale values and the time steps can be linked using dyadic sampling. a= 2 and b=k 2 where n and k are integers. This leads to reduction in redundancy. This is called Discrete Wavelet Transform(DWT).4. Implementation A DAQ card based virtual instrumen
43、t was designed and developed in LabVIEWTM programming environment. This virtual instrument has the capability to generate intelligent software trigger as described above for complex waveforms like chirp. The main decisionns during design of the virtual instrument are: choosing the data acquisition c
44、ard and, what is equally important, choosing the set of features the instrument should offer. The choice of the data acquistion card has a great influence on the efficiency of the whole instrument7,8.Particular DAQ cards are differentiated by price and, the specification it offers. A low cost NIPCI-
45、6035E, 16bit, 200KS/s card was chosen. The hardware was programmed at maximum sampling rate. A separate problem is designing software, which, in that case, is the main part of instrument design phase. The major features of the developed virtual instrument are:The capability to acquire and process si
46、mple and complex waveforms.Dual channel mode: The instrument is capable of displaying two inputs simultaneously and can perform simple math operations between the two.Auto set: Runs the WHD code to re-compute the trigger interval for the new signal and thus achieve a stable display. In case, the two
47、 inputs do not have the same frequency, the LCM of the trigger intervals of A and B is found to so that integral number of cycles of both the channels can be shown simultaneously. Time domain measurements: The signal being displayed in time domain are measured on various parameters-Amplitude-Peak to
48、 peak-Mean(DC)-RMSFig. 9. The results of wavelet transrorm implemented in the virtual instrument. (Channel A analyzing sine signal and Channel B analyzing a chirp signal).Frequency Domain Aalysis: The plot of Magnitude vs. frequency, Phase vs. frequency and the facility to choose the windowing funct
49、ion.STFT based Joint Time Frequency Analysis (JTFA): The spectrogram with the additional choices of the plotting the graph with scale in decibels, windowing functions and the window length for STFT analysis.Wavelet based Joint Time Frequency Analysis(JTFA):The scalogram which plots scales vs. time steps, choice of time-frequency sampling parameters like time steps and scales and the choice of wavelet functions.For the frequency d