ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
04-23-2020 10:31 AM - edited 04-23-2020 10:33 AM
@crossrulz wrote:So for some reason, I have had this thread in my head since last night. And I think I have come to the conclusion that I would attack this with 2 FOR loops. Each loop can run in parallel, each handling a different line in the final file. I would use an array of strings to state what is being handled for each item going into the line. Autoindex on those arrays and do whatever parsing, etc needs to be done inside of a case structure, and autoindex a string out of the loops. At this point, a FOR loop will output an array of strings. You then use Array To Spreadsheet String to convert into a comma delimited array and write the string.
I felt the need (and found the time) to create an example. The VI is saved in 2018 for you.

Notes: