This can be done by using the commands loop..., loopf... and repete... The instruction
- interpcom -> loop com1 com2 n1 n2 n3 par1 par2 ...
will create a command file called com1 (in the command directory). This file will contains n1 successive calls to com2 with the parameters
n2 par1 par2... n2+n3 par1 par2... . . n2 + (n1-1)*n3 par1 par2...
Here n1, n2, n3 are numerical expressions that will be evaluated as integers. There is a similar command loopf... which is the same except that n1, n2, n3 will be evaluated as floating point numbers.
Example : The instruction
- interpcom -> loop com1 com2 4 100 10 A
will produce the command file com1 wich contains :
<com2 100 A <com2 110 A <com2 120 A <com2 130 A
and
- interpcom -> loopf com1 com2 4 100.5 0.1 A
will produce the command file com1 wich contains :
<com2 100.500000 A <com2 100.600000 A <com2 100.700000 A <com2 100.800000 A
The instruction
- interpcom -> repete com1 com2 xx1 xx2
will create a command file called com1 (in the command directory). This file will contain successive calls to the command file com2, the first with the argument xx1, the second with the argument xx2, and so on.
Example : The instruction
- interpcom -> repete com1 com2 44.00 22 125 36
will produce the command file com1 wich contains :
<com2 44.00 <com2 22 <com2 125 <com2 36
It is possible also to create command files with commands containing #1 (or #2, etc.). This can be done by replacing the # in the command line by {.
Example : The instruction
- interpcom -> loop com1 com2 4 100 10 {1
will produce the command file com1 wich contains :
<com2 100 #1 <com2 110 #1 <com2 120 #1 <com2 130 #1