LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save numbers and words in the same file

Solved!
Go to solution

Hello:

 

I've done a vi where I record the spectrum and it's integration in diferent positions of a bidimensional net. I save the information in two spreadsheet with the comand "write to measurement file".

 

Now I'm trying to save the parameters Initial X position, end X position and space between measurement points. I want a file with two columns wich looks like:

 

Initial X position   1000

end X position      2000

space                 100

 

But Idon't know how to save words and numbers in the same file.

 

As I have to do several measurements I want to choose the name of the file automatically (something like parameters_1, parameters_2...)

 

Thank you for your atention

0 Kudos
Message 1 of 3
(2,564 Views)
Solution
Accepted by topic author bitxor

Hi bitxor,

 

you could use any of the WriteTotext file functions to write strings to a file.

Then you could configure WriteToMeasurementFile" to append new data to existing files (instead of overwriting or renaming them)...

 

Btw. it's not a good idea to mix up lvm files with arbitrary spreadsheet data!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,562 Views)

Thank you for answering so fast.

 

I think I'll use a write to measurement file and commen in the header what parameters are saved

0 Kudos
Message 3 of 3
(2,551 Views)