This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Connexions module: m13026 1 Introduction to Lab Hardware and LabVIEW Implementation * Nick Lin Eduardo Gildin Robert Bishop This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License Abstract This module provides an introduction to real-time control of the ECP Model 210 Rectilinear Plant using LabVIEW Real-Time. Students open and execute a simple control algorithm to become familiar with the software environment and lab hardware that will be used in future labs. 1 Introduction to Lab Hardware and LabVIEW Implementation 1.1 Objectives Become familiar with how the lab hardware works Understand how the LabVIEW control loop block diagram executes Gain experience in interacting with the VI front panel 1.2 Pre-Lab 1. In your own words, describe how the implementation VI's block diagram executes. More speci cally, explain the execution when the system is idle and when a reference trajectory is commanded. 1.3 Lab Procedure 1.3.1 Using the Model 210 Rectilinear Plant 1. Connect the drive motor and encoder feedback cables to the Model 210 plant. 2. Unclamp the rst mass carriage and remove any springs that may be connected to it. Be sure to position the stop bumpers to allow maximum range of motion for the carriage. Load four 0:5kg brass weights onto the carriage. In this con guration the carriage acts as a rigid-body system. 3. Clamp the other two mass carriages by moving the stop bumpers inward so they constrain the motion of the carriage. You will need to use a 1/4 inch spacer nut between the mass carriage and stop bumpers so as to not engage the limit switches. * Version 1.3: Oct 20, 2005 12:04 pm GMT-5 http://creativecommons.org/licenses/by/2.0/ http://cnx.org/content/m13026/1.3/ Connexions module: m13026 2 4. Power on the PXI by pressing the rectangular button located at the bottom left corner of its front face. Wait approximately 30 seconds for the system to boot up. 5. Run LabVIEW on your host PC. 6. Target the PXI real-time embedded controller by selecting RT Target: 146.6.105.x note: (the IP address of your PXI system) from the Execution Target drop-down menu on the LabVIEW startup screen. Wait for LabVIEW to establish a connection. 7. Now click the Open button on the LabVIEW startup screen and locate the le named Lab 1 - Intro to Lab Hardware.vi. The VI front panel should look like the one in Fig. 1. LabVIEW Figure 1: VI Front Panel 1. Enter a loop time of 0.005 seconds then run the VI by clicking on the arrow button at the top-left corner of the front panel (because of the way that the VI's block diagram is written, you must enter the loop time before running the VI. If you wish to change the loop time, you must stop the VI, enter the new loop time, and then run the VI again). At this time, the VI code will be downloaded from the host PC to the PXI. When downloading is complete, the VI will automatically begin executing on http://cnx.org/content/m13026/1.3/ Connexions module: m13026...
View Full Document
This note was uploaded on 10/16/2010 for the course ECE 380 taught by Professor Baltazar during the Spring '10 term at Rice.
- Spring '10