<%
Dim Chart
' gsfs added lines to read xmin, xmax, ymin, ymax 8/3/00
If Not IsEmpty(Request("xmin")) Then
xmin = CDbl(Request("xmin"))
End If
If Not IsEmpty(Request("xmax")) Then
xmax = CDbl(Request("xmax"))
End If
If Not IsEmpty(Request("ymin")) Then
ymin = CDbl(Request("ymin"))
End If
If Not IsEmpty(Request("ymax")) Then
ymax = CDbl(Request("ymax"))
End If
If Not IsEmpty(Request("xtic")) Then
xtic = CDbl(Request("xtic"))
End If
If Not IsEmpty(Request("ytic")) Then
ytic = CDbl(Request("ytic"))
End If
' End of gsfs addition
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 = " test "
Chart.LineWidth = 1
Chart.Stairs = true
dev_count=0
If nseen>0 Then
cmax=-10000
do while not Scv.Eof
dcol=CDbl(Scv("col"))
dcap=CDbl(Scv("Capacitance"))
Chart.AddXY dcol, dcap, "",Color(1)
If cmax1) or (CDbl(Scv("dev"))<-1) Then
dev_count=dev_count+1
End If
Scv.MoveNext
loop
Else
cmax=0
End If
If (ntot<>nseen) or (dev_count>0) Then
Response.write("
")
If ntot<>nseen Then
line= "
The number of selected pads (" & Cstr(nseen) & ") is smaller than the number of sensor pads (" & Cstr(ntot) & ").
"
Response.write(line)
End If
If dev_count>0 Then
If dev_count>1 Then
verb="are "
prednoun=" channels"
Else
verb="is "
prednoun=" channel"
End If
line= "
There " & verb & CStr(dev_count) & prednoun & " with an applied voltage atleast 1 Volt away from the top voltage of " & CStr(maxba) & " Volts.
"
Response.write(line)
End If
Response.write("
")
End If
rem **********************************************************************
rem * Add and format the title
rem **********************************************************************
Chart.ChartTitleAdd ("Vb=" & Cstr(precision(avgba,1)) & " [V]")
Chart.ChartTitleFont.Size = 18
Chart.ChartTitleFont.Name = "Times New Roman"
Chart.ChartTitleFont.Italic = true
Chart.ChartTitleFont.Bold = true
Chart.View3D = false
Chart.LegendVisible = false
Chart.LegendStyle = cSeries
Chart.AxisGridLines = true
Chart.Frame = false
Chart.BottomAxisIncrement = nchip
' gsfs added xtic, ytic option
If IsEmpty(xtic) Then
Chart.BottomAxisIncrement = nchip
Else
Chart.BottomAxisIncrement = xtic
End If
If Not IsEmpty(ytic) Then
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 = 300
Chart.Width = 600
Chart.HorizAxisMax = nchip*maxbp
Chart.HorizAxisMin = 0.
Select Case itype
Case 1,2,3,4,5,6,9
Chart.VertAxisMax = 1.1*cmax
Case 7,8
Chart.VertAxisMax = 50.
Case Else
Chart.VertAxisMax = 1.1*cmax
End Select
Chart.VertAxisMin = 0.
' Following lines added by gsfs 6/5/00
If IsEmpty(xmin) Then
Chart.HorizAxisMin = 0
Else
Chart.HorizAxisMin = xmin
End If
If IsEmpty(xmax) Then
Chart.HorizAxisMax = nchip*maxbp
Else
Chart.HorizAxisMax = xmax
End If
If IsEmpty(ymin) Then
Chart.VertAxisMin=0
Else
Chart.VertAxisMin = ymin
End If
If IsEmpty(ymax) Then
Select Case itype
Case 1,2,3,4,5,6,9
Chart.VertAxisMax = 1.1*cmax
Case 7,8
Chart.VertAxisMax = 50.
Case Else
Chart.VertAxisMax = 1.1*cmax
End Select
Else
Chart.VertAxisMax = ymax
End If
' End of gsfs addition
Chart.AddAxisLabel 1 , "Capacitance [pF]"
Chart.AddAxisLabel 2 , Cstr(nchip) & "*bonding_pattern+pad"
rem **********************************************************************
rem * Set the filename, save the image and write the image tag
rem **********************************************************************
Chart.FileName = filename_full
Chart.SaveChart
line="
"
Response.Write (line)
rem **********************************************************************
rem * Destroy the object
rem **********************************************************************
Set Chart = nothing
' Database is not needed anymore !
Connection.Close
%>
Detailed printout of all the capacitance data can be found ">here