Specifically, all JMP files of a path are divided into decision trees, and the operation time of each file decision tree is different.Let's say the time is between 30 and 60 minutes.
Therefore, JSL should be designed to click the "Go" button for 30 minutes and test the CPU utilization rate every 5 minutes.
If the CPU utilization rate is less than 5%, operation d0<<Run Script("B") should be carried out;
otherwise, the loop should continue for 5 minutes and then test the CPU utilization rate until the decision tree segmentation is completed.
d0 = Current Data Table();
dir = "c:\1\";
Fs = Files In Directory( dir );
For( d = 1, d <= N Items( fs ), d++,
dt = Open( dir || fs[d] );
p = dt << Partition(
Y( :Y ),
X( :X1, :X2 ),
Validation Portion( 0.25 ),
Informative Missing( 1 )
);
(Report( p ) << xpath( "//ButtonBox[@title = 'Go']" )) << click;
For( j = 1, j <= 6, j++,
cpu = ……;
If( cpu < 0.05,
d0 << Run Script( "B" ),
Wait( 300 )//Does this wait affect the decision tree?
);
);
);