LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i convert a double value (orange cable) to a value i can save to a text file or a *.xml file?

I have a couple of values (results from a calculation  from a measurement) i want to save to a external file for later use. I also want to add more data to the file eventually. can somebody help me?
0 Kudos
Message 1 of 13
(3,522 Views)

Hi milo_unli...,

you can convert it to a string and write it to the file. If you have an array, then you can use the "Write to Spreadsheet file" function.

 

Mike

Message 2 of 13
(3,521 Views)

I dont know how to do that. I've taught myself how to work labview only a week ago. i attached a portion of my abominable creation.

The array of clusters needs to be saved in a file...

 

thnx

0 Kudos
Message 3 of 13
(3,518 Views)

Hi milo_unli...,

which of them do you want to write to the file?

I recommend to see also the Free LabVIEW Courses.

 

Mike

Message 4 of 13
(3,515 Views)
i need both orange cables saved to a file
0 Kudos
Message 5 of 13
(3,513 Views)

Hi milo_unli...,

did you try it with the "write to spreadsheet file" function? First you can build one array from them and then you can connect it directly to this function.

 

Mike

Message 6 of 13
(3,507 Views)

There is no need to convert the double to anything.  If you have an array of doubles, you can wire it up directly to a Write to Spreadsheet File.vi.

 

See attached example.  Run it, select where you want to save it (with filename) and then have a look at the content of the file.

Then adjust the example to your needs.  If a single number (not an array), there are other tricks, but for now, you could convert it to a 1D array.

 

R

Message 7 of 13
(3,504 Views)

Thank you, it worked to some extent. I was able to finaly put both cables into one textfile and save the file, but i was not able to do it in one go (see attached pic)

 

Can somebody tell me how to combine the two orange wires (see file) into one string so I can add them both in one line in a text file?

0 Kudos
Message 8 of 13
(3,470 Views)

Hi milo_unli...,

use the "build array" function. You will find it in the array palette. If you right click on it, you will find additional capabilities. Smiley Wink

 

Mike

Message 9 of 13
(3,467 Views)

nice 🙂

 

but i still dont have an excell sheet with the different cable-values in a different column. Is that possible?

0 Kudos
Message 10 of 13
(3,460 Views)