Jump to content

Export to text file from LabVIEW


Recommended Posts

Hello everybody,

I have to complete a LabVIEW program by exporting data to a text file under a defined format. At the present time, data is exported in an Excel file. As I start with LabVIEW, I don't really know how to proceed.

Do you have some information to help me to start with this task ? How to cerat a etxt file, to open it, to fill it, to close it ?

Thank you very much !

Sylvain

Link to comment
Hello!

On the diagram menu, you can find a sub-menu with a disk as icon. In this sub-menu, you can find different VIs than can export data to a text file (simple text file, Comma Separated Value...)

BY!

Hi,

if you have your data in an string array you can use the "Array to Spreadsheet String.vi" (you'll find this in the string menu)

If your data is only numbers you can use the read and write to a spreadsheet file VIs from the File I/O menu (with the disk icon)

Then you can easily import the text file into Excel if you need.

have a nice day

Ulrich

Link to comment
Hello,

I had a look in that menu and find different things but I've got trouble to use them.

In the text file I have to create, I have to write a first line with defined information and then numeric data separated by ";"

I haven't find for the moment how to have data of two types (string and numeric).

Sylvain

Try somthing like that...

post-3651-1154509451.png?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.