外文翻译基于LabVIEW的虚拟示波器研究和开发.docx_第1页
外文翻译基于LabVIEW的虚拟示波器研究和开发.docx_第2页
外文翻译基于LabVIEW的虚拟示波器研究和开发.docx_第3页
外文翻译基于LabVIEW的虚拟示波器研究和开发.docx_第4页
外文翻译基于LabVIEW的虚拟示波器研究和开发.docx_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

error! no text of specified style in document.中文5650字附 录research & development of virtual oscillographbased on labviewabstract: this paper introduces the design process of a virtual oscillograph based on labview. mainly analyzes the amplitude value and time base adjusting methods during the real-time display. at the same time, it simply introduces the basic thought when measuring the period and frequency of the waveform gate voltage method and its application. at the end of this paper, combining the parameter measurement and waveform display of the virtual oscillograph with the modern motor close-loop lock-phase speed control, it analyzes the parameter measurements effect in pid control.keywords: virtual oscillograph; time-base; motion control. introductionin the rapidly developing industry control field, measuring technologies and apparatus become more and more important. but because of the disadvantages of the traditional instruments such as high price, single function, bad expansibility, etc., they can hardly meet the industry requirement. with the development of computer technologies and virtual instruments (vi for short), the scope designed by users becomes widely. there are many different functions with the same hardware which can make two or more machines work synchronously with the advanced bus technologies such as pxi bus technology 1.virtual instruments become more and more popular for its upstanding characteristics like low cost, multi-function, facility and so on. all measuring instruments consist of three parts: data acquisition, data analysis and results output 2. in these three parts, data acquisition can be done by the system hardware like a/d module or digital i/o modules. data analysis and results output can be completed by software system based on computer. so, if given some necessary data acquisition hardware, a measuring instrument based on computer can be constituted. the software technology is the essential one in the virtual instrument. 3 visual c+, labview, labwindows/cvi, vee etc. are all development software environment. labview is a graphic programming language called g language, which can be used in gpib, vxi, pxi, pci bus and data acquisition cards based hardware system, has powerful analyzing ability. its graphic programming method can be used to finish the total program by dataflow clearly and simply. using its embedded board card driver interface, we can conveniently operate a board card. 4, 5 multi-channel digital oscillograph, which mainly used in real-time data acquisition, is one of the most widely used general measuring instruments. it also can display the changes of some electric signals and compare the differences among different signals. so the research and development of virtual oscillograph is the hotspot in the area. making use of the graph platte in labview, you can conveniently acquire the dynamic waveforms and make them displayed. but most virtual oscillographs based on labview use the graph platte to operate and analyze the waveform data. although this is very facile to use, it also has many disadvantages: (1) when the waveform changes all the time, the screen will keep refreshing and the graph platte could not properly work. (2) the operation method cant satisfy most of operators because it is different from the tradition oscillograph in operation. to solve these problems, this paper brings forward some ways. in the real- time waveform display, we redevelop the waveform operation and introduce some related software arithmetic. it introduces the exploiting thinking of adjusting dynamic time base and put forward two concepts: the fifo process and e-m process. in addition, it introduces a successful gate-voltage measure way in the measurement of the period and frequency, and based on which, the paper puts forward the application in the close-loop lock-phase system.ii. research on the multicenter digitaloscillographs software arithmeticthe virtual oscillograph introduced by this paper is mainly used in laboratory for the measurement and storage of various analog signals. the main functions are: data acquisition, waveform display, parameter measurement, waveform storage and replay etc. it has 64 analog signal input channels and can take 8 signal observations at the same time with the choice of switch matrix. according to the requirement, we use the ni-6133 daq card for the data acquisition. the block diagram of virtual oscillograph is shown in fig. 1: 6now we will introduce the soft arithmetic to the basic functions of virtual oscillograph.a. characteristics of graph controlin labview, there are three controls for waveform displaying: graph, chat and x-y graph. every control has its own advantages. this paper takes graph control for example to discuss the soft arithmetic to the basic function of virtual oscillograph. graph oscillograph displays all waveform data input in the screen at a time. every time when the waveform data are input, the screen will be freshed. 7 using its own operation tools, you can move, zoom the waveform or use the cursors to measure the parameters. but it could not work well on dynamic waveform. so its necessary to develop a more convenient operation tool to real-time display of dynamic waveform. in the virtual oscillograph introduced in this paper, there are some basic functions such as amplitude and position value adjustment, time base change, trigger mode selection etc. the oscillographs front panel is shown in fig.2.b. amplitude value adjustmentmulti-center oscillograph can display more than one waveform at the same time, so it is very convenient to compare every signal change. every waveform displayed should be operated separately through the selecting box on the front panel. at first, we distribute the screen into 1010 grids and set every channel a y-axis. the value of every one of the 10 grids in the y-axis is equal to the value of related amplitude knob control. with the property node of the waveform graph, you can set the minimum value of each y-axis as -5 times much as the knob value whereas the maximum value set 5 times. so when you change the amplitude knob value, the minimum and the maximum value of the relevant y-axis should be changed at the same time, the waveform display can be zoomed as required, and the zero point position is kept in the original location.use an array to save the amplitude values every y-axis changed. when a channel is selected, put its old amplitude value to the knob first; and after adjusting, replace the related array element with the new value. and then the amplitude value change function is finished.c. time base adjustmenttime base adjusting is one of the basic functions in oscillograph. the time base adjusting knobs value shows the time of every one grid of x-axis in the screen which is the nodus during the oscillograph design procedure.1) basic clewaccording to the characteristics of the graph control, it displays all the data input at a time. so distribute the x- axis into 10 grids and make every grids time t. if the waveform could bestride the whole x-axis, the time spent to collect all the data is 10t. suppose the boards sampling rate is f, in other word, the board collects f data every second. so the number n needed in the waveform is: n= fl0t =l0ft (1)keeping the board sampling at the frequency of f, the program reads n data points from the board memory and put them to the oscillograph in every loop. change the t value is to change the n value read from board memory every time, and thus adjust the time base in the real-time sampling.but through the experiment we can see, when the time base is too long (100ms) or too short ( 500us), the waveform displayed has time lags to different extend. that is because when the time base is too long (if the length of the needed waveform exceeds 1 second), we must wait for enough time to get all needed data collected by the board, and display them on the screen at a time. so that can cause discontinuous waveform displayed in the screen. when the time base is too short, the n value read every loop is too small, the number of data points in one second should be read for many times. there is another work to be done at the same time every loop in addition. so it will cause that the old data can not be read in time and may be covered by the new data because the board is sampling all time, the board memory will overflow. so it is needed to dispose the number read from board at long and short time base separately.2) long time baseto avoid the time lag discussed above, it must reduce the number of data read from sampling board every loop. considering the display characteristics of graph control, it can not put the data points read from boards to the graph every loop because it will make the oscillograph refreshing all the time, and the waveform displayed could not bestride the whole x-axis. an array could be set to save the waveform data points displayed. the arrays capacity is n, which is the number of data points calculated via eq. (1). suppose the number of data points read from board card every time is a fixed value m, which is the number of data points to be read at the proper time base.the whole procedure is made up of two parts. first, set the whole array null. at the beginning of the display procedure, the array is not full. so put the new m data points into the end of the array (enqueue), and then display the whole array value in the graph control. a continuously moving waveform should be showed in the screen. second, when the array is full, get rid of first m elements of the array; move the rest n-m elements forward the beginning of the array; and put the new m data points into the end of the array. we call this process fifo. then a full waveform should be showed in the screen, from one side to the other side. the enqueue and fifo are shown in fig 3.because the number of data points m read from board card every time is suitable, the time lag caused by waiting for enough data is properly solved. it ensures the synchronization between sample and display. to reduce the time spent to calculate the fifo procedure by system, sampling frequency should be reduced at the long time base to reduce the capacity of the display array.3) short time basein this part, the problem to be solved is that the time lag and memory overflow because the number n calculated via eq. (1) is too small. the number n could not increase blindly because that will cause the disaccord between the set time base and the waveform displayed. so, a method called e-m (expand-move) is put forward. fix the number to be read in every loop, which usually should be the one at proper time base. suppose it as m, and the needed number at the short time base calculated via eq.(1) as n ( n m ). expand the t value of the waveform data by m/n times (expand). at the same time, change the maximum and minimum value of the x-axis, display the m data points ( t expanded) several times in turn, then get into next loop.until now, the whole procedure is finished. the diagram is shown in fig.4 and fig.5.d. position adjustment and zero markchanging the y value of the waveform data can change the waveforms position displayed on the screen. increasing or decreasing the y value of the waveform data can move the waveform up or down. to mark every waveforms zero position, add a button control to each waveform displayed. drag the control into a line to mark the zero position.initialize the control, relative to the oscillograph panel, to the middle of the right screen edge. when changing the position of the waveform, change the coordinate of the zero mark at the same time. so the zero mark will move with the waveform. in addition, set the mark button control invisible outside the top and bottom edges, that the effect can be truer. as seen in fig.2.e. other functionswhat discussed above are the 3 basic functions in a virtual oscillograph. for other functions such as trig mode, couple mode, cursor, data storage, replay and print etc. are not discussed in this paper. according to actual needs, all the functions mentioned above can be achieved well through making full use of the property node in labview.iii. calculation of frequency and periodperiod and frequency are key parameters to a periodic signal. traditional measurement is to count the standard signal during the gate pulse duration in hardware so as to calculate the period of the measured signal. but there areusually no counters on hardware to use for a virtual oscillograph based on pc. it must be measured through software. however, the significance in a virtual oscillograph is that it can conveniently analyze the data collected by board cards, and then get the waveforms eigenvalue. so the basic clew to measure the waveforms period is to find the time slot between the kth period and the (k+1)th period from the collected waveform data. base on this thought, we introduce one method called gate voltage measuring to measure the signal period. 8the period of a periodic signal can be defined as the time slot that the signal across a specified gate voltage from the same direction (positive or negative edge) two times. as seen in fig. 6suppose a signal sample xi, (i =v and xi-1v, the waveform is across the gate voltage from the bottom up, called positive edge; when xiv, the waveform is across the gate voltage from the top down, called negative edge. at the same time, to eliminate the infection brought by interference, get ride of the positive and negative edges whose interval is less than 10 sample points. so the position of positive and negative edge is acquired. because the sampling rate is unchangeable, so the time slot between two sampling data is fixed. thus the signal frequency and period can be calculated. 9 suppose the sampling rate is f0 , the period is t0, t0 = 1/ f0, sampling rates error coefficient is a. the measured signals frequency is f, period is t, t= 1/f; the frequency measured actually is fc, tc, tc= 1/fc. suppose at every sample time the sample contains k full periods of the measured signal, and the exact time is kt . the time of the first edge cross the gate point phase is t. because of the disperse sample, at the kth period, the time when signal passes across the gate point phase t+kt may have an error t0. considering the sampling rate error, at the worst state, at the kth period, the time when signal passes across the gate point phase is t+kt+(ktt0 ),and the time the k signal periods pass is t+kt+(ktt0) .so there it is:suppose the sample length is l, there is ltokt. put it on the eq. (2) above, there is:when a is far smaller than 1/l,increasing the l value can increase the measure precision consumedly. when a is as much as 1/l, there is no significance to increase the l value. a is fixed on systems hardware. with a, it can find the proper l value that make the sample and calculation process under the best precision.suppose the square signal, its pulse duration is t, the one measured is tc, so there is:what discussed above is the period and frequency measurement in the sampling procedure, putting forward the measurement precision theory. but to the amplitude, rise time or spectrum analyze etc. are not discussed in this paper. using the data group collected, the user can develop other better measurements. in labview, there is plenty of measuring vis, which can measure the parameter exactly. 10 combining the control procedure with virtual oscillograph can achieve better effect. next, take dc motors pwm speed control for instance, it will introduce the function that using virtual oscillograph in pid and closed loop feedback controlling.iv. application in motor speed controllock-phase technology plays an important role on motor speed control. with the technology, it can improve the precision of motor speed; and also, it does stepless speed variation control only by changing the specified frequency, that will be conveniently used on controlling more than one motor work synchronously. 11 the basic theory diagram that indicates the speed control system based on ppl closed-loop lock-phase is shown in fig.7.suppose the specified pulse met the motor speed is fr, the pulse from photo sensor is ff. compare their frequency and phase in the phase comparator, and bring the signal voltage proportion to frequency and phase difference. this voltage controls the motor speed through the low-pass filter to synchronize the motor speed and the specified control signal. in case the load is fluctuating which changed the motor speed, the pulse output from photo sensor is changing at the same time. there is difference between it and the specified signal. so the output of the phase comparator through the low-pass filter and driver circuit is changing, and make the motor faster or slower until the two frequencies of feedback and specified become equal. at that time, the motor is steady again. the feedback frequency is locked to the specify frequency, so the system control precision is very high.combining the phase comparator and computer, taking the advantage of measurement and control of virtual instruments, we can get the digital lock-phase closed loop circuit. the theory diagram is shown in fig 8.in the diagram, motor speed is converted into square signal in proportion it refers to through the photo-sensor. if the speed value measured by virtual oscillograph is lower than the necessary one, the output frequency should be increased; oppositely, the output frequency should be decreased. in the actual controlling, the anticipant speed can be achieved quickly by comparing the fre

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论