A.How to create string controls and indicators B.Some string functions C.How to perform file input and output operations D.How to format text files for.

Slides:



Advertisements
Similar presentations
Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI A. File Formats At their lowest level, all files written to your computers hard drive are a series.
Advertisements

COMP 116: Introduction to Scientific Programming Lecture 37: Final Review.
BMP Hide ‘n’ Seek What is BMP Hide ‘n’ Seek ? –It’s a tool that lets you hide text messages in BMP files without much visible change in the picture. –Change.
.NET Framework Overview. Whats in the 1.1 Framework physical assemblies physical assemblies Hundreds of namespaces Hundreds of namespaces.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
Excel Lesson 1 Excel Basics. Task 1  Goals  Learn about Excel  Start Excel  Explore the Excel screen  Explore the Excel workbook  Explore the worksheet.
© 2004 Pearson Addison-Wesley. All rights reserved10-1 Chapter 10 : Exceptions Intermediate Java Programming Summer 2007.
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
SmartPay 2 Travel Card Program for DoD Bulk Account Maintenance with File Upload 1.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Introduction to Computer Programming Stringing Along – Using Character and String Data.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
Word Lesson 14 Working with Long Documents Microsoft Office 2010 Advanced Cable / Morrison 1.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT WORD Lesson 7 – Working With Documents.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 13 Strings and File I/O  Read Bishop, Chapter 9.  Lab #13 and Homework #13 due next week.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Tips and Tricks to Speed LabVIEW Development Useful Nuggets to Save You Time ni.com/labviewzone.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
Microsoft Word 2000: Mail Merge Basics Peggy Serfazo Marple Molly Calvello Support Professionals Business Applications - Desktop Microsoft Corporation.
Topics Introduction Hardware and Software How Computers Store Data
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
CTS130 Spreadsheet Lesson 3 Using Editing and Formatting Tools.
Just Enough AutoCAD Chapter 9 Creating Text Adding and Formatting Text in AutoCAD Understanding Text and Scale Using Styles to Organize Your Fonts Adding.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
Lesson 2: Applying Advanced Formatting
STRINGS & STRING HANDLING FUNCTIONS STRINGS & STRING HANDLING FUNCTIONS.
1 ADVANCED MICROSOFT EXCEL Lesson 9 Applying Advanced Worksheets and Charts Options.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
 Agenda: 4/24/13 o External Data o Discuss data manipulation tools and functions o Discuss data import and linking in Excel o Sorting Data o Date and.
COMP 116: Introduction to Scientific Programming Lecture 24: Strings in MATLAB.
ITCS373: Internet Technology Lecture 5: More HTML.
Input and Output. Announcements  Exam Next Wednesday –Next Monday: Review session.  Invited talk: –7:30 PM,Tuesday, Oct 28th. –Prof. Katherine Socha.
By Rachel Thompson and Michael Deck.  Java.io- a package for input and output  File I/O  Reads data into and out of the console  Writes and reads.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 24 The String Section.
1/62 Introduction to and Using MS Access Database Management and Analysis Yunho Song.
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
The Report Generator Viewing Student Outcomes. Install the Report Generator In a browser, go to Click.
Programming Fundamentals. Summary of previous lectures Programming Language Phases of C++ Environment Variables and Data Types.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
The SPIM Trap Handler Syscall Trap handler services String operations File operations Memory allocation Central Connecticut State University, MIPS Tutorial.
A FIRST BOOK OF C++ CHAPTER 14 THE STRING CLASS AND EXCEPTION HANDLING.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
Array Controls and Indicators
LabVIEW Course Course 2.
Review: A Computational View Programming language common concepts: 1. sequence of instructions -> order of operations important 2. conditional structures.
NXT File System Just like we’re able to store multiple programs and sound files to the NXT, we can store text files that contain information we specify.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED FORMS.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
Chapter 4 Strings and Screen I/O. Objectives Define strings and literals. Explain classes and objects. Use the string class to store strings. Perform.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
DEVRY BIS 155 W EEK 4 Q UIZ D ATA A NALYSIS WITH S PREADSHEETS WITH L AB Check this A+ tutorial guideline at
Excel Tutorial 8 Developing an Excel Application
EET 2259 Unit 13 Strings and File I/O
Data Validation and Protecting Workbook
Poster Title Heading Heading Heading Heading Heading Heading
2016 REPORT.
EET 2259 Unit 13 Strings and File I/O
201X REPORT.
目 录 The quick brown fox. 目 录 The quick brown fox.
2016 REPORT.
Presentation transcript:

A.How to create string controls and indicators B.Some string functions C.How to perform file input and output operations D.How to format text files for spreadsheets E.How to use the high-level File VIs You Will Learn: Lesson 7 Strings and File I/O

A string is a sequence of characters (ASCII) Many uses – displaying messages, instrument control, file I/O String control/indicator is in the Controls»String subpalette Strings

String Display Modes Normal display Password display \ code display Hex display

Concatenate Strings The quick brown fox jumped over the lazy dog. Concatenated String Strings spaces here String Length = 20 Length String String Functions

File Input and Output Three levels of hierarchy High-level utility file VIs Intermediate file I/O VIs Advanced file I/O functions High Level File VIs Intermediate File VIs and Functions Advanced File Functions

Intermediate File I/O VIs Open/Create/Replace file – opens, creates, or replaces a file Read File – reads count bytes from the file Write File – writes data to the file Close File – closes the file Error handling in file I/O –Time & Dialog subpalette –Displays a dialog box if an error occurs

Saving Data to a File 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

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

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 Easily created using LabVIEW file I/O VIs

Creating a Spreadsheet File TabEnd of Line A spreadsheet yields:

Write to Spreadsheet File Read from Spreadsheet File Write Characters to File Read Characters from File Read Lines from File High-level File I/O VIs

String is a collection of ASCII characters – many uses –Display messages –Instrument control –File I/O Many functions to manipulate strings – Strings palette of Functions menu Three levels of File I/O hierarchy –High-level VIs –Intermediate VIs and functions –Advanced functions Writing data in spreadsheet format –Tab character separates columns –End-of-line character separates rows –Write/Read from spreadsheet high-level File I/O VIs Summary