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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spreadsheet moving to next row.

Solved!
Go to solution

I have to make a VI that does the job of storing information in a text file, with a row containing user's name (column 1), and say account no (column 2),

how do I move on to next row, in the text file after the user hits 'write' ? ive attached the vi.

 

can anyone please help ?

 

acccolumns.JPG

 

0 Kudos
Message 1 of 5
(2,193 Views)

Hi Sono,

 

maybe you should think about appending new data to an already existing file?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,190 Views)

Thanks for a prompt reply,  I want to be able to append the new data when user hits 'write' each time, appending would mean the new data moves to new line (row), like column index +1 for every write. how do i do that?

 

 

 

0 Kudos
Message 3 of 5
(2,184 Views)
Solution
Accepted by topic author Sonofsam

Hi Sono,

 

you should append new data to the file instead of overwriting it.

There are examples coming with LabVIEW that show how to do that...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,178 Views)

Thanks, this solved the problem 🙂 

0 Kudos
Message 5 of 5
(2,170 Views)