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.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 The Basics of Javascript Programming the World Wide Web Fourth.
Advertisements

Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
BASIC SKILLS AND TOOLS USING ACCESS
Tutorial 3 – Creating a Multiple-Page Report
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 9 Moving to Design Lecture Analysis Objectives to Design Objectives Figure 9-2.
A. Virtual Instruments (VIs)
Previously… We created a simulated temperature reader which alerts if too hot or too cold… Download the solved practice to keep in sync: Thermostat.vi.
Report Card P Only 4 files are exported in SAMS, but there are at least 7 tables could be exported in WebSAMS. Report Card P contains 4 functions: Extract,
SE-292 High Performance Computing
1 2 In a computer system, a file is a collection of information with a single name, such as addresses.doc, or filebackup.ppt, or ftwr.exe, or guidebook.xls.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
Test on Input, Output, Processing, & Storage Devices
Parallel List Ranking Advanced Algorithms & Data Structures Lecture Theme 17 Prof. Dr. Th. Ottmann Summer Semester 2006.
Excel Lesson 11 Improving Data Accuracy
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
Word Lesson 7 Working with Documents
Microsoft Access.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 24.1 Test-Driving the Ticket Information Application.
Lesson 2 Navigating LabVIEW
DAQmx下多點(Multi-channels)訊號量測
Microsoft Office Word is an example of ____ software. a. Database b
© S Haughton more than 3?
Benchmark Series Microsoft Excel 2013 Level 2
Progam.-(6)* Write a program to Display series of Leaner, Even and odd using by LOOP command and Direct Offset address. Design by : sir Masood.
SW388R7 Data Analysis & Computers II Slide 1 Copying SPSS Output Into Microsoft Word Copying syntax commands from SPSS output to Word Copying a statistics.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Sampled Audio. We store digitised audio samples. This is the main audio data. In a file (e.g..wav format) we also need some header information. We will.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Addition 1’s to 20.
INTRODUCTORY MICROSOFT WORD Lesson 7 – Working With Documents
25 seconds left…...
Test B, 100 Subtraction Facts
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
Lesson 12 Getting Started with Word Essentials
SE-292 High Performance Computing Memory Hierarchy R. Govindarajan
Excel Lesson 13 Using Powerful Excel Functions Microsoft Office 2010 Advanced Cable / Morrison 1.
Lesson 13 Editing and Formatting Documents
Using the Import Accounting Line Feature You may enter accounting lines one by one in KFS or may enter multiple accounts at once using the Import Accounting.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 2Advanced Reports, Access Tools, and Customizing Access Chapter 8Integrating Access Data.
TM Graphical Monitoring Electronic Service Tools.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 13 – Salary Survey Application: Introducing.
Chapter 8 Improving the User Interface
LabVIEW Introduction Alan Jennings.
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
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.
MIS316 – BUSINESS APPLICATION DEVELOPMENT – Chapter 14 – Files and Streams 1Microsoft Visual C# 2012, Fifth Edition.
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.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
Files Tutor: You will need ….
Documenting LabVIEW Data & Data Mining with LabVIEW and DIAdem Presentation with self paced training exercises.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
EET 2259 Unit 13 Strings and File I/O
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Chapter 13: File Input and Output
EET 2259 Unit 13 Strings and File I/O
Presentation transcript:

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 of bits 1 Binary TDMS ASCII

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI A. File Formats ASCIITDMSDirect Binary Numeric Precision GoodBest Share data Best (Any program easily)Better (NI Programs easily) Good (only with detailed metadata) EfficiencyGoodBest Ideal UseShare data with other programs when file space and numeric precision are not important Share data with programs when storing simple array data and metadata Store numeric data compactly with ability to random access

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI A. Understanding File I/O File I/O writes to or reads from a file A typical file I/O operation involves the following process: 3 Open/ Create/ Replace File Read and/or Write to File Close File Check for Errors

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI A. Understanding File I/O – File Formats LabVIEW can use or create the following file formats: BinaryUnderlying file format of all other file formats ASCIISpecific type of binary file that is a standard used by most programs TDMSType of binary file created for NI products consisting of two separate files: a binary file and a binary index file 4

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI A. Understanding File I/O – File Formats Use text files in the following situations: You want to access the file from another application Disk space and file I/O speed are not crucial You must not perform random access reads or writes Numeric precision is not important 5

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI B. Understanding High-level File I/O High-level VIs Perform all three steps (open, read/write, close) for common file I/O operations Might not be as efficient as the functions configured or designed for individual operations Low-level VIs Individual VI for each step If you are writing to a file in a loop, use low-level file I/O functions 6

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI B. Understanding High-Level File I/O Write to Spreadsheet File Converts an array of double-precision numbers to a text string and writes the string to an ASCII file Read From Spreadsheet File Reads a specified number of lines or rows from a numeric text file and outputs a 2D array of double-precision numbers Write to/Read from Measurement File Express VIs that write data to or read data from an LVM or TDMS file format 7

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI B. Binary FilesSequential/Random Access Two methods of accessing data: Sequential Access Read each item in order, starting at the beginning of a file Random Access Access data at an arbitrary point within the file 8

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI B. Binary FilesSequential Access To sequentially access all of the data in a file, you can call the Get File Size function and use the result to calculate the number of items in the file, based upon the size of each item and the layout of the file You can then wire the number of items to the count terminal of the Read from Binary File function 9

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI B. Binary FilesRandom Access Use the Set File Position function to set the read offset to the point in the file you want to begin reading The offset is in bytes; therefore, you must calculate the offset based upon the layout of the file 10

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS Files TDMS Technical Data Management Streaming Use TDMS files for the following purposes: To store test or measurement data To create a structure for grouping your data To store information about your data To read and write data at high speeds 11

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesFile Format TDMS file Binary file (.tdms) that contains data and stores properties about the data TDMS_Index file Binary index file (*.tdms_index) that provides consolidated information on all the attributes and pointers in the TDMS file Speeds up access to the data while reading Automatically regenerated if lost TDMS file format internal structure is publicly documented 12

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesData Hierarchy Channel Stores measurement signals or raw data in a TDMS file Each channel can have properties describing the data The data stored in the signal is stored as binary data on disk to conserve disk space and improve efficiency Channel Group Segment of a TDMS file that contains properties and one or more channels Use channel groups to organize your data and to store information that applies to multiple channels 13

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesAccessing TDMS Files Use the Write to Measurement File and Read from Measurement File Express VIs Allows you to quickly save and retrieve data from TDMS format Very little control over your data grouping and properties Use the TDM Streaming API Set of functions for opening, writing to, reading from, and closing TDMS files Allows you to organize your data into channel groups and channels Use the TDM Excel Add-In Tool Allows you to read TDMS files in Microsoft Excel 14

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesTDM Streaming API 15

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesWrite Data Streams data to the specified TDMS file Data subset to write is determined by group name and channel name(s) inputs 16

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesRead Data Reads the specified TDMS file and returns data from the specified channel and/or channel group 17

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesSet Properties Sets the properties of the TDMS file, channel group, or channel 18

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesGet Properties Returns the properties of the TDMS file, channel group, or channel 19

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI C. TDMS FilesFile Viewer Opens TDMS file and presents the file data in the TDMS File Viewer dialog box 20

Gruppo di Misure Meccaniche e Termiche UNIBS - DIMI Practice Generate a set of waveforms and export them as a single CSV file. Compute the waveforms PSDs and export them as a single CSV file. Open both files in excel and check the results.