Electronics II Physics 3620 / 6620

Similar documents
Arrays. Collection of data elements that are of same type

Virtual Instrumentation With LabVIEW

Virtual Instrumentation With LabVIEW

Lecture 3 (week Feb 8-12) Expanding the Features of a VI. Select the Loop Condition. A. Structures--While Loop. A. Structures--For Loop

Measurement & Automation Explorer (MAX) View and control your devices and software

Hardware: Acquiring Data and Communicating with Instruments

EE 100 DMM and DC Power Supply LabVIEW Experiment Guide

1

CLAD Sample Exam 06. B. Panel Resize. C. Panel Close? D. Value Change

2. The LabView Environment Two panes will open, one is the Front panel, and one is the Block Diagram

LabVIEW. Table of Contents. Lesson 1. Pre-reqs/Technical Skills Basic computer use

Labview Lab 2. Vern Lindberg. April 16, 2012

EKT 314/4 LABORATORIES SHEET

LabView programming 練習

Documentation EtherCAT Slave PC LabVIEW 1.4

Certified LabVIEW Associate Developer Exam. Test Booklet

BE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform

CLAD Exam Preparation Guide using LabVIEW NXG

TOP Server Client Connectivity Guide for National Instruments' LabVIEW

File Storage Techniques in LabVIEW

Documentation EtherCAT Sniffer Library for LabVIEW 1.0

Labview for Everyone (National Instruments Virtual Instrumentation Series) Jeffrey Travis

ME 224: EXPERIMENTAL ENGINEERING. Lecture 2

Tips and Tricks for Highly Productive Programming in LabVIEW

Documentation EtherCAT Framework 1.2

ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

CLAD Sample Exam 03. C. A control that output a cluster of the controls / indicators on the tabs.

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

Kepware Technologies KEPServerEX Client Connectivity Guide for National Instruments' LabVIEW

Tips and Tricks for Highly Productive Programming in LabVIEW

ECE 451 Automated Microwave Measurements Laboratory. Experiment No. 2. Automated RF Power Detection Using LabVIEW

Getting Started with LabVIEW Virtual Instruments

Arrays are lists of elements of the same data type. They are analogous to arrays in traditional languages.

Exercise 0 - Open and Run a Virtual Instrument (Slide 12)

ni.com/training Quizzes LabVIEW Core 1 ni.com/training Courses Skills learned: LabVIEW environment Certifications Skills tested: LabVIEW environment

LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT

Documentation TwinCAT ADS Library for LabVIEW TCP 4.1

LabVIEW VI Analyzer Toolkit

University of Illinois Department of Electrical and Computer Engineering ECE 451 Automated Microwave Measurements Laboratory

Small rectangles (and sometimes squares like this

COMPUTING AND DATA ANALYSIS WITH EXCEL. Managing Datasets

Lab 1: Getting familiar with LabVIEW: Part I

Manual Physical Inventory Upload Created on 3/17/2017 7:37:00 AM

NI mydaq HANS-PETTER HALVORSEN, Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

Manual LabVIEW Data Converter Xml 1.0 Library

Hands-On Introduction to. LabVIEW. for Scientists and Engineers. Second Edition. John Essick. Reed College OXFORD UNIVERSITY PRESS

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

Working with Mailbox Manager

Oracle General Navigation Overview

Bitter, Rick et al "Drivers" LabVIEW Advanced Programming Techinques Boca Raton: CRC Press LLC,2001

Bulk Creation of Data Acquisition Parameters

Boonton IVI Driver Files in LabVIEW

Dept. of Electrical, Computer and Biomedical Engineering. Measuring the common emitter current gain β in a bipolar junction transistor

Getting Started with IVI Drivers

OPENING A LEADS.TXT FILE IN EXCEL 2010

NAME EET 2259 Lab 3 The Boolean Data Type

Learn the three palettes. Learn how data is passed in LabVIEW. Create a subvi using two different methods.

NI-IMAQdx VI Reference Help

Data Acquisition Laboratory

PHYC 500: Introduction to LabView. Exercise 8 (v 1.3) M.P. Hasselbeck, University of New Mexico. Arrays, XY Graphs, Disk I/O

AutoData Systems Instructions

Today. 4/5/11 Physics 262 Lecture 10 Questions about Exams Homework. Lab: Continue project. Lecture. Review your exams and review practice exam again.

Certified LabVIEW Associate Developer Examination

Determination of Drag Coefficient

Learn LabVIEW 2010 / 2011 Fast

Custom PDF Generator for LabVIEW Version 3 Quick Start User Guide

SeeG3 Users Manual V2.00 Micro-g Solutions Inc. Erie, Colorado, USA

COMM335 Summer 2016 (Tutorial 1) (1) Creating Tables in a Database

Running Mekorma MICR on Windows Vista

Certified LabVIEW Associate Developer Examination

Introducing the LXI Interface

Integrating TCP with Word to Create New Merge Forms.

Birst Pronto: Connect to Data in Pronto

Lab 6A: Customizing the Desktop

LabVIEW Academy. 12. óra event, property node

UNIVERSITY OF CALIFORNIA BERKELEY Department of Electrical Engineering and Computer Sciences. B. E. BOSER Oscilloscopes EECS 100

Documentation EtherCAT Library for LabVIEW 2.9

RoboDAQ7. By John Buzzi. Masters of Engineering Report. Cornell University

Lab 4 - Data Acquisition

ActiveBPEL Fundamentals

Visual Streamline FAQ

Barcode Magician Application Note

1. Learn about LabView software and its different components

LabVIEW VI Analyzer Toolkit

LabVIEW Basics I: Introduction Course

LabVIEW Express VI Development Toolkit User Guide

BE/EE189 Design and Construction of Biodevices Lecture 4. BE/EE189 Design and Construction of Biodevices - Caltech

CLAD_80.questions.

The GPIB Interface. Last modified Week 4 - part 1. What we have here is a failure to communicate - Cool Hand Luke

Honaker BASIC QUIA INSTRUCTIONS How to set up Class Page in QUIA

Bitter, Rick et al "LabVIEW Features" LabVIEW Advanced Programming Techinques Boca Raton: CRC Press LLC,2001

Nortel Quality Monitoring User Import Guide

Intermediate Microsoft Excel 2008

Mercury LabView Driver Library

Homework Assignment 9 LabVIEW tutorial

User Account Manager

Using NI LabVIEW with iologik E2210 servers

GETTING STARTED GUIDE

Transcription:

Electronics II Physics 3620 / 6620 Apr 15, 2009 Part 1 Strings and File I/O 4/13/2009 1

Strings A string is a sequence of displayable or - characters (ASCII) Many uses displaying messages, instrument control, file I/O We (should already have in labs 6-8) used strings (both input and output) in controlling the serial port with the ADR101 String control/indicator is in the Controls Modern String & Path subpalette 4/13/2009 2

String Display Modes By right-clicking the control or indicator, you can pick a particular display mode that suits your application. For instrument control (e.g. serial or GPIB) you typically need the \ code display Normal display \ code display Password display Hex display 4/13/2009 3

String Functions String functions can be accessed via the Functions Programming String subpalette These include, for example, the string constant, and String Length (we saw this in the even odd state machine example previously) Concatenate Strings (spaces here) 4/13/2009 4

String Functions String Subset (also used this function in the even odd state machine example) Match Pattern 4/13/2009 5

The build Text assistant starts with a dialog, which allows you to specify the variables AND any extra text to go with each. Converting Numerics to Strings: Build String You can revisit the dialog with rightclick proerties 4/13/2009 6

Converting Strings to Numerics: Scan From String This function can be very useful in parsing output from an instrument, for example, the PTH board that we used to demonstrate serial port programming 4/13/2009 7

Edit Format String You can edit the format string with an editor in Format into String and Scan from String by right clicking the function node and invoking the format xxx string dialog (bottom choice). The format string is then formed from menu choices 4/13/2009 8

File Input and Output The File I/O functions are found in the Functions Programming File I/O subpalette The organization shown below is for Version 7 Version 8 (and each sub-version) has slightly different arrangements Four Hierarchy Levels: High-level File VIs Intermediate File VIs and Functions Advanced File Functions subpalette Express VIs 4/13/2009 9

The Icons for the Spreadsheet read and write functions have changed in version 8 High-level File I/O VIs Write to Spreadsheet File Read from Spreadsheet File Write Characters to File Read Characters from File Read Lines from File 4/13/2009 10

File I/O Programming Model - Intermediate Open/ Create/ Replace File Read and/or Write to File Close File Check for Errors In version 8 there is an Open/Create/Replace File function in the File I/O subpalette, which does not pop up a dialog in the absence of a valid path I could not find the Open/Create/Replace File.vi in the function palettes There is an equivalent Open_Create_Replace File.vi in an example: Find Examples (from the starting menu) Hardware Input Output DAQmx Analog Measurements Voltage Cont Acq&Graph Voltage-To File(Binary).vi C:\Program Files\National Instruments\LabVIEW 8.0\examples\DAQmx\Analog In\Measure Voltage.llb\Cont Acq&Graph Voltage-To File(Binary).vi 4/13/2009 11

Write to File Example Open/Create/Replace opens the existing file TEST1.DAT and generates refnum and error cluster Write File writes the data Close File closes the file Simple Error Handler checks for errors ***I am posting a copy of Open_Create_Replace File.vi in today s section of the Class Materials and Lecture Notes in the class web site 4/13/2009 12

Reading Data from a File Open/Create/Replace opens the file Read File reads the specified number of bytes from the file Close File closes the file Simple Error Handler checks for errors 4/13/2009 13

Formatting a Spreadsheet String Spreadsheets are popular tools for data handling and analysis There are many formats for spreadsheet data. One of the most popular is tab-delimited: Columns are separated by a tab character Rows are separated by an end-of-line character A spreadsheet yields: Tab End of Line 4/13/2009 14

Creating a Spreadsheet File Can replace Format Into String and Write File with Format Into File in above example 4/13/2009 15

Write LabVIEW Measurement File Express VI Includes the open, write, close and error handling functions Handles formatting the string with either a tab or comma delimiter Merge Signals function is used to combine data into the dynamic data type 4/13/2009 16