%@ LANGUAGE="VBScript" %> <% start_time = Time %>
<%
'
' Do heavy duty database extraction here
'
'response.write(SQLStmt1)
'
Set RS1 = Connection.Execute(SQLStmt1)
npoints=0
Do While Not RS1.EoF
'
ReDim Preserve Snr(npoints)
ReDim Preserve Num_at_snr(npoints)
Snr(npoints)=CDbl(RS1("SNR_VALUE"))
Num_at_snr(npoints)=CDbl(RS1("NUMBER_AT_SNR"))
npoints=npoints+1
RS1.MoveNext
Loop
npoints=npoints-1
If npoints>0 Then
%> <% start_time = Time %> <%
'
' Prepare plot
'
seed=-(second(now())+60*minute(now())+3600*hour(now())+3600*24*day(now()))
filename="srcsnr" & cstr(int(100000.*rnd(seed))) & ".jpg"
filename_full=ph_image_directory & filename
%> <%
Dim Chart
Dim Color(8)
Color(0) = vbRed
Color(1) = vbBlue
Color(2) = vbYellow
Color(3) = vbGreen
Color(4)= vbMagenta
Color(5)= vbCyan
Color(6)= vbWhite
Color(7)= vbBlack
rem **********************************************************************
rem * Instantiate the Chart component
rem **********************************************************************
Set Chart = Server.CreateObject ("ASPChart.Chart")
rem **********************************************************************
rem * Create x Array
rem **********************************************************************
Chart.AddSeries 5
'Chart.BarStyle = 0
Chart.SeriesTitle = "Signal To Noise Distribution"
Chart.LineWidth = 1
Chart.Stairs = True
Chart.SeriesInLegend = true
min_x=-1
max_x=-1
max_y=-1
For ipoints=0 To npoints
Chart.AddValue Num_at_snr(ipoints),"",Color(1)
' Chart.AddXY Snr(ipoints),Num_at_snr(ipoints),"",Color(1)
' response.write(" ( " & CStr(Snr(ipoints)) & " - " & Cstr(Num_at_snr(ipoints)) & " ) ")
If min_x>Snr(ipoints) or min_x=-1 Then
min_x=Snr(ipoints)
End If
If max_x |
![]() |
Both ROWID's are empty ! <%End If%> |