-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommntsAutoTimeFill
More file actions
21 lines (15 loc) · 831 Bytes
/
CommntsAutoTimeFill
File metadata and controls
21 lines (15 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// What does this script do? As I have CVs made every half an hour,
// this automatically labels the y-column comment to number of CV*2/4
// gives also the cycle number by the modulus
double CVs = wks.nCols/2;//gets number of CVs by the number of columns dived by two
loop (CV, 1, CVs) //CVs is the number of CVs done (Number of XY columns)//We remain in the active sheet, damit der WKS.COL Befehl funktioniert
{
col($(CV*2-1))[C]$ = $(rmod((CV-1), 3)); // Y columns label
};
double Cy = wks.nCols/6;
loop (CV, 1, Cy) //CVs is the number of CVs done (Number of XY columns)//We remain in the active sheet, damit der WKS.COL Befehl funktioniert
{
col($(CV*2*3))[C]$ = $(((CV-1)*2)/4); // Y columns label
col($(CV*2*3-2))[C]$ = $(((CV-1)*2)/4); // Y columns label
col($(CV*2*3-4))[C]$ = $(((CV-1)*2)/4); // Y columns label
};