From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, ni.com will be undergoing 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: 

HOW CAN I SEND A TABLE TO A TEXT FILE

Solved!
Go to solution

Hi,

 

   

      I have a table with a lot of values , and i need to transfer this table to a text file (.txt) , without lose the position

of this values in that table .Someone can help me with this? 

Thx Smiley Happy 

0 Kudos
Message 1 of 8
(2,768 Views)

dunno what is the meaning of alias wrote:

Hi,

 

   

      I have a table with a lot of values , and i need to transfer this table to a text file (.txt) , without lose the position

of this values in that table .Someone can help me with this? 

Thx Smiley Happy 


 

Hi dunno wha...,

in this case you should write your data into a *.csv file. You can open it with excel and you still have your table.

 

Mike

0 Kudos
Message 2 of 8
(2,754 Views)
Solution
Accepted by topic author faelnpaiva

Or you can use Write to Spreadsheet File.vi

 

Write_To_SpreadSheet_string.png

 

~Jonathan 

-----
LV 8.2/8.5/8.6 - WinXP
Message 3 of 8
(2,743 Views)

Hi again , now i have another problem ...

 the values of table is tranfering ok , but the header isnt going togheter ..

Do u know how i append the headers of table in the file ?

 

 

thx ^^ 

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

You can write your header ahead of time, then append your table later on.

headings.jpg

Cory K
0 Kudos
Message 5 of 8
(2,701 Views)

What component is that ?

Has this component in labview 6.0 ?

 

 

 

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

Write to Spreadsheet File.vi

 

Yes it is there is LabVIEW6.0 with a different icon. SO, just read the Vi label in file I/O function.

 

0 Kudos
Message 7 of 8
(2,658 Views)

There is some conflicting and incorrect information here. First, to get the column headers of a table, you use a property node and the property 'Column Header Strings[]'. This is a string array and you can append it to the 2D string array that is the table contents.

 

In 6.0, the Write to Spreadsheet File was not able to write a string array. However, there are instructions on the block diagram that describe what needs to be modified. After making the modifications, save the VI with a new name and in a new location.  I know for a fact that the modified VI has been posted to the forum. You can do a search but the actual modifications should take less time.

Message 8 of 8
(2,645 Views)