From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Overview
This example demonstrates how to log multiple columns of data into a spreadsheet file (comma delimited, tab delimited, etc.) with the Write to Spreadsheet File VI
Description
The Write to Spreadsheet File VI takes data in the form of 1D or 2D arrays. To have the data in the arrays show up as columns, we can transpose the array. Each element in the array will contain multiple data values, one for each column. The data values will be separated by commas or tabs, depending on the file type. This example demonstrates inserting three columns of data into a CSV file.
Steps to Implement or Execute Code
Requirements
Software
LabVIEW
Additional Images or Video
Snippet:
Sample spreadsheet created with this VI:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
I have 10 arrays of 20000 values each. Your code is taking alot of time. IT IS VERY SLOW.
Generally speaking, the Write Delimited Text File (or Write To Spreadsheet File) should not be used inside of a loop. That VI opens the file, sets the file pointer, writes the data, and closes the file each time it is called. This is extremely expensive. The file should be opened/created before the loop, closed after the loop, and then you can write as much as you need inside of the loop.
Hello, for some reason this example have been tagged with the CVI keyword which as evident has nothing to do with it. Can you remove the CVI tag from it?