| Ciao Gam, Ciao Matteo per attenermi alla richiesta io lo script con i soli RDL come li vuole Gam, lo posto qui, poi Gam Vedi tu se vuoi metterli nella sezione apposita. Purtroppo.... per la ricerca ruote singole, coppie , terne non ho ben compreso e per quello che ho compreso per ora non mi sovviene un modus operandi per il costrutto scriptico. Certo anche i soli Tri-ambi Consecutivi per fare interagire con tutte le ruote senza un Zona Venus o Venus simulate (ruote separate) diventa complicato in termini di tempi di elaborazioni e come dicevo sopra bisogna trovare il modo per rendere fluida una ricerca. Intanto metto il listato con gli RDL1-2 un saluto. Sub Main Dim MinRit(3),Mat(117480,13) Dim sRiga,sFilecsv Dim A(2) Dim B(2) Dim C(2) ' vx = CInt(InputBox("Quanti ne visualizzo","Max 117480",30)) minx = CInt(InputBox("Quale ordinamento" & Chr(13) & Chr(13) & "Ascendente = 1" & Chr(13) & "Discendente = -1",,1)) col = CInt(InputBox("Quale colonna ordino" & Chr(13) & Chr(13) & "Min_RitCorr = 7" & Chr(13) & "Max_RitCorr = 8" & Chr(13) & _ "SumRit = 9" & Chr(13) & "DiffRit = 10" & Chr(13) & "Min_RitStor = 11" & Chr(13) & "RdL1 By Gam = 12" & Chr(13) & "RdL2 By Gam = 13",,11)) If col = 7 Then Scrivi "Ordinamento per Min_Ritardo Corrente",1 If col = 8 Then Scrivi "Ordinamento per Max_Ritardo Corrente",1 If col = 9 Then Scrivi "Ordinamento per Somma Ritardi",1 If col = 10 Then Scrivi "Ordinamento per Diff Rit Min-Max",1 If col = 11 Then Scrivi "Ordinamento per Min_Ritardo Storico ",1 If minx = 1 Then Scrivi "Ordinamneto Ascendente",1 If minx = - 1 Then Scrivi "Ordinamento Discendente",1 '--------------------------------------------------------- ' prepara il file csv sFilecsv = GetDirectoryAppData & "temp\Analisi.csv" Call EliminaFile(sFilecsv) ' scrive i titoli delle colonne nel file csv sRiga = "Tri-Ambi ; RitA ; RitB ; RitC ; Min_Rit ; Max_Rit ; SommaRit ; Diff_Min-Max ; Min_Sto ; RdL1 ; RdL2 " Call ScriviFile(sFilecsv,sRiga,False) '----------------------------------------------------------- ReDim Ru(0) ScegliRuote(Ru) ResetTimer Scrivi Space(10) & "Ruote analizzate : " & StringaRuote(Ru),1,,,1 Scrivi Space(2) & "Combinazione" & Space(6) & "RitA / RitB / RitC" & Space(2) & "MinRit" & Space(1) & "MaxRit" & Space(1) & "SumRit" & _ Space(1) & "DiffRit" & Space(1) & "MinSto" & Space(1) & "RdL1 by Gam" & Space(1) & "RdL2 By Gam",1,,,,,,1 Ini = 8117 fin = EstrazioneFin For n1 = 1 To 88 n2 = n1 + 1 For n3 = n1 + 1 To 89 n4 = n3 + 1 For n5 = n3 + 1 To 90 n6 = n5 + 1 A(1) = n1 : A(2) = n2 B(1) = n3 : B(2) = n4 C(1) = Fuori90(n5) : C(2) = Fuori90(n6) k = k + 1 srA = SerieRitardoTurbo(Ini,fin,A,Ru,2) srB = SerieRitardoTurbo(Ini,fin,B,Ru,2) srC = SerieRitardoTurbo(Ini,fin,C,Ru,2) '----------------------------------------------------- MinRit(1) = srA : MinRit(2) = srB : MinRit(3) = srC OrdinaMatrice MinRit,1,1 SumRit = MinRit(1) + MinRit(2) + MinRit(3) '----------------------------------------------------- Call AddNumeriToGruppoStatistico(A,Ru) Call AddNumeriToGruppoStatistico(B,Ru) Call AddNumeriToGruppoStatistico(C,Ru) Call StatisticaGruppoFormazioniTurbo(2,ritt,sto,fre,sgruppo,Ini,fin) '----------------------------------------------------------------------------- min = MinimoV(MinRit,1,- 1) max = MassimoV(MinRit) DiffRit = Differenza(min,max) If min = max Then DiffRit = 0 Call Messaggio("Terni... " & k) Call AvanzamentoElab(100,117480,k) '------------------------------------ Mat(k,1) = StringaNumeri(A,,1) Mat(k,2) = StringaNumeri(B,,1) Mat(k,3) = StringaNumeri(C,,1) Mat(k,4) = MinRit(1) Mat(k,5) = MinRit(2) Mat(k,6) = MinRit(3) Mat(k,7) = min Mat(k,8) = max Mat(k,9) = SumRit Mat(k,10) = DiffRit Mat(k,11) = sto Mat(k,12) = MinRit(2) - MinRit(1) Mat(k,13) = MinRit(3) - MinRit(2) RdL1 = MinRit(2) - MinRit(1) RdL2 = MinRit(3) - MinRit(2)
'---------------------------------------------------------------- sRiga = StringaNumeri(A,,1) & " , " & StringaNumeri(B,,1) & " , " & StringaNumeri(C,,1) & ";" sRiga = sRiga & MinRit(1) & ";" sRiga = sRiga & MinRit(2) & ";" sRiga = sRiga & MinRit(3) & ";" sRiga = sRiga & Min & ";" sRiga = sRiga & Max & ";" sRiga = sRiga & SumRit & ";" sRiga = sRiga & DiffRit & ";" sRiga = sRiga & sto & ";" sRiga = sRiga & RdL1 & ";" sRiga = sRiga & RdL2 & ";"
' Call ScriviFile(sFilecsv,sRiga,False) '--------------------------------------------------------------- Next Next If ScriptInterrotto Then Exit For Next '---------------------------------------------------- Call CloseFileHandle(sFilecsv) Call LanciaFile(sFilecsv) Call OrdinaMatrice(Mat,minx,col) For x = 1 To 117480 Scrivi Mat(x,1) & ";" & Mat(x,2) & ";" & Mat(x,3) & " | " & FormatSpace(Mat(x,4),4) & " / " & FormatSpace(Mat(x,5),4) & " / " & _ FormatSpace(Mat(x,6),4) & " | " & FormatSpace(Mat(x,7),4) & " |" & FormatSpace(Mat(x,8),4) & " | " & FormatSpace(Mat(x,9),4) & _ " | " & FormatSpace(Mat(x,10),4) & " | " & FormatSpace(Mat(x,11),6) & " | " & FormatSpace(Mat(x,12),8) & " | " & FormatSpace(Mat(x,13),4)
Next Scrivi k,1 Scrivi "Tempo di elaborazione : " & TempoTrascorso,1 End Sub
|