LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i go to new line

How can i go to new line when iam writing data to a file by using write to spraedsheet file.vi every time.i mean i would like to go to newline everytime.
0 Kudos
Message 1 of 5
(3,755 Views)
You can set the delimeter which is the character between points, by default it is tab (\t) and a new line(\n) is between rows.

So an array
1 2
3 4

Would be saved as 1\t2\n3\t4\n

If you want it to have a newline at every point wire in a new line constant in as the delimeter to the write to spreadsheet file VI.
Message 2 of 5
(3,755 Views)
thank u for you reply but delimiter is not considering \n .instead of going to newline it is just printing \n.
i didn't find new line constant on function palette.
0 Kudos
Message 3 of 5
(3,755 Views)
Take a look at the attached code. I am writing a 2-D array to the file using the default method so it looks like
1 2 3
4 5 6
7 8 9
in the file.

I then use the Line Feed Constant as a delimiter, and you can see it then looks like
1
2
3
4
5
6
7
8
9

The line feed and carriage return constant is on the String Pallette.
0 Kudos
Message 4 of 5
(3,755 Views)
thank u for your reply.my problem is solved and i have been searching for new line constant instead of line feed constant.
0 Kudos
Message 5 of 5
(3,755 Views)