LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write 2D array data into file but file is empty

Solved!
Go to solution

Hello,

I tried to write all data reading from powermeter into a file in two ways, I can see the output data in the Indicator Arrais but when I write to "Spreadsheet file.vi" or write to "text file", the files are empty.

Please help me.

0 Kudos
Message 1 of 3
(2,315 Views)
Solution
Accepted by topic author sam009

Try removing the "STOP" vi.

I suspect it is stopping the main vi before the saving occours.

As a second comment: since you save data inside a while loop make sure you are appending data to the file and not overwriting it each time.

i.e. wire a "true" to "append to file" terminal.

 

Regards,

Marco

0 Kudos
Message 2 of 3
(2,312 Views)

Dear Marco,

I removed the "STOP" vi. and worked. Many thanks.

 

0 Kudos
Message 3 of 3
(2,307 Views)