<div>이렇게 질문드려도 될지 모르겠는데 ㅠ</div> <div> </div> <div> case 2:</div> <div> int sch = 0;<br> while (sch<256)<br> {<br> fp = fopen(filename, "rt");<br> fscanf(fp, "%d", &nsample);<br> hoscd6->Reset();<br> hoscd7->Reset();<br> sch = sch + 1;</div> <div> for (i = 0; i < nsample; i++)<br> {<br> for (ch = 0; ch <= sch; ch++)<br> fscanf(fp, "%d", &adc); //특정 채널의 adc값을 선별해서 보는 기능.<br> for (j = 0; j < 256; j++)<br> {<br> px = adc;<br> py = j;<br> hoscd7->Fill(px,py*10);</div> <div> for (ch = sch+1; ch < 256; ch++)<br> fscanf(fp, "%d", &adc);<br> }<br> }<br> fclose(fp);</div> <div> TCanvas *c5 = new TCanvas("c5","Gaussian",600,600);</div> <div> hoscd7->Draw("COLZ");<br> gPad->Update();<br> TPaletteAxis *palette = (TPaletteAxis*)hoscd7->GetListOfFunctions()->FindObject("palette");<br> palette->SetY2NDC(0.7);</div> <div> c5->Modified();<br> c5->Update();</div> <div> break;<br> }<br></div> <div>여기서 nsample은 17408이에요.</div> <div>코드 결과값이 나오는데 거의 40분 넘게 걸리는데 혹시이거 어느부분이 잘못되서 그렇게 오래걸리는건가요?</div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.