Jump to content
Sign in to follow this  
Pepe96

Save arrays to file in columns

Recommended Posts

Hi to all.

I got the problem, that I need to create a file with the arrays took received from an instrument.

As the file for receiving the data from the instrument is quite big, I created a trial-vi to implement the write to file function lateron.

I attach a screenshot of the result and the vi.

My problem is that the data should be written to the file in format of a table.

for e.g.

[file name]

testpath

[data]

-24,300000 0,000000

-24,300000 0,000000

-24,300000 0,000000

-24,300000 0,000000

-24,300000 0,000000

-24,300000

.

.

.

and not in that way as it is indicated in the screenshot-jpg-file.

The problem seems to me to convert each of the two arrays into a column.

Actually I am quite a Newbie in LabView but I already used the help and the search function without success :(

I appreciate any help

Thanks in advance.

Pepe

post-1500-1107865004.jpg?width=400

Download File:post-1500-1107865029.vi

Share this post


Link to post
Share on other sites

There are many solutions, I suppose. The easiest one: join the two arrays in a 2D array instead adding them separately to the string.

Saludos,

Aitor

post-1450-1107870822.jpg?width=400

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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