LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Data From Agilent 34401

Solved!
Go to solution

The left column is the loop iteration number.

0 Kudos
Message 11 of 23
(2,414 Views)
Solution
Accepted by topic author cnoyes23

Use the simple "Write to Spreadsheet" VIs. (They have a slightly different name in 2015). I have it set up for comma separated (.csv) but you can change the delimeter to whatever you want. This is a snippet so you can drag it onto the block diagram and play with the code.

 

Write to CSV.png

Message 12 of 23
(2,404 Views)

Thank you. This might be an overly simple question but what is a delimeter?

0 Kudos
Message 13 of 23
(2,398 Views)

Also would this structure still be valid if I'm trying to write multiple columns of data values for each loop iteration?

0 Kudos
Message 14 of 23
(2,391 Views)

Delimeter is what separates your data along a row.

Comma: Data1,Data2

Space: Data1 Data2

Tab: Data1     Data2

 

Yes, if you have another single data point for each loop you can expand the "build array" node and wire it in.

0 Kudos
Message 15 of 23
(2,385 Views)
For the pink box that says point, would you know what item that corresponds to? I'm looking for it but I can't find it.
0 Kudos
Message 16 of 23
(2,377 Views)

That's just a text header that I wrote to the file first. You can change the column, or expand the array horizontally, to change what text is written as a header.

0 Kudos
Message 17 of 23
(2,373 Views)
So does this write to excel or is this something I could also open in Notepad, for example (like the images I sent)?
0 Kudos
Message 18 of 23
(2,364 Views)

You can open .csv or .txt files in notepad. If you ever do want to write to an excel file, make sure to use the report generation toolkit, not the write to spreadsheet functions.

0 Kudos
Message 19 of 23
(2,361 Views)

Thanks for your help. The data is now nicely written in columns. One final question. The numbers only go to three decimal places. Is there an easy way to extend that?

0 Kudos
Message 20 of 23
(2,309 Views)