hy broby on lathes, this syntaxes are equivalent : V1 = 123, VC[1] = 123 , VC [0001] = 123, so try VC [ VC [ 1 ] ]
that's a dynamic array if overall, highest position is :number of positions is calculated at run time and not known before
... <max admisible number of common variables(usually 200), then, at the end, store array length in V200; even if you need it, is possible to avoid storing the array length, by simply initializing all variables with a value that is not relevent for the process ( for example 0, or -123, etc ), and, after all data has been recorded, you may find the array length by scrolling through variables until 0/-123/whatever value appears
... >max admisible number of common variables, then replace common variables with files, thus store data using fwrit *.*;C, then, at the end, store array length in a separate file, or inside a common variable; even if you need it, is possible to avoid storing the array length, by using timestamps, like, for example, a series is interrupted by a differencies in timestamps that is almost equal to setup time ( for example, if data is being recorder at intervals of 1 seconds, then you may consider that serie is interrupted when interval is > 10 seconds eq )
you may use :series of X and Z coordinates
... odd and even common variables
...... and/or
... separate files
...... and/or
... a single file, with each line containing:
...... a pair of XZ, separated by tab
......... and/or
... more than a pair of XZ, separated by tabs, in order to speed up processing speed ( also, if there is a lot of such operations, noex should help )
like i usually say : if you wish, describe a little better what you wish to achieve, and i may give you code for both recording data, and processing data part
by the way, there is a nice okuma forum somewhere arround here