キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Writing data to spreadsheet continuously

Hello,
I am having trouble writing data to a spreadsheet.

I have 10 variables (a1, a2,... a10) in a FOR loop, which I want to record in a file. The for loop count is 1000. Can anyone help me with this? Also, is there a way to place the variable names at the beginning of the file to differentiate the columns?

Thanks in advance.
0 件の賞賛
メッセージ1/9
3,848件の閲覧回数
Hello,

Try this:

Hope it helps,
Paulo
0 件の賞賛
メッセージ2/9
3,840件の閲覧回数
0 件の賞賛
メッセージ3/9
3,839件の閲覧回数
Hi Paulo,
Can you save it in ver 7.0 and resend it? Thanks

Jeguna
0 件の賞賛
メッセージ4/9
3,832件の閲覧回数
Here it is.
By the way, I just saved the values in the file after the loop ends, I don't know is that's what you want, but you can still bring it to inside the loop and wire the data to the 1D array input instead of the 2D input.

Hope it helps.
0 件の賞賛
メッセージ5/9
3,829件の閲覧回数
Hi Paulo,
Thanks very much... it's very close to what I wanted. In my case there is one more FOR loop over this loop. In that case I can't enable the indexing for the external loop.

Any help is appreciated.
0 件の賞賛
メッセージ6/9
3,819件の閲覧回数
Hi,

Now I'm not following you... you can put another for loop around the for loop in my program (the write to spreadsheet file function must be out of the first loop and in the second)and it will work, because the write to spreadsheet is appending the data and not overwriting, so it will write a block of data after another.
0 件の賞賛
メッセージ7/9
3,808件の閲覧回数
Thanks Paulo... it works just fine.

Jeguna
0 件の賞賛
メッセージ8/9
3,805件の閲覧回数
Glad it helped!
Paulo
0 件の賞賛
メッセージ9/9
3,797件の閲覧回数