Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the font size in .txt file

Dear Sir:

I am using create file.vi, write file.vi and close file.vi to generate my report in .txt format.
Since the input of the write file.vi is string, I used "Array To Spreadsheet String" to convert my array data.
I have several issue for this application.
1. For "Array To Spreadsheet String", the default delimiter is tab. Can I change the tab width in labview?
2. I try to change the data font in labview, however, when I save to .txt file, the font are always kept as default font. Can I change the font of data to save into .txt file.
3. When I try to use report generation function of labview, I just can save file as standard format, word, excel, and html. How can I save file as .txt file by using report generation function?
4. When I save report as excel file, I have some issue that I can not solve it. I already post it on the board as link below, but got no response. Welcome for any suggestion or experience. http://forums.ni.com/ni/board/message?board.id=170&message.id=125000#M125000

Thanks

Fred
0 Kudos
Message 1 of 2
(4,642 Views)
Fred,

Let me see if I can answer your questions:
1. The width of a tab is not defined by LabVIEW so much as the program that reads it. If you do not like the spacing that 1 tab is giving you, you can create a string constant off the "delimeter" input and type "\t\t"...each \t is a tab so you will get twice the space. If you want to get more resolute with this you can use \s for a space rather than a whole tab.

2. What font are you trying to save and in what text editor are you trying to view this report?

3. The difficulty with saving an entire report as a .txt file stems from the fact that .txt editors are often quite simple in format and do not always have the fonts available. Decorations, such as the table grid, do not exist in text editors. Why is it you would like to use a text editor to view your report? You will probably need to use a Word format or simplify your report.

4. There is a posted response to your other post.

-Brett
0 Kudos
Message 2 of 2
(4,631 Views)