Fig. 1. The Front Panel (Graphical User Interface)

Similar documents
Basic LabVIEW Programming Amit J Nimunkar, Sara Karle, Michele Lorenz, Emily Maslonkowski

ENGR 1000, Introduction to Engineering Design

ME EN 363 ELEMENTARY INSTRUMENTATION Lab: Basic Lab Instruments and Data Acquisition

Data Acquisition Using LabVIEW

Analyzing and Saving a Signal

Lab experience 1: Introduction to LabView

Getting Started with the LabVIEW Sound and Vibration Toolkit

Introduction To LabVIEW and the DSP Board

ENGR 1000, Introduction to Engineering Design

NI-DAQmx Device Considerations

LabView Exercises: Part III

Sample. Data Acquisition and Signal Conditioning. Course Manual. Course Software Version 2011 February 2012 Edition Part Number P-01

Virtual instruments and introduction to LabView

Recording of Coincidence Signals in a Software Medium

Amplification. Most common signal conditioning

Advanced Synchronization Techniques for Data Acquisition

AMIQ-K2 Program for Transferring Various-Format I/Q Data to AMIQ. Products: AMIQ, SMIQ

MTL Software. Overview

What s New in Raven May 2006 This document briefly summarizes the new features that have been added to Raven since the release of Raven

Integration of Virtual Instrumentation into a Compressed Electricity and Electronic Curriculum

LAX_x Logic Analyzer

Oscilloscopes, logic analyzers ScopeLogicDAQ

Research of Intelligent Traffic Light Control System Design Based on the NI ELVIS II Platform Yuan Wang a, Mi Zhou b

Quick Reference Manual

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A)

Design and Realization of the Guitar Tuner Using MyRIO

Using different reference quantities in ArtemiS SUITE

ValveExpert Plotter. The ValveExpert Plotter consists of: 1) Personal Computer

SignalTap: An In-System Logic Analyzer

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

Do the following: a. (12 points) Draw a block diagram of your circuit design, showing and labeling all essential components and connections.

B I O E N / Biological Signals & Data Acquisition

Operating Instructions

DSP Laboratory: Analog to Digital and Digital to Analog Conversion *

UNIT V 8051 Microcontroller based Systems Design

Lab 1 Introduction to the Software Development Environment and Signal Sampling

EASY-MCS. Multichannel Scaler. Profiling Counting Rates up to 150 MHz with 15 ppm Time Resolution.

Using the HDCV Data Acquisition Program

WaveView. and. WaveCal

Experiment 13 Sampling and reconstruction

Logic Analyzer Auto Run / Stop Channels / trigger / Measuring Tools Axis control panel Status Display

FIR Center Report. Development of Feedback Control Scheme for the Stabilization of Gyrotron Output Power

Software Control of a Confocal Microscope

Major Differences Between the DT9847 Series Modules

ECSE-4760 Real-Time Applications in Control & Communications INTRODUCTORY LAB EXPERIMENT

SigPlay User s Guide

NI-DAQmx Key Concepts

EECS145M 2000 Midterm #1 Page 1 Derenzo

The Measurement Tools and What They Do

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

Quick Start Guide Building and Scheduling a Show

LABORATORY 14: ANALOG TO DIGITAL CONVERSION USING ADC0809

Scanning For Photonics Applications

AD16-64(LPCI)LA. Non-isolated high precision analog input board for Low Profile PCI AD16-64(LPCI)LA 1. Ver.1.01

The Micropython Microcontroller

MODFLOW - Grid Approach

Personal Protective Equipment Wear nitrile gloves, lab coat, and safety glasses as a minimum protection, unless otherwise indicated.

v. 8.0 GMS 8.0 Tutorial MODFLOW Grid Approach Build a MODFLOW model on a 3D grid Prerequisite Tutorials None Time minutes

Table of Contents Introduction

GALILEO Timing Receiver

The Design of Teaching Experiment System Based on Virtual Instrument Technology. Dayong Huo

Transmitter Interface Program

AI-1616L-LPE. Features. High-precision Analog input board (Low Profile size) for PCI Express AI-1616L-LPE 1. Ver.1.02 Ver.1.01

SPI Serial Communication and Nokia 5110 LCD Screen

AD16-16U(PCI)EV. Features. High-Speed & Resolution Analog Input Board for PCI AD16-16U(PCI)EV 1. Ver.1.02

LabView Exercises: Part II

Vorne Industries. 2000B Series Buffered Display Users Manual Industrial Drive Itasca, IL (630) Telefax (630)

University of Tennessee at Chattanooga Steady State and Step Response for Filter Wash Station ENGR 3280L By. Jonathan Cain. (Emily Stark, Jared Baker)

VXI RF Measurement Analyzer

CHAPTER 3 ECG SIGNAL RECORDING USING LABVIEW

Clarke and Inverse ClarkeTransformations Hardware Implementation. User Guide

Main Design Project. The Counter. Introduction. Macros. Procedure

Design and Implementation of an AHB VGA Peripheral

User Manual for ASSIST Evaluation & Programming Tool EPT002

MONITORING AND ANALYSIS OF VIBRATION SIGNAL BASED ON VIRTUAL INSTRUMENTATION

TV Synchronism Generation with PIC Microcontroller

DSP First Lab 04: Synthesis of Sinusoidal Signals - Music Synthesis

Experiment 9 Analog/Digital Conversion

Laboratory Exercise 7

AD12-16U(PCI)EV. Features. High-Speed Analog Input Board for PCI AD12-16U(PCI)EV 1. Ver.1.01

DT9837 Series. High Performance, USB Powered Modules for Sound & Vibration Analysis. Key Features:

BNC-2120 INSTALLATION GUIDE. Connector Accessory for Multifunction DAQ Devices

USER MANUAL Nokia 5110 LCD

The aim is to design a next generation real time karaoke device which would be a stereo type equalizer by efficient

The BAT WAVE ANALYZER project

DEVELOPMENT OF LABVIEW BASED WIRELESS CONTROL SYSTEMS FOR ION BEAM MICROMACHINING SYSTEMS

OPTIMUM Power Technology: Low Cost Combustion Analysis for University Engine Design Programs Using ICEview and NI Compact DAQ Chassis

Zero Crossover Dynamic Power Synchronization Technology Overview

Revision History. SDG2000X Firmware Revision History and Update Instructions

Patchmaster. Elektronik. The Pulse generator. February 2013

Fermentation Vessel Automation Final Report. Team: Dec Client: Stephanie Loveland ISU Department of Chemical and Biological Engineering

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

Combinational vs Sequential

Decade Counters Mod-5 counter: Decade Counter:

Session 1 Introduction to Data Acquisition and Real-Time Control

Introduction: Overview. EECE 2510 Circuits and Signals: Biomedical Applications. ECG Circuit 2 Analog Filtering and A/D Conversion

Lab 2: Hardware/Software Co-design with the Wimp51

SMC 3000 Series Master Clock Installation Manual (V2) Table of Contents

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Transcription:

ME 4710 Motion and Control Data Acquisition Software for Step Excitation Introduction o These notes describe LabVIEW software that can be used for data acquisition. The overall software characteristics are described. o This software was written specifically to interface with electro-hydraulic trainers. It is designed to interface with National Instruments (NI 6052E or NI 6251) data acquisition cards to send a step voltage command to a linear proportional valve and to read the command signal and the valve spool and hydraulic cylinder positions. Front Panel o The front panel of the LabVIEW data acquisition (open-loop control) program for a step excitation is in Fig. 1. The Signal Output AO box (upper left) specifies the magnitude of the step voltage command to be sent to the valve. o The program assumes this command is then available on analog input Channel 2, and the hydraulic cylinder and valve spool position signals are available on analog input Channels 0 and 1, respectively. Fig. 1. The Front Panel (Graphical User Interface) Kamman Motion and Control page: 1/6

o The rate at which the analog input channels are sampled (in samples/sec) is shown in the Sampling Information box on the right. Just below this input box is the actual sampling rate achieved as determined by the LabVIEW program. o The collected data is stored in a text file as specified in the File Path input box. The file folder icon on the right of the box allows the user to browse for a file location. The size of the files generated is determined by the sampling rate and the total time duration of the measurement. o Once the information for signal output, sampling rate, and file path is entered, the user starts the program execution. The command signal will be sent, and sampling of data will begin only after the user clicks on the Command button (turning it ON). Data collection will continue until the user clicks the Command button a second time (turning it OFF). o When the Command button is OFF, the program will send the constant Reposition voltage as indicated on the front panel, allowing the user to reposition the hydraulic cylinder to a convenient starting point. o After repositioning the hydraulic cylinder, clicking on the Write File + Stop button will allow the data to be written to a file and program execution to stop. The Block Diagram o The LabVIEW code is depicted in the form of a block diagram. Descriptions of the basic operation of the various segments of code follow. Analog Input Channel Initialization o At the writing of these notes, the most recent form of data acquisition available in LabVIEW is called DAQmx. LabVIEW includes many subroutines (VI s) to support this feature. Fig. 2 shows the first segment of the code that utilizes DAQmx VI s to create a data acquisition task and initializes the analog input channels. o The initialization of each channel includes defining the physical device (NI 6052E or NI 6251), the channels (in this case, analog input channels 0, 1, and 2), the minimum and maximum voltages for each channel, the type of measurement system (reference single-ended (RSE) in this case), the sampling rate, and the sample mode. o The sample mode determines whether the sampling is based on software or hardware timing. (The most accurate form of timing is hardware timing.) This code utilizes continuous sampling Kamman Motion and Control page: 2/6

mode which is hardware timed. The DAQmx Timing block measures the actual sampling rate achieved. This rate is displayed in the output box in the Sampling Information section on the right side of the front panel. Fig. 2. Segment to Create DAQmx Task and Initialize Analog Input Channels Analog Output Channel Initialization o The initialization of the analog voltage output channel includes defining the physical device (NI 6052E or NI 6251), the channels (in this case, just channel 0), the sampling rate, and the sample mode. The sampling rate is carried forward from the analog input initialization, and as before, continuous sampling mode is chosen to guarantee hardware timing. o As wired, the sample clocks for the analog input and analog output tasks are shared so the two tasks will be synchronized. The analog output task is then started; however, since it is tied to the sample clock for analog input, analog output will not occur until the analog input task is started. o Note also in this section that the data file is opened (or created) before the data acquisition is started. The block diagram for this section of the block diagram is shown in Fig. 3. Kamman Motion and Control page: 3/6

Data Acquisition and Cylinder Repositioning o Just before the data acquisition ( while loop ) loop is executed, the analog input task (and consequently the analog output task) is started, a null array is defined to store the collected data, and the analog output value from the front panel is identified. o As execution enters this loop, the Command button should be OFF, so the reposition voltage is sent to the analog output channel and data is collected and shown on the Waveform Chart on the front panel. The block diagram of this segment with the Command button OFF is shown in Fig 4. Fig. 3. Segment to Initialize the Analog Output Channel and Synchronize it with the Analog Input Channels o Clicking the Command button (to turn it ON) sends out the analog output voltage command and collects the response data. The data is appended to the null array. Data is collected by the DAQ card using hardware timing and stored in a memory buffer on the card. Each time the while loop is executed, the software reads a certain number of samples from that buffer. o The number of samples read from the buffer is listed just above the analog read task icon. From our experience, that number should be about one-tenth of the sampling rate. If this number is too small or too large relative to the sampling rate, data will be lost, and the data acquisition process will be compromised. Kamman Motion and Control page: 4/6

Fig. 4. The Data Acquisition Segment with the Command Button OFF o The amount of data collected (and the size of the data file) is dependent on the amount of time the user leaves the Command button ON. The block diagram of this segment with the Command button ON is shown in Fig. 5. o Click the Command button OFF to stop data acquisition. Then use the reposition voltage to reposition the hydraulic cylinder. After repositioning the cylinder, the reposition voltage should be reset to zero. o Click the Write File + Stop button on the right of the front panel to end the while loop, write the data to a file, and stop program execution. Storing the Data o After the user clicks the Write File + Stop button, the while loop stops, the input and output tasks are stopped and cleared, the data is written to a spreadsheet file, and the file is closed. Before converting the data to a spreadsheet format, the time values are modified so the first value in that data is zero. This segment of the block diagram is shown in Fig. 6. Kamman Motion and Control page: 5/6

Fig. 5. The Data Acquisition Segment with the Command Button ON Fig. 6. Segment to Record Data and Stop Execution Kamman Motion and Control page: 6/6