08-07-2020 02:15 AM - edited 08-07-2020 02:18 AM
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!
Solved! Go to Solution.
08-07-2020 02:27 AM - edited 08-07-2020 02:31 AM
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…