Storage of test measurement data in LabVIEW (6)

Publisher:HarmonyInLifeLatest update time:2015-09-16 Source: eefocusKeywords:LabVIEW Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
      Next, we will introduce two other file formats in LabVIEW. The first is Bytestream.

Picture1 

      To put it bluntly, this file format is a binary file. There are only two VIs, one for reading and one for writing. It basically supports any type of data in LabVIEW. As long as you can create data in LabVIEW, you can store it in this file format. It can be guessed that what these two VIs do is relatively simple. Just write the data in the memory of LabVIEW to the file. Of course, if you do this, the efficiency is also relatively high because there are no calculation steps. But there are also some disadvantages. For example, writing data directly to the file is not necessarily a good idea. The real problem is how to manage this data. For example, when reading a file, you also need to know what type of data these files store, where they are stored in the file, and so on.

      In general, if the user pursues pure file writing speed and does not care about whether there will be difficulties in reading the file in the future (in fact, if a file is only written and not read, it is meaningless), then it is still possible to use such a file format.

      Next, we will introduce the TDM file format.

      TDM files refer to files with the suffix .TDM. The logical storage model of the file follows NI's TDM Data Model , a three-layer structure. TDM files are mainly divided into two physical files, one is the main file with the suffix TDM, which stores raw data and attribute information; the other is the header file with the suffix TDX, which mainly stores attribute information for easy search, as an index file. The main file is similar to the XML structure, while the header file is a binary file. The reason is very simple: the header file is mainly used to index and search data, so it has a higher requirement for reading speed, so it is more suitable as a binary file.

Picture2

      The operation of TDM files is mainly completed through Storage VIs in LabVIEW. I personally feel that the biggest advantage of the TDM file format is data management. The file formats introduced before did not give much consideration to data management. The TDM file format is divided into three structures and can add user-customized attributes, which is more convenient to use. Let's take a simple example: many people bring lunch at noon and put it in a lunch box. Ordinary files are a hodgepodge, with rice and vegetables mixed together, which is inconvenient to eat and looks messy; while TDM files are like lunch boxes with partitions, where rice and vegetables can be placed separately, which is convenient and tidy.

      With NI's progress in test and measurement files, the TDM file format has been gradually replaced by the TDMS file format. Next time, we will specifically introduce TDMS.

Keywords:LabVIEW Reference address:Storage of test measurement data in LabVIEW (6)

Previous article:Storage of test measurement data in LabVIEW (5)
Next article:Developing Algorithms with LabVIEW MathScript: Part 2 - MathScript Interactive Window

Recommended ReadingLatest update time:2024-11-17 00:05

LabVIEW Programming Skills - How to Compare System Time
  How to compare whether the current time is between 22:00:00 and 05:00:00? From the literal meaning, 05:00:00 should be the early morning of the next day. Someone's comparison method is to convert the time upper and lower limits and the current time into strings, and then compare them. The following is his flowchart.
[Test Measurement]
LabVIEW Programming Skills - How to Compare System Time
Design Method of Parametric Array Test System Based on LabVIEW
introduction The Parametric Acoustic Array is an acoustic emission device that utilizes the nonlinear characteristics of the medium and uses two high-frequency initial waves propagating in the same direction to obtain difference frequency, sum frequency, and multiple frequency in the far field. According to
[Test Measurement]
Design Method of Parametric Array Test System Based on LabVIEW
In-depth exploration of labview-data logging files in the file series
As a programming language, LABVIEW has many file systems that are suitable for various occasions and are very professional. Let's start with the relatively simple data log file. The data log file (DATALOG) has a special category in the LV function panel: First, the DATALOG file is a standard binary file, so i
[Test Measurement]
In-depth exploration of labview-data logging files in the file series
Designing high-speed digital tests for military defense systems
Author(s): Rabah Derradji - EDA Industries SRL F. Arcangeli - EDA Industries SRL F. MagNIno - EDA Industries SRL L. Magni - EDA Industries SRL Industry: Aerospace/Avionics, Semiconductor, Electronics, Government/Defense Products: PXI-8176, High-Speed Digital I/O, Labview The Challenge: Develop a high-channel-co
[Test Measurement]
Development of Virtual Instruments in Virtual Laboratory
Virtual Instruments The emergence of virtual instruments is a revolution in the history of measuring instrument development. With the high development of microelectronics technology, computer technology, software technology, and network technology and their application in measurement and instruments, as well as
[Test Measurement]
Development of Virtual Instruments in Virtual Laboratory
LabVIEW Programming Patterns (V) - Producer/Consumer Pattern (5)
Combining the state machine mode, event structure and dynamic calling technology, we can summarize the general design pattern for more complex applications. For common test and measurement programs, it is mainly composed of five parts: data acquisition, data analysis, peripheral menu item response, report generation, a
[Test Measurement]
LabVIEW Programming Patterns (V) - Producer/Consumer Pattern (5)
Labview--String zero padding integration (temperature calibration output)
In the temperature calibration input, a   double value is input.   Since the calibration data occupies 2 bytes in the modubs protocol, when the input data is small, it needs to be filled with 0 in front when converted into bytes.       Input and output data: (without CRC part data)
[Test Measurement]
Labview--String zero padding integration (temperature calibration output)
Low-cost LabVIEW experimental teaching system based on MCS51
  Here, a LabVIEW experimental teaching system including common sensors, data acquisition modules and USB communication interface is designed using the cheap MCS51 single-chip microcomputer . The system uses the USB interface to communicate with the host computer and provide power, while the host computer programming d
[Microcontroller]
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号