VERSION 5.00 Begin VB.Form Form1 AutoRedraw = -1 'True BackColor = &H00C0FFFF& Caption = "Radiolabeling kinetics simulation - simple hypothetical model" ClientHeight = 6060 ClientLeft = 570 ClientTop = 855 ClientWidth = 9045 FillColor = &H00C0FFFF& FillStyle = 0 'Solid LinkTopic = "Form1" ScaleHeight = 6060 ScaleWidth = 9045 Begin VB.PictureBox Picture3 BackColor = &H80000009& Height = 1455 Left = 7320 ScaleHeight = 1395 ScaleWidth = 675 TabIndex = 65 Top = 3720 Width = 735 Begin VB.Label Label44 BackStyle = 0 'Transparent Caption = "D" Height = 255 Left = 480 TabIndex = 71 Top = 1080 Width = 255 End Begin VB.Label Label43 BackStyle = 0 'Transparent Caption = "C" Height = 255 Left = 480 TabIndex = 70 Top = 840 Width = 255 End Begin VB.Label Label42 BackStyle = 0 'Transparent Caption = "B" Height = 255 Left = 480 TabIndex = 69 Top = 600 Width = 255 End Begin VB.Label Label5 BackStyle = 0 'Transparent Caption = "A" Height = 255 Left = 480 TabIndex = 68 Top = 360 Width = 255 End Begin VB.Label Label4 BackStyle = 0 'Transparent Caption = "E" Height = 255 Left = 480 TabIndex = 67 Top = 120 Width = 255 End End Begin VB.TextBox Text18 Height = 285 Left = 3120 TabIndex = 55 Text = "500" Top = 5520 Width = 495 End Begin VB.TextBox Text17 Height = 285 Left = 4200 TabIndex = 54 Text = "50" Top = 3360 Width = 495 End Begin VB.TextBox Text16 Height = 285 Left = 600 TabIndex = 53 Text = "5000" Top = 3360 Width = 615 End Begin VB.TextBox Text15 Height = 288 Left = 2920 TabIndex = 47 Text = "0.02" Top = 1150 Width = 615 End Begin VB.Frame Frame5 Caption = "Pool E" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 1560 TabIndex = 42 Top = 120 Width = 972 Begin VB.TextBox Text14 Height = 288 Left = 360 TabIndex = 46 Text = "4" Top = 600 Width = 492 End Begin VB.TextBox Text13 Height = 288 Left = 360 TabIndex = 43 Text = "1000" Top = 240 Width = 492 End Begin VB.Label Label29 Caption = "E2" Height = 252 Left = 120 TabIndex = 45 Top = 600 Width = 252 End Begin VB.Label Label28 Caption = "E1" Height = 252 Left = 120 TabIndex = 44 Top = 240 Width = 252 End End Begin VB.TextBox Text12 Height = 288 Left = 840 TabIndex = 40 Text = "0.05" Top = 1920 Width = 492 End Begin VB.CommandButton Command2 Caption = "End" Height = 372 Left = 5400 TabIndex = 33 Top = 840 Width = 612 End Begin VB.PictureBox Picture2 BackColor = &H80000009& BorderStyle = 0 'None Height = 2010 Left = 4800 Picture = "Modeld.frx":0000 ScaleHeight = 2010 ScaleWidth = 2010 TabIndex = 27 Top = 3480 Width = 2010 End Begin VB.TextBox Text10 Height = 288 Left = 6240 TabIndex = 25 Text = "0.05" Top = 1920 Width = 492 End Begin VB.TextBox Text9 Height = 288 Left = 4440 TabIndex = 23 Text = "0.05" Top = 1920 Width = 492 End Begin VB.TextBox Text8 Height = 288 Left = 2640 TabIndex = 22 Text = "0.05" Top = 1920 Width = 492 End Begin VB.Frame Frame4 Caption = "Pool D" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 6960 TabIndex = 19 Top = 1800 Width = 972 Begin VB.TextBox Text7 Height = 288 Left = 360 TabIndex = 21 Text = "20" Top = 600 Width = 492 End Begin VB.TextBox Text6 Height = 288 Left = 360 TabIndex = 20 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label25 Caption = "D2" Height = 252 Left = 120 TabIndex = 39 Top = 600 Width = 252 End Begin VB.Label Label24 Caption = "D1" Height = 252 Left = 120 TabIndex = 38 Top = 240 Width = 252 End End Begin VB.Frame Frame3 Caption = "Pool C" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 5160 TabIndex = 14 Top = 1800 Width = 972 Begin VB.TextBox Text5 Height = 288 Left = 360 TabIndex = 18 Text = "12" Top = 600 Width = 492 End Begin VB.TextBox Text4 Height = 288 Left = 360 TabIndex = 17 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label19 Caption = "C2" Height = 252 Left = 120 TabIndex = 16 Top = 600 Width = 252 End Begin VB.Label Label18 Caption = "C1" Height = 252 Left = 120 TabIndex = 15 Top = 240 Width = 252 End End Begin VB.Frame Frame2 Caption = "Pool B" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 3360 TabIndex = 9 Top = 1800 Width = 972 Begin VB.TextBox Text3 Height = 288 Left = 360 TabIndex = 11 Text = "9" Top = 600 Width = 492 End Begin VB.TextBox Text2 Height = 288 Left = 360 TabIndex = 10 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label17 Caption = "B2" Height = 252 Left = 120 TabIndex = 13 Top = 600 Width = 252 End Begin VB.Label Label16 Caption = "B1" Height = 252 Left = 120 TabIndex = 12 Top = 240 Width = 252 End End Begin VB.Frame Frame1 Caption = "Pool A" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 1560 TabIndex = 6 Top = 1800 Width = 972 Begin VB.TextBox Text11 Height = 288 Left = 360 TabIndex = 36 Text = "6" Top = 600 Width = 492 End Begin VB.TextBox Text1 Height = 288 Left = 360 TabIndex = 7 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label14 Caption = "A2" Height = 252 Left = 120 TabIndex = 37 Top = 600 Width = 252 End Begin VB.Label Label15 Caption = "A1" Height = 252 Left = 120 TabIndex = 8 Top = 240 Width = 252 End End Begin VB.PictureBox Picture1 BackColor = &H80000009& BorderStyle = 0 'None Height = 2010 Left = 1320 Picture = "Modeld.frx":D3BA ScaleHeight = 2010 ScaleWidth = 2010 TabIndex = 5 Top = 3480 Width = 2010 End Begin VB.CommandButton Command1 Caption = "Start" Height = 372 Left = 5400 TabIndex = 0 Top = 240 Width = 612 End Begin VB.Label Label12 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nCi. nmol(-1)" Height = 495 Index = 5 Left = 0 TabIndex = 73 Top = 2400 Width = 735 WordWrap = -1 'True End Begin VB.Label Label45 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "min(-1)" Height = 255 Left = 3600 TabIndex = 72 Top = 1200 Width = 615 End Begin VB.Label Label41 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Key:" Height = 255 Left = 7440 TabIndex = 66 Top = 3360 Width = 495 End Begin VB.Label Label40 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol.gfw(-1)" Height = 255 Left = 2640 TabIndex = 64 Top = 720 Width = 855 End Begin VB.Label Label39 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nCi.nmol(-1)" Height = 255 Left = 2640 TabIndex = 63 Top = 360 Width = 855 End Begin VB.Label Label38 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nCi.nmol(-1)" Height = 255 Left = 8040 TabIndex = 62 Top = 2040 Width = 855 End Begin VB.Label Label37 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol.gfw(-1)" Height = 255 Left = 8040 TabIndex = 61 Top = 2400 Width = 855 End Begin VB.Label Label36 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. min(-1). gfw(-1)" Height = 615 Left = 6240 TabIndex = 60 Top = 2280 Width = 615 End Begin VB.Label Label35 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. min(-1). gfw(-1)" Height = 615 Left = 4440 TabIndex = 59 Top = 2280 Width = 615 End Begin VB.Label Label34 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. min(-1). gfw(-1)" Height = 615 Left = 2640 TabIndex = 58 Top = 2280 Width = 615 End Begin VB.Label Label27 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. min(-1). gfw(-1)" Height = 615 Left = 840 TabIndex = 57 Top = 2280 Width = 615 End Begin VB.Label Label11 BackStyle = 0 'Transparent Caption = "F1 = 0" Height = 255 Left = 120 TabIndex = 56 Top = 2160 Width = 495 End Begin VB.Label Label20 BackStyle = 0 'Transparent Caption = "B3" Height = 255 Left = 2760 TabIndex = 52 Top = 1680 Width = 255 End Begin VB.Label Label33 BackStyle = 0 'Transparent Caption = "In" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 51 Top = 1680 Width = 255 End Begin VB.Label Label32 BackStyle = 0 'Transparent Caption = "Out" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 50 Top = 1200 Width = 375 End Begin VB.Label Label31 BackStyle = 0 'Transparent Caption = "A4 = E2.k" Height = 255 Left = 1200 TabIndex = 49 Top = 1200 Width = 735 End Begin VB.Label Label30 BackStyle = 0 'Transparent Caption = "where k =" Height = 255 Left = 2160 TabIndex = 48 Top = 1200 Width = 735 End Begin VB.Line Line16 BorderWidth = 2 X1 = 1920 X2 = 2040 Y1 = 1680 Y2 = 1800 End Begin VB.Line Line15 BorderWidth = 2 X1 = 2160 X2 = 2040 Y1 = 1680 Y2 = 1800 End Begin VB.Line Line14 BorderWidth = 2 X1 = 2040 X2 = 2040 Y1 = 1080 Y2 = 1800 End Begin VB.Line Line13 X1 = 120 X2 = 8760 Y1 = 1560 Y2 = 1560 End Begin VB.Label Label26 BackStyle = 0 'Transparent Caption = "A3" Height = 255 Left = 960 TabIndex = 41 Top = 1680 Width = 255 End Begin VB.Line Line12 BorderWidth = 2 X1 = 1440 X2 = 1560 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line11 BorderWidth = 2 X1 = 1440 X2 = 1560 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line10 BorderWidth = 2 X1 = 720 X2 = 1560 Y1 = 2280 Y2 = 2280 End Begin VB.Label Label23 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Pool Sizes" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 5160 TabIndex = 35 Top = 3120 Width = 1335 End Begin VB.Label Label13 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Radioactivity" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1320 TabIndex = 34 Top = 3120 Width = 2055 End Begin VB.Label Label12 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. gfw(-1)" Height = 495 Index = 0 Left = 4080 TabIndex = 32 Top = 4200 Width = 615 WordWrap = -1 'True End Begin VB.Label Label10 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 4680 TabIndex = 31 Top = 5400 Width = 135 End Begin VB.Label Label9 BackStyle = 0 'Transparent Caption = "Time (min)" Height = 255 Left = 5520 TabIndex = 30 Top = 5640 Width = 855 End Begin VB.Label Label8 BackStyle = 0 'Transparent Caption = "500" Height = 255 Left = 6690 TabIndex = 29 Top = 5520 Width = 375 End Begin VB.Label Label1 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 4800 TabIndex = 28 Top = 5520 Width = 135 End Begin VB.Label Label22 BackStyle = 0 'Transparent Caption = "D3" Height = 255 Left = 6360 TabIndex = 26 Top = 1680 Width = 255 End Begin VB.Label Label21 BackStyle = 0 'Transparent Caption = "C3" Height = 255 Left = 4560 TabIndex = 24 Top = 1680 Width = 255 End Begin VB.Line Line9 BorderWidth = 2 X1 = 6840 X2 = 6960 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line7 BorderWidth = 2 X1 = 6840 X2 = 6960 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line8 BorderWidth = 2 X1 = 6120 X2 = 6960 Y1 = 2280 Y2 = 2280 End Begin VB.Line Line6 BorderWidth = 2 X1 = 5040 X2 = 5160 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line5 BorderWidth = 2 X1 = 5040 X2 = 5160 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line4 BorderWidth = 2 X1 = 4320 X2 = 5160 Y1 = 2280 Y2 = 2280 End Begin VB.Line Line3 BorderWidth = 2 X1 = 3240 X2 = 3360 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line2 BorderWidth = 2 X1 = 3240 X2 = 3360 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line1 BorderWidth = 2 X1 = 3360 X2 = 2520 Y1 = 2280 Y2 = 2280 End Begin VB.Label Label7 Alignment = 2 'Center BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "nCi. gfw(-1)" Height = 495 Left = 600 TabIndex = 4 Top = 4200 Width = 615 End Begin VB.Label Label6 Alignment = 2 'Center BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "Time (min)" Height = 255 Left = 1800 TabIndex = 3 Top = 5640 Width = 975 End Begin VB.Label Label3 Alignment = 1 'Right Justify BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 1110 TabIndex = 2 Top = 5400 Width = 135 End Begin VB.Label Label2 BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 1320 TabIndex = 1 Top = 5520 Width = 135 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Picture1.Refresh Picture2.Refresh Mx = Text18.Text Label8.Caption = Text18.Text My1 = Text16.Text My2 = Text17.Text k = Text15.Text E1 = Text13.Text E2 = Text14.Text A1 = Text1.Text A2 = Text11.Text A3 = Text12.Text B1 = Text2.Text B2 = Text3.Text C1 = Text4.Text C2 = Text5.Text D1 = Text6.Text D2 = Text7.Text B3 = Text8.Text C3 = Text9.Text D3 = Text10.Text F1 = 0 z = Mx / 2000 For t = 0 To Mx Step z A4 = E2 * k E2 = E2 - z * A4 A1 = (A1 * A2 + E1 * z * A4) / (A2 + z * A4) A2 = A2 + z * A4 A1 = (A1 * A2 + F1 * z * A3) / (A2 + z * A3) A2 = A2 + z * A3 A1 = (A1 * A2 - A1 * z * B3) / (A2 - z * B3) A2 = A2 - z * B3 B1 = (B1 * B2 + A1 * z * B3) / (B2 + z * B3) B2 = B2 + z * B3 B1 = (B1 * B2 - B1 * z * C3) / (B2 - z * C3) B2 = B2 - z * C3 C1 = (C1 * C2 + B1 * z * C3) / (C2 + z * C3) C2 = C2 + z * C3 C1 = (C1 * C2 - C1 * z * D3) / (C2 - z * D3) C2 = C2 - z * D3 D1 = (D1 * D2 + C1 * z * D3) / (D2 + z * D3) D2 = D2 + z * D3 X = t Y = E1 * E2 X = (X * 2000 / Mx) Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(0) Y = A1 * A2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(9) Y = B1 * B2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), RGB(0, 200, 0) Y = C1 * C2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(12) Y = D1 * D2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(13) Y = E2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(0) Y = A2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(9) Y = B2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), RGB(0, 200, 0) Y = C2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(12) Y = D2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(13) Next t Y = 240 For X = 50 To 350 Step 1 Picture3.PSet (X, Y), QBColor(0) Next X Y = 460 For X = 50 To 350 Step 1 Picture3.PSet (X, Y), QBColor(9) Next X Y = 700 For X = 50 To 350 Step 1 Picture3.PSet (X, Y), RGB(0, 200, 0) Next X Y = 950 For X = 50 To 350 Step 1 Picture3.PSet (X, Y), QBColor(12) Next X Y = 1180 For X = 50 To 350 Step 1 Picture3.PSet (X, Y), QBColor(13) Next X End Sub Private Sub Command2_Click() Unload Form1 End Sub