4.. 3 . 5 1.4 r 1:! I s. tafwt. I t x . 4 . .v as?“ i, .u. . 41.1.7- 3 \l‘ . .L I urn“... S t. 3%» 11.. . flwpmgu. :19”... Wag... . In"! H. :— .9 .n. ... .3 e. .uuqnmdwm. .. .4 ”an... .42...le 4mm. 2,. E i .93 $§sl¢u§ 1 $319... 3091.4 333...... an o: 2.. . «$441.6 r. 43.1.91»: .u..luv...W 153.31,;rf s.is.rl!5d .5 $4.93. 5, x .1.) ‘2 3&5}, . J. .15“ ll- , i: .1“ ‘ i Ly ..: 4 r 4 7‘ . . . a: . £4. 4.4.. III“ 4.42% #4444“? .m mwhuuuwflfirmnfi! ,l m llllllllllllllllllllllIlllllllllllllllllllllllllllllllll 3 1293 01576 8504 .‘I This is to certify that the thesis entitled DEVELOPMENT OF A VIBRATION CONTROL SYSTEM FOR TESTING RADAR AND LASER SPEED-MEASUREMENT DEVICES presented by Michael P. Serafin has been accepted towards fulfillment of the requirements for M- 5 - degree in M] Eng . WiZ/ Major professor Date //2/Z/ig 0-7639 MS U is an Affirmative Action/Equal Opportunity Institution LIBRARY Michigan State Unlverslty PLACE ll RETURN BOX to remove this checkout from your record. TO AVOID FINES rotum on or bdoro dot. duo. DATE DUE DATE DUE DATE DUE MSU Is An Affirmative Action/Equal Opportunity Intuition W DEVELOPMENT OF A VIBRATION CONTROL SYSTEM FOR TESTING RADAR AND LASER SPEED-MEASUREMENT DEVICES By Michael P. Serafin A THESIS Submitted to Michigan State University in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE Department of Electrical Engineering 1996 ABSTRACT DEVELOPMENT OF A VIBRATION CONTROL SYSTEM FOR TESTING RADAR AND LASER SPEED MEASUREMENT DEVICES By Michael P. Serafin Speed-measurement devices used to enforce speed laws on our nations highways must be accurate under a wide variety of operating conditions. To help achieve this goal, NHTSA has published a set of performance specifications and testing protocols for these devices, one of which tests the accuracy when the device is mechanically shaken. In the past at Michigan State University, there was no automatic control system to per- form these vibration tests; so, the tests were conducted manually. This dissertation project developed a computer-controlled vibration system. The result of this dissertation project was the development of an automatic control sys- tem for performing the NHTSA vibration testing protocols which was accurate to within 0.06 g’s. This control system is currently being used to test the operation of radar and laser speed-measurement devices and has replaced the old method of manually controlling the equipment. Dedicated to my parents for their continued love and support. iii ACKNOWLEDGMENTS This thesis project would not have been possible without all assistance and guidance of Dr. Fisher. I would also like to thank the following people for their help: Dr. Haddow for his early help in the beginning of the project and for the use of the vibration equipment; Brian Wright and the Electrical Engineering Hardware Shop for constructing a null- modem cable and two mounting devices; Christopher Hause for helping me understand all my questions dealing with accelerometers and vibration; and, finally, Rebecca Gregg for helping assist in performing the experiments and tests. iv .4 TABLE OF CONTENTS LIST OF TABLES ............................................................................................................ vii LIST OF FIGURES ......................................................................................................... viii CHAPTER 1 - INTRODUCTION ....................................................................................... l 1.1 Objectives ................................................................................................................. 2 1.2 Organization ............................................................................................................. 2 CHAPTER 2 - BACKGROUND ......................................................................................... 3 2.1 Problem .................................................................................................................... 3 2.2 The Vibration Control System ................................................................................. 5 2.2.1 Overview ......................................................................................................... 5 2.2.2 Computer ......................................................................................................... 6 2.2.3 Application Software ...................................................................................... 7 2.2.4 Transducers and Signal Conditioners ............................................................. 7 2.2.5 Data Acquisition Selection ............................................................................. 9 2.2.6 Signal Generator Control Method ................................................................. 10 CHAPTER 3 - CONTROL SYSTEM DEVELOPMENT ................................................. 11 3.1 Introduction ............................................................................................................ 11 3.2 Learning LabVIEW ............................................................................................... 11 3.3 Configuration of Data Acquisition Card with LabVIEW ...................................... 12 3.4 Controlling Function Generator with LabVIEW ................................................... 14 3.5 Testing Vibration Machine Operation .................................................................... 16 3.5.1 Selection of an Attenuator ............................................................................ 17 3.5.2 Discharging the Capacitors in the Signal Conditioners ................................ 17 3.5.3 Mounting Method for Accelerometers .......................................................... 18 3.6 Reading from Accelerometers with LabVIEW ...................................................... 18 3.7 Calibration of Accelerometers ............................................................................... 19 3.8 Digital Filter Design .............................................................................................. 22 CHAPTER 4 - CONTROL SYSTEM DESCRIPTION .................................................... 25 4.1 Introduction ............................................................................................................ 25 4.2 Hardware Description ............................................................................................ 25 4.2.1 Platform Installation ...................................................................................... 27 4.2.2 Accelerometer Setup ..................................................................................... 27 4.2.3 Signal Conditioner Setup .............................................................................. 27 4.2.4 Data Acquisition Card Setup ........................................................................ 28 4.2.5 Function Generator Setup ............................................................................. 28 4.2.6 Mounting of Device Undergoing Testing ...... I ............................................... 2 9 4.2.7 LaptOp Setup ................................................................................................. 29 4.2.8 Vibration Equipment Setup ........................................................................... 30 4.2.9 Additional Hardware Setup ........................................................................... 30 4.3 Software Description ............................................................................................. 30 4.3.1 Experiment Input ..................................... - ..................................................... 31 4.3.2 Channel Verification ...................................................................................... 33 4.3.3 Finding Starting Amplitude .......................................................................... 34 4.3.4 Main Program ............................................................................................... 36 4.3.4.1 Calculation of Current Frequency ........................................................ 38 4.3.4.2 Update of Frequency ............................................................................ 38 4.3.4.3 Read Values From Accelerometers ...................................................... 39 4.3.4.4 Update Amplitude ................................................................................ 39 4.3.4.5 Write Data to File ................................................................................. 49 4.3.4.6 Check Stop Button ............................................................................... 50 CHAPTER 5 - ANALYSIS AND EVALUATION ............................................................ 51 5.1 Introduction ............................................................................................................ 51 5.2 Accuracy of System ............................................................................................... 51 CHAPTER 6 - SUMMARY AND CONCLUSION .......................................................... 56 6.1 Purpose of Project .................................................................................................. 56 6.2 Summary of Results and Contributions ................................................................. 56 6.3 Problems Encountered ........................................................................................... 57 6.4 Recommendations .................................................................................................. 58 6.5 What Was Learned ................................................................................................. 58 6.6 Conclusion ............................................................................................................. 59 APPENDD( A — VIBRATION MACHINE OPERATION ................................................ 6O APPENDD( B - VIBRATION TESTING PROTOCOL .................................................... 61 APPENDIX C - PHOTOS OF CONTROL SYSTEM EQUIPMENT ............................... 64 BIBLIOGRAPHY .............................................................................................................. 67 vi TABLE 3.1 TABLE 3.2 TABLE 3.3 TABLE B.l LIST OF TABLES Windows 3.1 coml port settings ................................................................ 15 LabVIEW ASCII commands ..................................................................... 16 Accelerometer calibration .......................................................................... 21 Vibration testing protocol parameters ........................................................ 63 vii FIGURE 2.1 FIGURE 2.2 FIGURE 2.3 FIGURE 3.1 FIGURE 4.1 FIGURE 4.2 FIGURE 4.3 FIGURE 4.4 FIGURE 4.5 FIGURE 4.6 FIGURE 4.7 FIGURE 4.8 FIGURE 4.9 FIGURE 4.10 FIGURE 4.11 FIGURE 4.12 FIGURE 4.13 FIGURE 5.1 FIGURE 5.2 FIGURE C.1 FIGURE C.2 FIGURE C.3 LIST OF FIGURES Vibration tests - frequency vs. time .......................................................... 4 Acceleration equation and key accelerations ............................................ 5 Block diagram of control system .............................................................. 6 Digital filter on calibration data of accelerometer A (sample #3) .......... 23 Hardware setup diagram ......................................................................... 26 Experiment input screen ......................................................................... 32 Channel verification screen ..................................................................... 34 Status-menu screen ................................................................................. 35 Main-menu screen ................................................................................... 37 Calculation of frequency equations ........................................................ 38 Accelerometer A, test #1 with constant amplitude adjustment ............... 40 Block diagram of correction method ...................................................... 41 Amplitude vs. accelerometer acceleration .............................................. 43 Test #1, half correction ........................................................................... 45 Test #2, half correction ........................................................................... 46 Test #1, full correction ............................................................................ 47 Test #2, full correction ............................................................................ 48 Constant vibration at 30 Hz with an amplitude of 800 mV .................... 53 Constant vibration at 60 Hz with an amplitude of 700 mV .................... 54 Vibration platform (mounted radar device and accelerometers) ............. 64 Control system equipment (signal conditioners, laptop, BNC board, function generator) .................................................................................. 65 Ling Dynamic Systems vibrator and modular power amplifier .............. 66 viii Chapter 1 INTRODUCTION Radar speed measurement devices are required to pass a series of tests before they can be approved to be used by police departments. One of the Operational tests, which needs to be performed on radar speed-measurement devices, is to test the accuracy of the device under vibration. These tests simulate the operation of the device in a moving vehicle. While the radar device is being subjected to vibration, measurements are taken to determine its accuracy. Previously, at Michigan State University, there was no automatic control system to perform these tests. The tests were performed manually, which was a difficult and tedious process to do accurately. These vibration tests require changing the frequency of vibration while keeping the amplitude of vibration constant. I The vibration equipment which was used in this thesis project was a Ling Dynamic Systems (LDS) Model 726 Vibrator [1] connected to a Ling Dynamic Systems DPA 4 Modular Power Amplifier [2]. For the remainder of this thesis, the vibration equipment will be simply referred to as the vibration machine. To perform these tests, not only does the frequency need to be changed but the voltage into the vibration machine needs to be updated. For one person to change the frequency, update the voltage, and perform the radar measurements is impossible. Not only is it impossible but very difficult and tedious to be done accurately, even with multiple people, because of the difficultly in changing the frequency at a constant rate manually. Thus there is need for an automated control system. 1.1 Objectives The overall goal of this thesis project was to develop a control system that is capable of performing the vibration tests on radar speed measurement devices. But besides just designing a system to perform these tests, another objective was to develop a system that could be easily modified to perform other similar vibration tests. In addition to developing a control system to perform vibration tests, we also wanted to provide students and faculty in the future with documentation that would help them with similar research and development projects. The most important documentation that would be developed, would be the setup and running procedures for performing the vibration tests. This documentation will be used by others to aide them in performing these vibration tests on radar and laser speed-measurement devices. Besides just creating documentation on how to setup the equipment and running the experiment, we also wanted to create documentation that explains and teaches certain aspects of the control system needed to run the existing tests or to modify the hardware! software to run other similar types of tests. This will help shorten the learning curve for those who follow. 1.2 Organization This thesis is organized into a series of major chapters, the first being this introduction. The next chapter provides the background behind the control system which was developed. The third chapter describes the major steps in the developmental process and the fourth chapter describes the actual control system. Chapter five examines the performance and results of the control system. The conclusions and summary can be found in chapter six along with recommendations for future work. The appendix contains additional instructions on running the vibration tests. Chapter 2 BACKGROUND 2.1 Problem The National Highway Traffic Safety Administration (NHTSA) developed a series of performance tests which they believe police radar devices should meet, and they are published in the document: “Model Minimum Performance Specifications for Police Traffic Radar Devices” [3]. Included in the Environmental Testing Section (§ 1221.74) are two tests used to evaluate the radar device operation undergoing vibration. These vibration tests are based on work done by the National Institute of Standards and Technology (N IST) to simulate the motion of a moving vehicle. The steps in the vibration testing process are as follows: (1) Fasten the radar device to the vibration tester using a rigid mounting fixture. Perform a two-part test for a total of 30 minutes in each of three directions, namely, the directions parallel to both axis of the mounting and perpendicular to the plane of the mounting. (2) First subject the radar device to three 5 minute cycles of simple harmonic motion having an amplitude of 0.38 mm (0.015 in) [total excursion of 0.76 mm (0.03 in)] applied initially at a frequency of 10 Hz and increased at a uniform rate to 30 Hz in 2.5 minutes, then decreased at a uniform rate to 10 Hz in 2.5 minutes. Conduct the appropriate radar device tuning fork test (§ 1221.72) during the last 5 minute cycle. (3) Then subject the radar device to three 5 minute cycles of simple harmonic motion having an amplitude of 0.19 mm (0.0075 in) [total 4 excursion of 0.38 mm (0.015 in)] applied initially at a frequency of 30 Hz and increased at a uniform rate to 60 Hz in 2.5 minutes, then decreased at a uniform rate to 30 Hz in 2.5 minutes. Conduct the appropriate radar device tuning fork test (§1221.72) during the last 5 minute cycle. (4) Repeat this procedure for each of the other two directions. To help explain the two vibration tests, Figure 2.1 represents these vibration-test protocols graphically. The plots illustrate how the frequency of vibration is swept as a function of time for each of the tests. 60 55 50 45 h C Frequency (Hz) 82 (A) 0 Test #1 1 O 1 I l 1 1 0 50 100 150 200 250 300 Time (seconds) Figure 2.1: Vibration tests - frequency vs. time. 5 In practice, the amplitude of the vibration is not measured, but rather the acceleration. Figure 2.2 summarizes the key relationships among the parameters acceleration, amplitude, and frequency for the two test protocols. This figure also includes the equation used to calculate the accelerations used in this project as well as the constant for 1 g. Also listed are the key accelerations for both vibration tests (starting and peak frequencies). 2.2 The Vibration Control System 2.2.1 Overview To begin developing the control system, the first item that needed to be considered was the possible methods that could be used and the equipment that would be required before starting. Figure 2.3 shows a basic block diagram of the control system that was to be implemented. (21t)2 x (frequency in Hertz)2 x (amplitude in inches) Acceleration (g‘s) = 1 8 1 g = 385.8 in/s2 Test 1 (amplitude = 0.015 in, frequency = 10 Hz to 30 Hz) at 10 Hz, acceleration = 0.15 g’s at 30 Hz, acceleration = 1.38 g’s Test 2 (amplitude = 0.0075 in, frequency = 30 Hz to 60 Hz) at 30 Hz, acceleration = 0.69 g’s at 60 Hz, acceleration = 2.76 g’s Figure 2.2: Acceleration equation and key accelerations. Device Under Testing Vibration Apparatus Transducers 1 I Signal Conditioners 1——-> Monitor (Scope, etc.) Interface l A Data Acquisition Computer ____J User Interface Application Software Figure 2.3: Block diagram of control system. In the diagram above, the device that is undergoing testing is attached to the vibration apparatus along with transducers which are used to measure the acceleration of the vibration. The output of the transducers is then forwarded on to signal conditioners which send the signals to some sort of data acquisition equipment attached to a computer. The user interface is made up of the computer, software, and person performing the experiment. The computer controls and corrects the motion of the vibration apparatus by sending signals to an interface which is connected to the vibration apparatus. Other instruments can be connected to measure various intermediate signals. 2.2.2 Computer One of the first decisions that needed to be made was the type of computer that would be used in implementing the control system. A decision needed to be made to select either a desktop computer or a laptop computer. Both types of machines were already available 7 but one needed to be chosen because it would have an impact on the other types of equipment that would be required. The deciding factor on the type of computer was the location of the vibration machine. The vibration machine was located in a lab on the other side of the engineering building and the lab and vibration machine are used by other students. The laptop was chosen so that it could be used in performing the tests as well as be used during development in another part of the building. Besides the laptop, a desktop PC was also selected to be used during the development of the control system. The laptop that was used was an IBM ThinkPad 750C [4] running Windows 3.1. The desktop computer was a Gateway2000 4DX2-66V [5] with 32Mb RAM running Windows95. The amount of disk space required for the installation of LabVIEW and the control system program used was just under 17 Mb on the laptop. 2.2.3 Application Software After selecting the type of computer that was going to be used, the software needed to be selected. The two routes that could have been used seemed to be using a high-level software package or writing a program from scratch. The programming language C++ was first considered and then the software package, LabVIEW (version 4.0) [6] was examined. Upon further investigation into what LabVIEW was capable of doing, it became the logical choice. LabVIEW contains many built in functions and sample programs which accomplished many of the tasks needed. Writing these functions from scratch would be difficult and very time consuming. Plus LabVIEW makes it very easy to design a user interface with graphics. An additional reason why LabVIEW was selected was that it too, was also already available. 2.2.4 'II'ansducers and Signal Conditioners An accelerometer was selected to be the device to read in the current acceleration being generated by the vibration machine. Actually two accelerometers were needed, as 8 will be explained later, with one serving as a safety precaution. An accelerometer was needed that would be able to operate in the frequency and acceleration ranges of the two tests for which the control system was being developed. For the two tests, the frequency range is 10 Hz - 60 Hz, which corresponds to an acceleration range of 0.15 g’s to 2.76 g’s. Dr. Haddow [7], from the Mechanical Engineering Department at Michigan State University, recommended PCB Piezotronics brand accelerometers [8, pp. 41-44]. The two accelerometers which were considered were ICP (Integrated Circuit Piezoelectric) low cost accelerometers, general purpose (338B34) and high sensitivity (338B35). The high sensitivity accelerometer was selected because of its sensitivity, 100 mV/g compared to the general purpose accelerometer which only had a sensitivity of 10 mV/g. Both accelerometers were capable of operating in the 1 to 2,000 Hz frequency range which included the frequency range of the two tests. They both also operated within the acceleration range, the general purpose accelerometer had an amplitude range of 500 g and the high sensitivity accelerometer had an amplitude range of 50 g. In addition to ordering the two accelerometers, 4 mounting studs and two coaxial cables were ordered. The mounting studs (081B05) [8, p. 43] were the best option for mounting the accelerometers to the platform on the vibration machine because they could be removed easily. Four studs were ordered so that there were two extra studs as replacements, since the mounting studs are very small and could easily get lost. The two coaxial cables (M002A002C) [8, pp. 78-81] that were selected were 2 meters in length and had a coaxial plug at one end and a BNC plug at the other end. The coaxial plug attached to the accelerometer and the BNC plug attached to the signal conditioner which was the power source for the accelerometer. Two signal conditioners were also ordered along with the accelerometers. The purpose of the signal conditioners is to supply the power to operate the accelerometers and also condition and then transmit the acceleration reading to the computer’s data acquisition system. The signal conditioners selected also were from PCB Piezotronics [9, 9 pp. 8-11]. Two basic line-powered signal conditioners for use with ICP sensors were selected to operate the two accelerometers. Two signal conditioners were needed because the model selected, 482AO6 [10], only had one channel. These signal conditioners had BNC connectors for its input/output and that is why the coaxial cables were selected with BNC plugs. 2.2.5 Data Acquisition Selection The accelerometer maps acceleration into a voltage, and the laptop needed a way to read these voltages. A data acquisition card connected to the laptop was selected to read in the values so additional hardware did not have to be constructed. One of the first data acquisition cards considered was the DAQPad-1200 [11, pp. 3.100-3.103] from National Instruments. The main reason this device was considered was the possibility of being connected to a laptop or a desktop computer via the parallel port on the computer. After examining the specifications of the DAQPad-1200 further, it was realized that this device required a special parallel port and the use of the parallel port limits accessing the data to slower speeds. Since the DAQPad-1200 failed to work for our needs, a data acquisition card that used the PCMCIA slot on the laptop was chosen. Two cards which meet all the specifications which we needed were the DAQCard-700 [11, pp. 3.82-3.84] and the DAQCard-IZOO [11, pp. 3.77-3.81; 12]. The major differences in the two cards were that the DAQCard-1200 has a larger ADC buffer, the gain can be set (possible gains: 1, 2, 5, 10, 20, 50, 100), and has 8 more digital I/O lines. The DAQCard-700 does have 8 more single-ended channels, but only two channels are needed for our control system. Both cards had a maximum sampling rate of 100 kS/s and a 12-bit ADC. The DAQCard-1200 was selected over the DAQCard-700 based on its additional features which may be needed if this equipment is used for other projects in the future. 10 Along with selecting the DAQCard-IZOO, a few other parts to go along with the card were needed. A BNC adapter board, BNC-2081 [11, p. 3.244; 13], was selected to be connected between the DAQCard-1200 and the signal conditioners. The BNC adapter board was ordered with a 1 meter NBl cable which was to connect to the DAQCard-1200. After receiving the DAQCard-1200 and the NB] cable [11, p. 3.250], an additional cable was needed to connect the NBl cable with the DAQCard-1200, so a PRSO-SOM [11, p. 3.251] cable was ordered. BNC cables are used to connect the signal conditioners with the BNC adapter board and were already readily available in the labs. 2.2.6 Signal Generator Control Method The last item to consider in selection of the hardware equipment was the method of controlling the vibration machine. Both the frequency and a voltage amplitude needed to be sent to the vibration machine to control the vibration. One choice was to do this directly from the laptop which would have required designing and building a hardware device to convert the output from the laptop into the correct signal for the vibration machine amplifier. Another choice was to use a function generator, such as the Hewlett Packard HP3312OA [14], which would be controlled by the laptop. This second method was chosen because the function generator was available and this was the device that was normally used to control the vibration machine manually in the past, although this control was strictly manual. The method in which to control the function generator then needed to be selected. According to the function generator manual, the two possible approaches of controlling it from another device is either by using the HP-IB port or the RS-232 port on the back of the function generator. In order to use the HP-IB port, additional hardware (HP-IB card) would be required for the laptop. The simplest, yet sufficient, method was to use the RS- 232 port connected to the laptop serial port via a null-modem cable. To control the function generator the laptop only needed to output ASCII text to the serial port. Chapter 3 CONTROL SYSTEM DEVELOPMENT 3.1 Introduction This chapter describes the early testing and learning that went into the development of the vibration control system algorithm. Before developing the control system algorithm, the individual parts of the control system needed to be developed separately. This included tasks like controlling the vibration machine from the laptop, reading in the acceleration from the accelerometers with the laptop, and performing various functions in the software. To be able to perform all these tasks individually, certain configurations needed to be made in software as well as to the individual hardware components, the accelerometers needed to be calibrated, and the operation of the various hardware and software components needed to be learned. 3.2 Learning LabVIEW The first task where a large majority of time was spent was used becoming more familiar to programming in LabVIEW. This was done by working with the LabVIEW Tutorial [15] and examining the various demonstration programs that were included with LabVIEW. The tutorial was helpful in that it contained many exercises to help the beginner learn, identify, and study useful demonstration programs. LabVIEW was very easy to learn because it was somewhat similar to other programming languages, the only major difference is that the programming was done by graphically drawing the program instead of typing code. Once comfortable with programming in LabVIEW, programs 11 12 were constructed that tested the individual tasks used in the development of the control system. Many of these early programs, as well as the end control system, incorporated modified demonstration programs. This was an advantage because LabVIEW came with many sample programs which performed many of the needed tasks and only needed to be modified slightly. While learning how to use LabVIEW, another job that needed to be performed was the installation of LabVIEW on the laptop. The minimum installation of LabVIEW was selected, except anything related to data acquisition was also installed. The process involved copying the files off of the cd-rom and onto floppy disks using the desktop computer. The files were organized on the cd-rom in directories (diskl, disk2,...) which could easily fit onto a 1.44 Mb floppy disk. The files then were transferred from the desktop computer to the laptop one disk at a time. Once all the files were transferred to the laptop, the setup program was executed and LabVIEW was installed. The version which was installed on the laptop required just over 16 Mb of disk space. 3.3 Configuration of Data Acquisition Card with LabVIEW Since one of the major functions of the control system was to read values into the computer, one of the first tasks was configuring the DAQCard-1200 to be used with LabVIEW. Once the DAQCard-1200 was configured, it then needed to be tested so that values could be read into LabVIEW. One of the requirements for the DAQCard-1200 is that it must be connected to a computer which has Card & Socket Services 2.1 or higher. The laptop which was being used did not meet these standards so a newer version of these PCMCIA drivers was required. These drivers where downloaded from the IBM web site [17]. 13 Once receiving the DAQCard-1200, BNC Board, and cables from National Instruments and attempting to connect them to the laptop, it was discovered that an additional cable needed to be ordered. This cable, PR50—50M, connected the DAQCard to the NB] cable which was connected to the BNC Board. LabVIEW uses a program called WDAQCONF [6] in Windows 3.1 to work with the PCMCIA slots on laptops. This program needed to be configured before the DAQCard could be used with LabVIEW. The WDAQCONF program allows LabVIEW to communicate with a device by associating the device to a device number which is used within LabVIEW. The DAQCard-1200 was configured for device 1 for use with LabVIEW. To do this, WDAQCONF [16, pp. 2.6 - 2.14] was opened and Device l was selected which brought up the device configuration window. From the Device pull-down menu, under DAQ Cards, the DAQCard-1200 was selected. After selecting the device, the PCMCIA socket needed to be selected. To select the socket number, the socket button was selected and socket 0 was chosen. As will be explained below, this originally was configured incorrectly. Both the base address and mQ were set up for Auto Assign by placing an X in their respective Auto Assign boxes. These settings passed the configuration test with the DAQCard-1200 connected to the laptop. After passing the configuration test, certain hardware configurations could and were configured. From the Hardware pull-down menu the polarity/range, analog input mode, and accessory were selected. The polarity/range was selected to be -5 V to +5 V, the analog input mode was selected to non-referenced single ended (NRSE), and none was selected as the accessory option. Originally after attempting to configure WDAQCONF for use with the DAQCard- 1200, the configuration test indicated that a bad base address was being used. National Instruments suggested installing a program called CardWare [18], which would aide in the configuration of the DAQCard. This program was available from the National Instruments FTP site (ftp.natinst.com), but is no longer available from National Instruments. After 14 installing the files which came with CardWare and running the PC Card Control for Windows version 2.00 program, the correct setup parameters for WDAQCONF were determined. It turned out that the correct base address was being used, but the wrong socket number was being used. Once the configuration of the DAQCard was changed to use PCMCIA socket 0 the configuration test was successful. 3.4 Controlling Function Generator with LabVIEW The HP 33120A function generator / arbitrary waveform generator was selected as the device that was to be used to control the vibration machine because it could continuously output a sine waveform to operate the vibration machine. If the laptop was used instead to control the vibration machine, it would have to continuously send each point of the waveform out to the vibration machine. This would require too much from the software which was needed to perform other tasks. With the function generator, the laptop only needed to communicate with the function generator only when a change was needed in the waveform, say once a second. The function generator could be controlled via the RS-232 port by simply outputting commands in ASCII text from the laptop through the serial port (COMl). To be able to connect the laptop from the serial port to the RS-232 port on the function generator a null- modem cable [14, pp. 196-197] was constructed. The test LabVIEW program which was used to test communication between the laptop and function generator was very simple. It used the built in Serial Port Write VI (Virtual Instrument) [6] and was placed in a loop that wrote a string from an array of strings once a second to port 0(COM1). 15 Once connected to the laptop via the null-modem cable, an attempt was made to place the function generator in remote mode. When the remote mode command, “SYST:REM”, was sent from the laptop, nothing appeared to happen to the function generator. It was determined that the function generator was configured for HP-IB and that is the reason that it didn’t receive the command over the RS-232 port. After configuring the function generator for Remote Interface Selection [14, p. 115], errors started occurring on the function generators display. In trying to determine what was causing the errors, the function generator was then connected to the desktop computer and the LabVIEW program was executed, which correctly put the function generator in remote mode without errors. Since it worked on the desktop computer and not on the laptop computer, the error was determined to be the way in which the laptop was configured. After comparing the coml port settings on the desktop computer to those on the laptop, it was noticed that the flow control setting on the laptop was incorrect for coml. It was set to ‘none’ when the correct setting was supposed to be ‘Xon/Xoff’. Once making this change on the laptop, the program worked correctly. The port settings can be configured under Windows 3.1 by selecting ports from the Control Panel. The table below shows the port settings which were used for the coml port on the laptop. Table 3.1: Windows 3.1 coml port settings. Baud Rate 9600 Data Bits 8 Parity N Stop Bits l Flow Control Xon/Xoff 16 Table 3.2: LabVIEW ASCII commands. Command Description ASCII Command Remote—M:ode SYSTTREMm E 1 Reset *RST\n Initiate Sine Wave APPL:SIN\s(frequency),\s(amplitude)mV\n Update Amplitude VOLTS\s(amplitude)mVPP\n Update Frequency FREQ\s(frequency)\n The ASCII commands which are used to communicate with the function generator are listed in Table 3.2. In these commands, the word in parentheses represents a number which belongs in that location without the parentheses. The first three commands are used during the setup of the function generator and the last two commands are used during the update of the amplitude and frequency of the vibration. The units for frequency were omitted in the commands because the default is Hertz and this was what was used. Other errors occurred because of special characters which are used to communicate with the function generator. Without including these in the ASCII commands, errors occurred on the function generator because it had trouble understanding the commands. The \s represents a space in the command and \n represents a carriage return in the command. LabVIEW can be setup to display these characters on the screen, otherwise they are not shown. 3.5 Testing Vibration Machine Operation Early on in this thesis project, the procedure for operating the vibration machine needed to be learned. This was done with assistance from Dr. Alan Haddow and using the start-up and shut-down procedures for the vibration machine (see Appendix A). This was a very important process because of how expensive the equipment was, we needed to be l7 careful so that no damage would occur to the equipment during the project. Once understanding how to operate the equipment, permission was given to be able to operate the vibration machine on our own and whenever it was needed. After understanding how to operate the vibration machine, the output range of the function generator needed to be determined. The amplitude values of the sine wave which was generated needed to be determined so that the correct acceleration was being outputted via the accelerometers. 3.5.1 Selection of an Attenuator Based on early experiments with the vibration equipment and accelerometers, the function generator appeared to be unable to produce a low enough output voltage to achieve the desired accelerations. The function generator which was being used in this experiment was limited to a minimum output voltage of 50 mV [14, p. 298] and a lower voltage appeared to be required. This was the reason an attenuator was needed, so that voltages less than 50 mV could be sent to the vibration power amplifier. The attenuator which was selected was a Tektronix ( 11-059) 10X attenuator [19], which allowed the function generator output to be reduced by a factor of ten. The final control system actually used voltages which were greater than the 50 mV limit for the two vibration tests, but just barely over. The attenuator adds flexibility in case other tests are used that may not operate above the 50 mV limit. 3.5.2 Discharging the Capacitors in the Signal Conditioners It was also discovered that a modification was needed to the signal conditioners in order to discharge their capacitors. When testing the accelerometers under vibration, it was discovered that the output from the signal conditioners, when observed on an oscilloscope, appeared to float. When starting the vibration it took some time for the signals to settle and when they did settle, they settled at different points. Resistors (1 kfl) 18 were connected across the output of both signal conditioners to discharge these capacitors. After connecting the resistors, the output of the signal conditioners centered around 0 V and then settled almost immediately. 3.5.3 Mounting Method for Accelerometers A method for mounting the accelerometers to the platform on top of the vibration machine was needed because the accelerometers came with mounting studs which were much to small to screw into the holes that already existed on the platform. Two mounting devices were developed which had a hole at one end in which the accelerometers could be attached using the mounting studs. The other end of these devices contained threads which were capable of screwing into the mounting platform. The accelerometers then could be easily attached to the vibration equipment during setup and also could be removed easily so they did not need to be permanently attached. This was an advantage during early development of the control system because the accelerometers could be used both in the vibration lab as well as to be used in the lab where most of the control system development took place. 3.6 Reading From Accelerometers with LabVIEW Once the data acquisition equipment was correctly configured and working, the next objective was to be able to read in values from the accelerometers using the DAQCard- 1200 attached to the laptop. A LabVIEW demonstration program, Acquire N Scans.VI, was initially used to test reading in the accelerometer values. A Briiel & Kjar [20] Mini- Shaker type 4810 was used to demonstrate reading from the accelerometers before the vibration machine was used. This was done, because the Mini-Shaker was portable and could be used in the lab where most of the development took place. The demonstration VI was eventually modified to work the way it would be needed to by the final control system. The modified version, AI_READ3.VI, included the Option of writing the values of each 19 sample to a file, calculating the maximum and minimum values from the accelerometers, calculating the filtered maximum and minimum values, and allowing for the coupling, input configuration, and input limits to be set. 3.7 Calibration of Accelerometers The accelerometers which were used came calibrated from the factory along with the voltage sensitivity engraved on each accelerometer. During the initial testing of the vibration equipment with the accelerometers it was noticed that different readings were being obtained from each of the accelerometers. The reason was that the accelerometers where calibrated in the frequency domain, and this experiment uses the laptop to read the values in the time domain. Before calculating the acceleration that the accelerometers were measuring, the accelerometers needed to be calibrated operating with the other equipment which was being used. To do this a Briiel & Kjazr calibration exciter type 4249 [20] was used to calibrate the accelerometers. Before the accelerometers could be calibrated, the calibration exciter needed to be calibrated itself. To do this, a brand new accelerometer from PCB was used which had been calibrated at 101.9 mV/g. Performing two readings with the calibration exciter resulted in values of 108.265 and 108.335 on a signal analyzer. Calculating the acceleration of the exciter using these values and taking the average resulted in an acceleration of 10.43 iii/$2 which is about 1.06 g’s. The calibration exciter’s marked acceleration was listed as 10 m/sz, this is only a difference of less than 5%. Using the newly calculated acceleration for the calibration exciter, two readings for each of the two accelerometers being used in this project were taken. Their voltage sensitivities were calculated and averaged and the results were 94.95 mV/g and 97.04 mV/ g which is very close to their marked values of 94 mV/g and 97 mV/g. 20 At the time of calibration, the two accelerometers, two signal conditioners, and two coaxial cables were labeled A & B respectively so that the same components were always connected together. This was done during calibration and again when performing the vibration tests. Accelerometer A was the one which was marked with the calibration reading of 94 mV/g and accelerometer B was marked at 97 mV/g. These calibrations were done in the frequency domain and would not work for the control system being developed. That brought about the need to calibrate the accelerometers using the laptop and the other equipment which would be part of the final system. Before performing the actual calibrations, the equipment was assembled and an oscilloscope was connected to the signal conditioners to get an idea of what the calibrated values would be. The actual calibration was performed using the AI_READ3.VI (mentioned in section 3.6) which would be used in the final control system. This was done so that the accelerometers were calibrated in regards to the values LabVIEW would read. Once the accelerometers were being excited, 800 samples over one cycle of the waveform were made and the maximum voltage after passing through a digital filter was taken. The design of the digital filter is discussed in the next section. Five readings for each accelerometer were taken and an average over the five readings for each accelerometer was computed. Five readings were taken for each accelerometer so that an average could be taken for each accelerometer. There was no other special reason why five readings were selected other than to have a few different readings in which to compute an average. The readings and the averages for both accelerometers are shown in the Table 3.3. Since the recorded values were not being read at 1 g, the voltage sensitivities needed to be calculated at 1 g. This was done by dividing the averaged voltage of each accelerometer by 1.06 g resulting in 136 mV/g for accelerometer A and 141 mV/g for accelerometer B. These values were then used by LabVIEW for each accelerometer as the voltage sensitivity for the accelerometer (mV/g). Table 3.3: Accelerometer calibration. L_Reading # Accelerometer A at 1.06 g Accelerometer B at 1.06 g 1 143 mV 149 mV 2 143 mV 148 mV 3 144 mV 149 mV 4 144 mV 149 mV 5 145 mV 149 mV Average 144 mV 149 mV Since the voltage sensitivities were input parameters in the final control system, it made it possible to re-calibrate the accelerometers and use the new values or even use different accelerometers as long as their voltage sensitivities were known. These voltage sensitivities were considered to be linear over the frequency range used in this project. The accelerometer calibrations for this project were only taken at a frequency of 159.2 Hz which is the frequency that the calibration exciter operates. The voltage sensitivity curve could have been created for the accelerometers using a NIST standard accelerometer and plotting the values over the frequency range of the two experiments. This wasn’t done for two reasons. The first reason was that these results were only as accurate as the equipment being used to perform the calibrations and the second reason is that PCB accelerometers have fairly linear voltage sensitivities according to their specification sheets over the ranges we were using. 22 3.8 Digital Filter Design By observing the waveform that was produced by the accelerometers, it was noticed that these waveforms contained noise. These waveforms were further examined with a Hewlett-Packard Dynamic Signal Analyzer [21] and the noise occurred at high frequencies. This noise could cause unwanted side effects if it wasn’t reduced. This is what brought about the need for a low-pass digital filter [22]. A low-pass filter was desired to filter out the high-frequency noise and keep only the part of the signal in the lower frequencies. The operational range of frequency for the vibration tests is between 10 Hz and 60 Hz; so, any signals above this range were not desired. A digital filter was used in which the average value was calculated over a sub-region of a handful of samples. Figure 3.1 illustrates the presence of this noise. The information used in the figure was taken from the third reading for accelerometer A during calibration. The originally proposed method was to divide the sample range, one cycle of a sine wave, into 16 regions and then compute the average over this region. Only breaking the waveform into 16 regions didn’t seem like a very strong method for a digital filter because the regions contained too many samples. With fewer regions, too much of the curve will be represented and taking an average over these regions would not be very accurate. The new proposed method was to break the range into 50 regions with 32 samples per region. When testing this out for two channels an error occurred, which indicated an attempt to sample at a faster rate than the maximum sampling rate of 100,000 S/sec. For two channels, the maximum sampling rate for each channel turns out to be 50,000 S/sec. At the maximum frequency of the two tests of 60 Hz, the maximum number of samples which could be taken would be 833 because this is a sampling rate of just under 40,000 S/ sec per channel. For the filter, 800 samples per cycle was selected which is a sampling rate of 48,000 S/sec. per channel, or 96,000 S/sec for both channels at 60 Hz. This turns out to be 16 samples per region which is half of what was proposed in the second method. 23 com .34 cases < 3.2.8582 .3 an: SEES .5 ea..— afifi “an as»; macaw Co a com com com Dov com com cow 0 J d _ q _ u u _ mun—08 EiEmKN—C 050:3 COmMEiD—aw m .I o aunt-ooh: o /m o o‘c’o‘oo l o '00 and”. 4...... m o co... co. 0 D o r o 0 oh 0. o v. o 0'0 H co .00 o o. L O O C H O . O O O. .l on. o on H o x o L r . . . m ..,. . .. . ...¢ .. O .0 O O O m 0 .- I t . . . u .u I u n o. u I O " ~ H 0 II .... A>e$c>§d T. C. 0.. ‘ O. O O 1H o o... ”A H g... / I . .... ....... 1 . _ _ _ m. _ _ Ndl mwdl '-. O l modl in 0. o T": O 9.6 Nd (squ) indino v ieieuimejeoov 24 The filter, as implemented in LabVIEW, first collects the values of all the samples and then calculates the average value within each of the 50 subregions. The maximum value of these averages is used as the current acceleration. Figure 3.1 shows the use of the digital filter during the calibration of the accelerometer A. The dots represent the readings from the accelerometer, and the solid line is the plot of the filtered values. The region where the maximum value occurs is marked in the figure along with the maximum value. The maximum value for this calibration was 0.144 V (144 mV), this is the value that was recorded in Table 3.3. Chapter 4 CONTROL SYSTEM DESCRIPTION 4.1 Introduction After developing the individual components which performed the tasks which the final control system would need to perform, it was time to put everything together in one system. Once everything was put together, the system could be used to examine how well it performed the vibration tests and what changes, if any, were needed. Certain features were also added to the individual components to help improve the overall performance of the final control system, one of which was additional safety precautions were implemented to ensure the proper operation of the vibration equipment. 4.2 Hardware Description Tying all the hardware equipment together in the final system was very simple. It didn’t require any additional improvements over what was developed during the design of the individual components. All of the equipment was capable of being connected together without any conflicts, the only additional parts may have been the need for a power cord and a power strip in which to plug all the equipment into so that they could be supplied with power. Figure 4.1 shows a diagram of how all the hardware equipment was connected to execute the actual testing protocols. The oscilloscope was used to provide an independent way to monitor the actual acceleration. 25 26 .5895. 958 836.5: "3. 953% A 5:85» 38 4.3.4.1 Calculation of Current Frequency Based on the current time, starting frequency, peak frequency, and test time period, the current frequency can be calculated. The frequency is calculated using one of two different equations. The first equation calculates the frequency before the midpoint of the experiment is reached and the second equation calculates after the midpoint has been reached. These equations are listed in Figure 4.6 below. Once the frequency is calculated for the current time, the calculated value is used to update the plot of the current frequency vs. the current time on the Main-menu screen. This indicates to the user the progress of the current experiment. 4.3.4.2 Update of Frequency This section of the program takes the frequency which was calculated, as the current frequency, and compares it to the maximum frequency allowed and writes the smaller of the two frequencies to the serial port. The following string “FREQ\s(frequency)\n” is the command which is used to update the frequency on the function generator. The value of the new frequency is placed in the string for (frequency). The function generator will receive this command and update the frequency accordingly. 1‘ < (time/2) (peak + start) x i (time/2) + start i 2 (time/2) (peak — start) x i (time/2) + (2 x peak) start 5 . V . l 1 peak - Peak Frequency start - Starting Frequency time - Test Time Period i - Current Time Figure 4.6: Calculation of frequency equations. 39 4.3.4.3 Read Values from Accelerometers The AIREAD3.VI is used to read the values from the accelerometers. These values are then converted from Volts to mV and displayed on the Main-menu screen. The difference of the two readings is calculated and if it is larger than the allowed amount specified with the GETDATA.VI then a signal is sent to the Check Stop Button routine to abort execution of the program. 4.3.4.4 Update Amplitude This routine compares the readings from the accelerometers to their desired values and calculates a new amplitude for the function generator to try and correct any errors. Different ways of performing the correction were examined. The first method was to use the same amplitude for the update over the entire time period (zero-correction). The next three methods would calculate the amount of amplitude change that was required every second and multiple this number by 0.0 for no correction, 0.5 for half correction, or by 1.0 for full correction of amplitude. The first attempt at adjusting the amplitude used by the function generator was to calculate the amount of change needed based on the starting amplitude used. This was done by taking the starting amplitude which was found and dividing it by the starting frequency to determine the amount of amplitude per hertz. The frequency was updated at a constant rate, so an attempt was made at updating the amplitude at a rate which was equal to the change in frequency per second times the amount of amplitude per hertz. As can be seen in Figure 4.7, this method isn’t very accurate and at the peak frequency, the actual acceleration is much greater than the desired acceleration. 40 com duo—53:3 065:9..." 2.52.3 .53 .g 36,—. .< ..3oE¢..o.ouu< "h... PSME Amocooowv oEC. om F 8 F on 0mm CON 3:on 333x — tom 00—. J a :2 (Am) 969mm . CON 1 0mm < eouoEeroooe. 41 The first method for updating the amplitude wasn’t very successful, so another method was needed. The next three methods all used the same idea, but made corrections at different rates. These methods try and determine the correction which is needed and then update the amplitude on some percentage of this correction, either none, half, or full. Once the values are read from the accelerometers, accelerometer A’s actual value is compared to its desired value. The correction amount is calculated by subtracting the desired value from the measured value (error value) and multiplying this value by the previous amplitude divided by the measured value. This correction amount is then multiplied by either 0.0, 0.5, or 1.0 for no correction, half correction, or full correction and added to the previous amplitude. The block diagram of the correction method is illustrated in Figure 4.8. The vibration apparatus shakes the sensors which output a voltage indicating the acceleration. This actual acceleration is compared with the desired acceleration and a correction is made. The correction is sent to the function generator once a second which corrects the waveform used for vibration. Sine Waveform Vibration ’ Vibration Apparatus F Sensors T = 1 Sec. Actual Function Acceleration mV/ 4— \— Error Correction ‘ ( g) Generator ASCII Commands Q Desired Acceleration (mV/g) Figure 4.8: Block diagram of correction method. 42 This procedure can be used because it was determined that the amplitude vs. acceleration is linear. These results were obtained by performing three tests at 30 Hz, 45 Hz, and 60 Hz and plotting the amplitude values vs. the acceleration readings. The results of these three tests are shown in Figure 4.9. It can be seen that these plots are fairly linear. The method of no correction wasn’t a very effective way to update the amplitude for the function generator. Once the starting amplitude was determined, this amplitude was the value that was always used because after calculating the correction amount needed, this value was multiplied by zero. The result was that the actual values received from the accelerometers were always less than the desired values. As the frequency is increased, the amplitude must also be increased to be able to achieve the desired results, this method was immediately discarded and the half and full correction methods were examined next. 43 £883.33 33:83—33 .m.» £55.55. "a... 9.53,.— A>Ev 833.5. 89 83 82 8a. 8: o8, com 28 o8 28 come _ _ _ 4 fl — _ _ _ m - - 8m w 6 9 - - 8mm NT. 00 (Ax 9.5 8882 28 89 83 8m. 8m. 8: o8. 28. 28 o8 28 com? m - - 8a m 5 9 I - 8mm N m 9.5 883:2 28 8M: 83 8? 8m? 8: o8, 28 com 2: 28 8m _ A 1 _ J a _ q u m - - 8. ml. 6 9 i\.1 . 83» N: 8 ,m b p b p com 44 The half correction method calculates the change in amplitude needed based on the difference between the actual value and desired value. Only half of this change in amplitude is sent to the function generator. The results of the half correction method are displayed in Figure 4.10 for vibration test #1 and Figure 4.11 for vibration test #2. The full correction method is exactly the same as the half correction method, except the entire correction is applied to the function generator. The results of the full correction method are listed in Figure 4.12 for vibration test #1 and in Figure 4.13 for vibration test #2. In the next four figures the desired values occur on the straight line and the actual values are located on the lines which are not perfectly straight. On these figures, it can be seen that the results are fairly accurate which makes it difficult to distinguish the actual values from the desired values. The plots of the two lie on top of each other. 45 com 0mm 552.8 :2. 4% ea. "3... 88$ Aommv 9:2. Dow om o CON omw q 0 52 (Am) eBmIOA omw CON com m .EoEoeo_ooo< 8me as? com om. - _ _ — < 56892804. 46 can 0mm 588:8 :2. S. .8... :3 3:3... .89 one. cow 8. 8. 8 o _ b _ _ com m 5589283.. .89 95... CON omp cow cm 0 o O O O (0 N (Am) 9591l0A é «- » _ b _ < 8662280.... 47 588:8 =5 .z. .8... .2... 8:»... Aommv oErr com omN DON om P 00 _. cm 00 « O ,9 (Aw) eBmIOA omp 8a m 5.9.5.2802 .89 we: 08 8m 08 8. 8. 8 oo 8 A p m. 8. w m A om.t\ - _ _ p _ CON < 5.9292804. 48 £382.89 :8 .2 89—. "mu... 23E 6me 2:: 28 8m .8 8. 8. 8 oo _ _ O O N (Am) 9591|0A .8 8.. L _ p p _ m .o.oEo.o_ooo< 8me 8.: o8 8m 8w 8. 8. 8 oo O C O O 00 N (Am) 9591|0A r cow . _ < eo.oEo.o_ooo< 49 Both the half and full correction methods only use the values of accelerometer A in calculating the correction. It can be noticed from Figures 4.10 - 4.13 that the results of accelerometer B are close to its desired values too, even though it wasn’t included in the correction method. After examining the data files created from both the half and full correction methods, it appears that the half correction method is slightly better at updating the amplitude than the full correction method. The reason for this is that the full correction method may be more likely to overshot the desired value during correction compared to the half correction method. Once the new amplitude is calculated, it is inserted into a string command which is sent to the function generator. The string command which is used is of the format “VOLTS\s(amplitude)mVPP\n”, where (amplitude) is replaced by the new amplitude value. Once the function generator receives the command, it updates the amplitude to the new value. There is a check to make sure that no voltages greater than 1.8 V are sent out to the function generator. This value was greater than the amplitudes which needed to be sent out for both vibration tests. Depending on the load which is undergoing testing, this value may need to be changed in the future. 4.3.4.5 Write Data to File The data is not actually written to a file once a second, but rather stored in an array which will be written to a file upon completion of the program. The information which is stored on each line of the file includes the frequency, acceleration, channel 1 actual reading, channel 1 desired reading, channel 0 actual reading, and channel 0 desired reading. When the program is finished executing, the user is prompted for the name of the file in which data is to be stored. 50 4.3.4.6 Check Stop Button The program, when it reaches this section, checks to see if the stop button has been pressed, indicating that the user would like to end the program. If the stop button has been pressed, the program is aborted, otherwise the program continues. Before the program aborts, it applies a sine wave with an amplitude of 50 mV at a frequency of 10.0 Hz as a precautionary measure. This routine also checks to see if a signal has been received from the section of the program which reads in the values from the accelerometers. If the difference between the two accelerometer readings is larger than what was selected by the user, then the program is aborted. The difference range can be selected along with the other experiment inputs with the GETDATA.VI function. Chapter 5 ANALYSIS AND EVALUATION 5.1 Introduction Once the final control system was designed, it needed to be tested. As explained in the previous section, experiments were conducted in order to determine the most efficient amplitude correction method which was to be used. From these tests it was determined that the half correction method was the most accurate method. Upon completion of testing, the accuracy of the developed control system needed to be examined. 5.2 Accuracy of System The accuracy of the final control system needed to be calculated to determine the reliability of the vibration test results. The data collected during the tests was used in determining the accuracy. The data from the vibration experiments contained both the actual and desired values of the accelerometers at each step during the experiment. Using this data, the accuracy for the system could be determined. For each set of data points the difference between the actual and desired values were calculated. Because tuning-fork tests take a few seconds to perform, the differences were averaged over three second time intervals. Finding the maximum average difference over a three second time interval would indicate the largest amount the control system was off the desired value. For the two trial tests, the largest error was just over 7 mV for test #2 with full correction, which is an error of less than 0.06 g’s. Using half correction for both tests turned out slightly better results. 51 52 An interesting set of tests were performed to determine the accuracy of the vibration equipment over time when applied with a constant signal. These tests were performed by supplying a constant signal without making any corrections to the signal being applied. Two tests were performed, the first test had the function generator apply a sine wave with an amplitude of 800 mV (80 mV after passing through attenuator) at a frequency of 30 Hz to the power amplifier. The results of this test are plotted in Figure 5.1 and they show that even when a constant signal is applied on a function generator the accelerometer readings are not constant. The acceleration readings were averaged over 3 seconds and showed that the accelerations ranged from about 0.786 g’s to 0.831 g’s which is about a difference of 0.045 g’s. Figure 5.2 contains the results of the same test that produced Figure 5.1 but this test was operated at a frequency of 60 Hz and at a function generator amplitude of 700 mV (70 mV after passing through the attenuator). Again the results are not a perfectly straight line. The range of accelerations averaged over 3 seconds for this test was from 1.603 g’s to 1.650 g’s which is about a difference of 0.047 g’s. These results illustrate that there is some error due to the accuracy of all the hardware components. These tests used a function generator connected to the vibration apparatus which read the acceleration from two accelerometers mounted on the vibrator. The values were read through the data acquisition card attached to the laptop. The combination of all these pieces of equipment can lead to the variances in results obtained. These results are what was expected. During initial testing it was noticed that the function generator output would vary even though a constant signal was being used. It is also easy to understand that the accelerometer readings as well as the motion of the vibrator can vary with a constant signal. 53 .>E :8 8 85:8... 5. 5:. N= 8 a :88: 252.5 8 2.8.... 66.50me 66:. 8. 8. 8. 8. 8. 8 8 8 8 o q _ q u q _ _ _ O - - 8 A .o. m. .. - 8. w Egg/Iii \I w A r - 8. ( p _ _ b _ _ _ _ CON 0 56805603.. .8889 95 8. 8. 8. 8. 8. 8 8 8 8 oo - 8 p _ p p _ b p — CON < 5680568< 54 omw .>=. 8» 8 83:85.. .3 a? N: 8 a :88: .5380 .8 2.8... 8080009 68: omw om. 03 cm F cow om om ow om o q _ _ q A _ u _ J om? A o 1 com W 5 e $53231; ) - - 08 w M r oom m 568056003 6080009 68:. cm P 03 cm P CO F cm 00 CV cm 0 _ d — _ q _ 3 q I 1 cm. A o t . cow W. 6 Egg}?! 8 - - .m; omw [m r r oom r _ 3 568056003 55 There are many different areas in this control system which could be the cause the errors that are being seen, as was described in the previous paragraphs. The operation of the various pieces of equipment may not be operating consistently. This includes the vibration apparatus, function generator, data acquisition equipment, laptop, accelerometers, signal conditioners and any other equipment used. Even though this vibration control system isn’t 100% accurate, its accuracy is a giant improvement over the manual operation of these vibration tests. Chapter 6 SUMMARY AND CONCLUSIONS 6.] Purpose of Project The main purpose of this project was to develop an automated vibration control system capable of performing the recommended vibration tests on radar and laser speed- measurement devices. These vibration tests are used to simulate the operation of the device in a moving vehicle. An automated control system was desired to provide testing methods which were more accurate and reliable than the old manual method of testing. In addition to developing the control system, documentation needed to be created to instruct others on how to setup and perform these experiments. This information can be found in both Appendix A and B. 6.2 Summary of Results and Contributions The major contribution of this project was the development of a working automated vibration control system for performing vibration tests. As was explained in the last section, this system is quite accurate and is a major improvement over the previous method of performing the required vibration-test protocols. The amount of disk space required for the LabVIEW programs in the final control system is about 1 Mb. Other contributions included the ability to record data from experiment runs, documentation on how to perform the experiments, the ability to change experiment parameters, and built in safety checks. 56 57 6.3 Problems Encountered As with any project, certain problems and obstacles occur which need to be resolved. In the development of the control system, only minor problems occurred which were easily solved. Most of these problems occurred as the result of improperly configuring the hardware devices used in the experiments. The DAQCard-1200 was one of these devices which caused problems during its initial configuration. Once determining the correct settings and parameters, this data acquisition card worked perfectly (section 3.3). The function generator was another device which also slowed down the development of the system. Originally the function generator was configured to the wrong remote mode (HP-IB vs. RS-232) and the serial port settings were improperly set on the laptop. Besides the configurations for the function generator, the original commands which were sent to the function generator were in the wrong format. After correcting the configurations on both the laptop and function generator and using commands in the correct format, the function generator also functioned correctly (section 3.4). One of the biggest problems which was encountered also had an easy solution. While performing some of the initial tests, it was discovered that the signals from the accelerometers tended to float and not settle as quickly as was desired. This was easily solved by attaching a 1 k9 resistor to the “SCOPE” connector on the back of each signal conditioner. The resistor helped discharge the capacitors in the signal conditioners, creating signals which could be read using the laptop (section 3.5.2). These were just some of the larger problems which occurred. Other more smaller problems resulted which were easily fixed. These included problems like making simple mistakes in LabVIEW programming. Problems like the ones listed here caused setbacks in the development of the system. The goal was to avoid these types of problems, but not all problems can be avoided. 58 6.4 Future Recommendations This automated control system for performing vibration tests was a large improvement over the existing manual method, but it also could be improved further. The developed control system based updating the amplitude for the function generator only on one of the accelerometers (accelerometer A connected to Channel 1). One way at improving the accuracy of the system might occur if both accelerometer readings were considered in the update process. Currently the only function of accelerometer B is to ensure that both accelerometers were receiving readings within a range which was selected by the user. Otherwise the system would quit if the difference between the two accelerometers was larger than what the user selected. This control system also uses a number of various pieces of equipment and this can reduce the accuracy of the system. Examining the accuracy of each individual hardware component and its effect on the system is another suggestion for improvement. Another way in which the control system could be improved may be to examine if increasing the frequency and amplitude at a faster rate than once a second would be more accurate. 6.5 What Was Learned This project was very beneficial in that it illustrated what steps are required in the development of a system of this degree of complexity. These steps included the initial decision process, selecting the hardware and software to use, initial testing, creation of the actual system, and evaluation of the system which was built. 59 The initial decision process included deciding on the possible approaches and selecting the method which was to be used. The selection of the hardware and software required selecting and ordering the components which meet our desired needs. Once receiving the equipment, various individual parts of the control system could be developed and tested. The development of the final control system involved using some of the initial developed parts and tying everything together, plus adding any other required or desired features. Once the final control system was developed it needed to be evaluated for its accuracy. 6.6 Conclusion With the development of an automated vibration control system, radar and laser speed- measurement devices can now be more accurately tested at Michigan State University. This new control system is currently being used as the method to perform the desired vibration tests on these devices. APPENDIX A 1) 2) 3) 4) 5) 1) 2) 3) 4) APPENDIX A VIBRATION MACHINE OPERATION Model DPA4 Power Amplifier Power Up Process Turn key clockwise from 12:00 position to 3:00 position. Turn on signal generator, but keep output disconnected from power amplifier. Turn “Amplifier Standby” On. Turn “Amplifier Signal” On. Signal generator may be connected to power amplifier when told to by program. (Caution: make certain that both frequency and amplitude are properly adjusted before activating on the output). Power Down Process Signal generator may be turned off and disconnected. Turn “Amplifier Signal” off. Turn “Amplifier Standby” off. Turn key counter-clockwise from 3:00 position to 12:00 position. 60 APPENDD( B APPENDIX B VIBRATION TESTING PROTOCOL EQILLEMENI Laptop computer with Windows 3.1 and LabVIEW software. 2 Signal conditioners. 2 Accelerometers (already calibrated). 2 Resistors for signal conditioners (1 kfl). l DAQCard-1200. 1 NB] cable. 1 PR-SOM cable. 1 BNC board. 2 Coaxial cables for accelerometers/signal conditioners. Powercord / powerstrip. 10X attenuator. 5 BNC Cables (or more). 1 Null-modem cable. 1 Function generator. 1 Oscilloscope. 2 BNC T connectors (to connect oscilloscope). Device undergoing testing. Device mounting equipment (boards, rods, wing-nuts). 61 62 SEER LaptOp - Plug power adapter into laptop. 0 Connect null—modem cable from laptop to function generator. 0 Plug DAQCard-1200 into top PCMCIA slot (Slot #0). - Insert card with DAQCard-1200 label facing down. - Before plugging in card, connect PR-SOM cable. 0 Connect NB-l cable to BNC board connector I l. 0 Connect other end of NB-l cable to PR-SOM cable. 0 Power up laptop (notice red light on BNC Board lights up). 0 Start up Windows (type win at DOS prompt). 0 Start up DAQCONF and minimize (This sets the device number for LabVIEW). - Start up LabVIEW and load program. - Program Directory: C:\2.MPS\THESIS - Program Name: VBRATION.VI Function Generator - Connect to null-modem cable from laptop. 0 Connect 10X attenuator to output. 0 Do not connect to vibration power amplifier yet (will be told to by program). 0 Power on and set waveform to sine wave, 10Hz, 50mV VPP (precaution method). Accelerometers - Screw accelerometer mounting devices onto specially designed platform. 0 Attach accelerometers to mounting devices. 0 Plug in both signal conditioners into power strip. 0 Attach coaxial cable from “XDR” on signal conditioner to accelerometer (corresponding letters: original accelerometer A marked 94 mV/g, original accelerometer B marked 97mV/g). 0 Attach resister to “SCOPE” output of signal conditioner (corresponding letters). 0 Connect BNC cable from channel 1 on BNC board to resistor on signal conditioner A. - Connect BNC cable from channel 0 on BNC board to resistor on signal conditioner B. - Power on signal conditioners. Vibration Machine (Power-Up) - Turn key clockwise from 12:00 position to 3:00 position. - Turn on "Amplifier Standby". - Turn on "Amplifier Signal". 0 Do not connect to function generator until told so by program. Mounting Testing Device 0 Center device in middle of platform. 0 Use mounting boards, threaded rods, and wing-nuts to clamp device down. Table B.1: Vibration testing protocol parameters. Test # Starting Frequency Peak Frequency Time (Seconds) Amplitude l 10 Hz 30 Hz 300 0.015 in 2 30 Hz 60 Hz 300 0.0075 in Oscilloscope - Place BNC T connectors on BNC board (Channel 1 and 0). 0 Connect BNC cable from T connector to oscilloscope input. 0 Connect BN C cable from T connector to “SCOPE” output on signal conditioner. W (vbrationNi) 1) Follow power amplifier power up process (Appendix A). 2) Press run button. 3) Enter desired values (see above table), click “Click to Start” button. 4) When told to, connect vibration machine to function generator. 5) Select “Click When Settled” button when values appear to be correct. 6) After starting amplitude has been reached, select “OK” in pop-up menu to start experiment. 7) After experiment completes, a pop-up window will appear to enter filename to save data to. Disconnect vibration machine at this time and enter filename. W - Power down vibration machine in reverse order than setup. 0 Close all Windows programs and tum-off laptop. 0 Turn off signal conditioners and function generator. 0 Pack up all equipment. 63 APPENDIX C APPENDIX C PHOTOS OF CONTROL SYSTEM EQUIPMENT .Am5688068a E... 886—. 5...... 03.50:: 8.0%....— ..0=a..£> 3.0 9.53..— 65 .Ccaauusw .8525.— “vs a 6.32— OZ: , finnflfinuafl x; .2,1JBBflad, 4.3%. £955.28 _a:w_mv 25:52.3 ESQ? 3.5—SO N 92%: 66 ”SEE—=5 .532— ..a.=_x== 6:5 .3953 2:893 3:35am «:3 "nd 953% [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] BIBLIOGRAPHY WWW. Ling Dynamic Systems Inc., 60 Church St., Wallingford, CT 06492-2340. I II IIIII III ihuuvuuya' I-w .III I "“i I‘2 W. Ling Dynamic Systems Inc., 60 Church St., Wallingford, CT 06492-2340. 1100' ,U111_H"l QI1l-._l',QL.l-_ II I '0 " -..II {1.01. DIV ' . (DOT HS 808-069). Traffic Safety Programs, National Highway Traffic Safety Administration, US Department of Transportation, Washington, DC 20590. [1994]. W. First Edition. International Busi- ness Machines Corporation, Armonk, NY 10577. [1993]. Gateway 2000, PO. Box 2000, 610 Gateway Dr., North Sioux City, SD 57049. W. (part #320999A-01). National Instruments Corporation, 6504 Bridge Point Parkway, Austin, TX 78730-5039. [1996]. Haddow, Alan G. Personal Interview. March 19, 1996. VI. 1Q.10110_’Q1_Q"k' ;"r'III . (601C). PCB Piezotronics Inc., 3425 Walden Ave., Depew, NY 14043- 2495. [1993]. ' 01 am ,"A 01 .Q '0 W 1| 2"" .9 ”.111.‘ W. (6033) PCB Piezotronics Inc., 3425 Walden Ave., Depew, NY 14043- 2495. [1994]. w ' ’ . PCB Piezotronics Inc., 3425 Walden Ave., Depew, NY 14043-2495. Wm. National Instruments Corpora- tion, 6504 Bridge Point Parkway, Austin, TX 78730—5039. [1995]. 67 [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] 68 WW. (Part #320936A-01). National Instruments Cor- poration, 6504 Bridge Point Parkway, Austin, TX 78730-5039. [1995] W. (Part #320407-01). National Instruments Corpo- ration, 6504 Bridge Point Parkway, Austin, TX 78730-5039. [1993] 7 II. 1; -1‘111-0 .I erv 0111]". e u Hewlett-Packard Company, 3000 Hanover St., Palo Alto, CA 94304. [1994]. W31. (part #320998A-01). National Instruments Corporation, 6504 Bridge Point Parkway, Austin, TX 78730—5039. [1996]. WWW (part #320997A-01). National Instruments Corporation, 6504 Bridge Point Parkway, Austin, TX 78730-5039. [1996]. International Business Machines Corporation Web Site. http://www.pc.ibm.com/searchfiles.html. (file: pctpx130.exe). Award Software International Inc. 777 East Middlefield Road, Mountain View, CA 94043-4023. Tektronix, Inc. 26600 SW Parkway, PO. Box 1000, Wilsonville, Oregon 97070- 100 Briiel & Kjar. 15873 Middlebelt Rd. Livonia, MI 48154-3809. - ' ° '. . -. __ r. (part #03561 -.90002) Hewlett-Packard Company, 8600 Soper Hill Road, Everett, WA 98205-1298. [1990]. Chen. Wai-Kai. WWMMM New York: John Wiley & Sons. [1986]. "lllll‘lllllllllllllll'“