LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save 1D array data to excel continuously

Solved!
Go to solution

Sir,

how to save 1D array data to excel continuously,in such a way that all the  data from first scan must be placed in first raw and all data's from the second scan must be placed on the second raw and go on...

 

sy@m..

0 Kudos
Message 1 of 8
(6,721 Views)

Do you mean row?

 

In any case, do you want to save in native Excel format or is a text file that Excel can read okay? The simplest is to write a text file with the Write to Spreadsheet File/Write to Measurement File/Write to Text File function. What have you tried? What is generating the data? Have you looked at any of the numerous examples?

0 Kudos
Message 2 of 8
(6,718 Views)

Hi syamni,

 

sounds like you want to create a 2D array from your scan data and save that to a CSV file using WriteSpreadsheetFile...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 8
(6,715 Views)

@GerdW wrote:

Hi syamni,

 

sounds like you want to create a 2D array from your scan data and save that to a CSV file using WriteSpreadsheetFile...


Or just wire the 1D array to the 1D array input.Smiley Wink

0 Kudos
Message 4 of 8
(6,713 Views)

Sorry for the spelling mistake..

 

The thing is I am getting stream of 1D array like 123456123456123456123456... go on from a gpib instrument.And when I am going to save in spreadsheet file I am getting the saved data as 123456123456123456123456.Actually I want to save as

123456

123456

123456

123456 and go on in excel format. Have you got my point...

 

 

Waiting for your comment....

Sy@m....

 

 

0 Kudos
Message 5 of 8
(6,699 Views)

Well, 123456123456123456123456 is not a 1D array. It is a single string. So, are you really getting an array or not? Since there seems to be confusion as to what is actually read and how, attach your code.

0 Kudos
Message 6 of 8
(6,692 Views)
Solution
Accepted by topic author syamni

Hi Sy@m

 

Here's a vi which might give you some ideas to try out:

Message 7 of 8
(6,674 Views)

thank you..thanks a lot....

 sy@m..

 

0 Kudos
Message 8 of 8
(6,641 Views)