%@ 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 ' Channel(npoints)=CInt(RS1("CH")) Noise(npoints)=CDbl(RS1("PED")) 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="noical" & 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.SeriesTitle = "Channel Noise" Chart.LineWidth = 1 Chart.Stairs = True Chart.SeriesInLegend = true For ipoints=0 To npoints Chart.AddXY Channel(ipoints),Noise(ipoints),"",Color(1) Next rem ********************************************************************** rem * Add and format the title rem ********************************************************************** rem Chart.ChartTitleAdd ("Noise, Hybrid " & CStr(RSx("HYBRID_ID"))) Chart.ChartTitleFont.Size = 16 Chart.ChartTitleFont.Name = "Arial" Chart.ChartTitleFont.Italic = true Chart.ChartTitleFont.Bold = true Chart.View3D = false Chart.LegendVisible = false Chart.LegendStyle = cSeries Chart.AxisGridLines = true Chart.Frame = false ' gsfs added xtic, ytic option If IsEmpty(xtic) Then Chart.BottomAxisIncrement = onechip Else Chart.BottomAxisIncrement = xtic End If If IsEmpty(ytic) Then Chart.LeftAxisIncrement = 0.1 Else Chart.LeftAxisIncrement = ytic End If rem ********************************************************************** rem * Remove the OuterBevel, add a gradient fill to chart panel rem ********************************************************************** Chart.BevelOuter = 0 rem Chart.GradientVisible = true rem Chart.GradientStartColor = vbWhite rem Chart.GradientEndColor = vbYellow Chart.PanelColor = Color(6) rem ********************************************************************** rem * Set the Width and Height of the image rem ********************************************************************** Chart.Height = 400 Chart.Width = 600 ' If nrows<1 Then ' Single String ' Chart.HorizAxisMax =(wurst_id+1)*nstring+1 ' Chart.HorizAxisMin = wurst_id*nstring ' Else Chart.HorizAxisMax = kstring*nstring+1+8 Chart.HorizAxisMin = -8 ' End If ' gsfs addition of axes limits If IsEmpty(xmin) Then Chart.HorizAxisMin = -8 Else Chart.HorizAxisMin = xmin End If If IsEmpty(xmax) Then Chart.HorizAxisMax = kstring*nstring+1+8 Else Chart.HorizAxisMax = xmax End If If Not IsEmpty(ymin) Then Chart.VertAxisMin = ymin Else Chart.VertAxisMin = 0. End If If Not IsEmpty(ymax) Then Chart.VertAxisMax = ymax Else Chart.VertAxisMax = 4. End If ' End of gsfs addition Chart.AddAxisLabel 1 , "Noise [mV]" Chart.AddAxisLabel 2 , CStr(nstring) & "*String+Channel" rem ********************************************************************** rem * Set the filename, save the image and write the image tag rem ********************************************************************** Chart.FileName = filename_full Chart.SaveChart line=" | ![]() |
Both ROWID's are empty ! <%End If%> |