10-09-2008 09:42 PM
Hi ,
I am generating some arrays which I like to save them in a row and since they are inside a loop a matrix will be created.
I do have a method how to do it ( attached is my sample program). The problem is that I have to take every value and wire it and it has really become a pain, since the program is growing.
Can anyone suggests an easier way, well it does not have to be the type I have chosen, excel file is OK.
Thanks a lot
Solved! Go to Solution.
10-09-2008 10:54 PM - edited 10-09-2008 10:56 PM
Don't use the array to cluster. That is not scalable and you would have to create dozens to hundreds of wires.
Look at array to spreadsheet string like in the picture. Now your example wasn't clear on what order you wanted things wired, or what format you wanted the numbers converted to in the string. So you may have to rework the delimiters (tab by default) and the format string. But the picture should give you the idea.
10-10-2008 11:06 AM
Hi Ravens Fan,
Thanks again for the help. I appreciate it. Well I do not want to take advantage of it, but I have an other question, is there a way to name this columns created so when I extract them in Origin I know which column is which, since the number of them now has reached to 40.
Thanks,
Helaka
10-10-2008 11:26 AM
I'm not sure what you mean by "Origin".
With the columns, how do you determine now what the names are? If you have a string array of names, you could take the string array and convert to a string using the same function. The format string would probably be %s. Do this a single time to write the column names to the same file prior to the for loop.
10-10-2008 01:49 PM
Hi Ravens Fan,
Well, Origin is a software which you can use to plot the data.
As for the suggestions, I tried them and I needed to do some slight changes in order for it to work.
Attached is the program.
Thank you
10-10-2008 02:15 PM
OK, you're still doing this very inefficiently and convoluted:
10-10-2008 02:30 PM - edited 10-10-2008 02:30 PM
OK, here's a slightly cleaned up version:
(Of course we assume that the arrays change with each iteration, else we would do their prep outside the loop, of course.)
10-11-2008 07:07 PM
Hi altenbach,
thank you for your suggestions.
Helaka