12-23-2022 11:38 AM
Hello,
I'm working on a project, and I am stuck close to the finish line. I am having trouble finding a proper way to convert a string into 1D array of cluster of 2 elements. More exactly, I am trying to convert the ''Valori incarcate'' into the same type of data as the local variable ''LATURI''. I will attach a picture of the part of the block diagram that I am talking about and the VI.
English is not my first language, so I hope that I managed to get the message across.
If someone can help or point me in the right direction, it would be greatly appreciated.
Solved! Go to Solution.
12-23-2022 12:24 PM
It looks like you already have part of the next function there, "Spreadsheet string to array", but it's not wired up.
Without knowing the contents of the "date.txt" file it's not possible to know for sure what you need to put to make that work, if it will actually work.
Does "date.txt" contain a lot of lines of text, with each line being 2 numbers? If so, what is between the two numbers?
You will need to fill in the following to make the "Spreadsheet string to array" work:
Once you get that taken care of, you should get a 2D array of doubles out, which you can then run into a FOR loop and put the two date elements from each line of the file into a cluster, and output that into your LATURI variable.
12-23-2022 12:30 PM - edited 12-23-2022 12:31 PM
12-24-2022 01:16 AM
Thank you very much. It worked.