Streaming Data to Spreadsheet Files
- Updated2026-05-01
- 3 minute(s) read
Use disk streaming when you need multiple write operations to a spreadsheet file.
Disk streaming reduces the number of times LabVIEW interacts with the operating system to open and close a file. You can use disk streaming while formatting data as a spreadsheet string and writing the string to a file.
What to Use
Use the following block diagram objects to format data and to stream the data to a file.
What to Do
Create the following block diagram to format data of different data types as a spreadsheet string and to stream the string to a file.
Customize the gray sections for your unique programming goals.
You can improve the performance of disk streaming by buffering data using a shift register:
- First, initialize the shift register with a buffer of data.
- Next, write data to the buffer.
- When the buffer is full, write the buffer to disk.
Streaming Data to Spreadsheet File Examples
For an example of streaming data to spreadsheet files, refer to the Tab-Delimited Data project in the labview\examples\File IO\Spreadsheet\Tab-Delimited Data directory. This example uses the Array to Spreadsheet String function, which converts data of one data type to a spreadsheet string and writes the string to a file.
For an example of buffering data when streaming data to spreadsheet files, refer to the Buffered Stream to Tab-Delimited Text File VI in the labview\examples\File IO\Spreadsheet\Tab-Delimited Data directory.
Related Information
- Saving Memory using Disk Streaming
Disk streaming means performing multiple read or write operations within a loop on an open file. Disk streaming saves memory by reducing the number of times a function interacts with the operating system to open and close a file.
- Format Specifier Syntax
Understand LabVIEW format specifier syntax for format strings that format output or scan input.
- Shift Registers: Passing Values between Loop Iterations