From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save the files information with its names.

Solved!
Go to solution

Hello, 

By the attached .vi i read some values from .csv files. 

I store the informations (Time) in .csv file. currently, I use the loop iteration (i) to name every row in the output file. 

I need to replace the iteration value from the output file by the name file. 

For example, currently, I get that results:

1, 1023, 1107.38, 1450, 1200.71

I want to get:

X=0, Y=1, Z=2.csv, 1, 1023, 1107.38, 1450, 1200.71

 

Do you have any ideas!

Download All
0 Kudos
Message 1 of 2
(805 Views)
Solution
Accepted by topic author BaJa_2020

Hi BaJa,

 

when you want to write mixed strings and numbers into a file then most often it helps to convert anything to string.

Or in your case not to convert to numbers in the first place:

Comments on your VI:

Most often DeleteFromArray is used in the wrong way: indexing the column first, then the rows of interest is much easier!

Why do you read twice from each file? Reading once should be ok too, you just need to adapt the row numbers eventually…

Please avoid to show the label of each LabVIEW function: when you still need this you should use the context help window!

Never hide the label of terminals…

 

Edit: Delete the Transpose? flag when writing your "result" data…

 

Best regards,
GerdW


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