I was able to throw it in a for-loop. It's definitely not the fastest way, but I only need this routine during the initialization of the model.
Once again thanks for your input!

Grant



Code:
function run()
{
char buffer[2500];
int DS = 1500, i, i2, i3, IH = 60;	
	
if(is(FIRSTRUN))
  for(i=0; i < 10; i++)
    {
    i3 = sprintf(buffer, "n%i", DS);
    for (i2=0; i2 < 144; i2++)
      {
      i3 += sprintf(buffer + i3, "%s", ",");
      i3 += sprintf(buffer + i3, "%i", DS + IH - (10 * i2));
      }
    file_append(name, buffer);
    DS = DS - 1;
    }
}


Last edited by Grant; 08/21/17 14:21.