Option Strict Off
Option Explicit On
Imports System.Text
Friend Class Form1
	Inherits System.Windows.Forms.Form
#Region "Windows tH[ fUCiɂĐꂽR[h"
	Public Sub New()
		MyBase.New()
		'̌ĂяóAWindows tH[ fUCiŕKvłB
		InitializeComponent()
	End Sub
	'Form ́AR|[lgꗗɌ㏈s邽߂ dispose I[o[Ch܂B
	Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
		If Disposing Then
			If Not components Is Nothing Then
				components.Dispose()
			End If
		End If
		MyBase.Dispose(Disposing)
	End Sub
	'Windows tH[ fUCiŕKvłB
	Private components As System.ComponentModel.IContainer
	Public WithEvents TextInfo2 As System.Windows.Forms.TextBox
	Public WithEvents TextDevice2 As System.Windows.Forms.TextBox
	Public WithEvents ComboRange2 As System.Windows.Forms.ComboBox
	Public WithEvents ListData2 As System.Windows.Forms.ListBox
	Public WithEvents TextDevice1 As System.Windows.Forms.TextBox
	Public WithEvents CommandInit As System.Windows.Forms.Button
	Public WithEvents CommandStart As System.Windows.Forms.Button
	Public WithEvents CommandInfo As System.Windows.Forms.Button
	Public WithEvents CommandStop As System.Windows.Forms.Button
	Public WithEvents CommandExit As System.Windows.Forms.Button
	Public WithEvents ComboRange1 As System.Windows.Forms.ComboBox
	Public WithEvents ListData1 As System.Windows.Forms.ListBox
	Public WithEvents TextInfo1 As System.Windows.Forms.TextBox
	Public WithEvents Label2 As System.Windows.Forms.Label
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents Label9 As System.Windows.Forms.Label
	Public WithEvents LabelCount2 As System.Windows.Forms.Label
	Public WithEvents Label7 As System.Windows.Forms.Label
	Public WithEvents LabelStatus2 As System.Windows.Forms.Label
	Public WithEvents Label3 As System.Windows.Forms.Label
	Public WithEvents Label4 As System.Windows.Forms.Label
	Public WithEvents Label5 As System.Windows.Forms.Label
	Public WithEvents LabelCount1 As System.Windows.Forms.Label
	Public WithEvents Label6 As System.Windows.Forms.Label
	Public WithEvents LabelStatus1 As System.Windows.Forms.Label
	' : ȉ̃vV[W Windows tH[ fUCiŕKvłB
	'Windows tH[ fUCigĕύXł܂B
	'R[hGfB^gďCȂłB


	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
		Me.TextInfo2 = New System.Windows.Forms.TextBox()
		Me.TextDevice2 = New System.Windows.Forms.TextBox()
		Me.ComboRange2 = New System.Windows.Forms.ComboBox()
		Me.ListData2 = New System.Windows.Forms.ListBox()
		Me.TextDevice1 = New System.Windows.Forms.TextBox()
		Me.CommandInit = New System.Windows.Forms.Button()
		Me.CommandStart = New System.Windows.Forms.Button()
		Me.CommandInfo = New System.Windows.Forms.Button()
		Me.CommandStop = New System.Windows.Forms.Button()
		Me.CommandExit = New System.Windows.Forms.Button()
		Me.ComboRange1 = New System.Windows.Forms.ComboBox()
		Me.ListData1 = New System.Windows.Forms.ListBox()
		Me.TextInfo1 = New System.Windows.Forms.TextBox()
		Me.Frame2 = New System.Windows.Forms.GroupBox()
		Me.Label2 = New System.Windows.Forms.Label()
		Me.Frame1 = New System.Windows.Forms.GroupBox()
		Me.Label1 = New System.Windows.Forms.Label()
		Me.Label9 = New System.Windows.Forms.Label()
		Me.LabelCount2 = New System.Windows.Forms.Label()
		Me.Label7 = New System.Windows.Forms.Label()
		Me.LabelStatus2 = New System.Windows.Forms.Label()
		Me.Label3 = New System.Windows.Forms.Label()
		Me.Label4 = New System.Windows.Forms.Label()
		Me.Label5 = New System.Windows.Forms.Label()
		Me.LabelCount1 = New System.Windows.Forms.Label()
		Me.Label6 = New System.Windows.Forms.Label()
		Me.LabelStatus1 = New System.Windows.Forms.Label()
		Me.Frame2.SuspendLayout()
		Me.Frame1.SuspendLayout()
		Me.SuspendLayout()
		'
		'TextInfo2
		'
		Me.TextInfo2.AcceptsReturn = True
		Me.TextInfo2.AutoSize = False
		Me.TextInfo2.BackColor = System.Drawing.SystemColors.Window
		Me.TextInfo2.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.TextInfo2.ForeColor = System.Drawing.SystemColors.WindowText
		Me.TextInfo2.Location = New System.Drawing.Point(280, 288)
		Me.TextInfo2.MaxLength = 0
		Me.TextInfo2.Name = "TextInfo2"
		Me.TextInfo2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.TextInfo2.Size = New System.Drawing.Size(185, 33)
		Me.TextInfo2.TabIndex = 21
		Me.TextInfo2.Text = ""
		'
		'TextDevice2
		'
		Me.TextDevice2.AcceptsReturn = True
		Me.TextDevice2.AutoSize = False
		Me.TextDevice2.BackColor = System.Drawing.SystemColors.Window
		Me.TextDevice2.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.TextDevice2.ForeColor = System.Drawing.SystemColors.WindowText
		Me.TextDevice2.Location = New System.Drawing.Point(288, 24)
		Me.TextDevice2.MaxLength = 0
		Me.TextDevice2.Name = "TextDevice2"
		Me.TextDevice2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.TextDevice2.Size = New System.Drawing.Size(81, 18)
		Me.TextDevice2.TabIndex = 20
		Me.TextDevice2.Text = "DIG001"
		'
		'ComboRange2
		'
		Me.ComboRange2.BackColor = System.Drawing.SystemColors.Window
		Me.ComboRange2.Cursor = System.Windows.Forms.Cursors.Default
		Me.ComboRange2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
		Me.ComboRange2.ForeColor = System.Drawing.SystemColors.WindowText
		Me.ComboRange2.Location = New System.Drawing.Point(288, 64)
		Me.ComboRange2.Name = "ComboRange2"
		Me.ComboRange2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.ComboRange2.Size = New System.Drawing.Size(169, 20)
		Me.ComboRange2.TabIndex = 19
		'
		'ListData2
		'
		Me.ListData2.BackColor = System.Drawing.SystemColors.Window
		Me.ListData2.Cursor = System.Windows.Forms.Cursors.Default
		Me.ListData2.ForeColor = System.Drawing.SystemColors.WindowText
		Me.ListData2.ItemHeight = 12
		Me.ListData2.Location = New System.Drawing.Point(288, 96)
		Me.ListData2.Name = "ListData2"
		Me.ListData2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.ListData2.Size = New System.Drawing.Size(169, 124)
		Me.ListData2.TabIndex = 18
		'
		'TextDevice1
		'
		Me.TextDevice1.AcceptsReturn = True
		Me.TextDevice1.AutoSize = False
		Me.TextDevice1.BackColor = System.Drawing.SystemColors.Window
		Me.TextDevice1.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.TextDevice1.ForeColor = System.Drawing.SystemColors.WindowText
		Me.TextDevice1.Location = New System.Drawing.Point(104, 24)
		Me.TextDevice1.MaxLength = 0
		Me.TextDevice1.Name = "TextDevice1"
		Me.TextDevice1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.TextDevice1.Size = New System.Drawing.Size(81, 18)
		Me.TextDevice1.TabIndex = 10
		Me.TextDevice1.Text = "DIG000"
		'
		'CommandInit
		'
		Me.CommandInit.BackColor = System.Drawing.SystemColors.Control
		Me.CommandInit.Cursor = System.Windows.Forms.Cursors.Default
		Me.CommandInit.ForeColor = System.Drawing.SystemColors.ControlText
		Me.CommandInit.Location = New System.Drawing.Point(8, 48)
		Me.CommandInit.Name = "CommandInit"
		Me.CommandInit.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.CommandInit.Size = New System.Drawing.Size(81, 25)
		Me.CommandInit.TabIndex = 9
		Me.CommandInit.Text = ""
		'
		'CommandStart
		'
		Me.CommandStart.BackColor = System.Drawing.SystemColors.Control
		Me.CommandStart.Cursor = System.Windows.Forms.Cursors.Default
		Me.CommandStart.ForeColor = System.Drawing.SystemColors.ControlText
		Me.CommandStart.Location = New System.Drawing.Point(8, 80)
		Me.CommandStart.Name = "CommandStart"
		Me.CommandStart.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.CommandStart.Size = New System.Drawing.Size(81, 25)
		Me.CommandStart.TabIndex = 8
		Me.CommandStart.Text = "WJn"
		'
		'CommandInfo
		'
		Me.CommandInfo.BackColor = System.Drawing.SystemColors.Control
		Me.CommandInfo.Cursor = System.Windows.Forms.Cursors.Default
		Me.CommandInfo.ForeColor = System.Drawing.SystemColors.ControlText
		Me.CommandInfo.Location = New System.Drawing.Point(8, 112)
		Me.CommandInfo.Name = "CommandInfo"
		Me.CommandInfo.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.CommandInfo.Size = New System.Drawing.Size(81, 25)
		Me.CommandInfo.TabIndex = 7
		Me.CommandInfo.Text = "Ԏ擾"
		'
		'CommandStop
		'
		Me.CommandStop.BackColor = System.Drawing.SystemColors.Control
		Me.CommandStop.Cursor = System.Windows.Forms.Cursors.Default
		Me.CommandStop.ForeColor = System.Drawing.SystemColors.ControlText
		Me.CommandStop.Location = New System.Drawing.Point(8, 144)
		Me.CommandStop.Name = "CommandStop"
		Me.CommandStop.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.CommandStop.Size = New System.Drawing.Size(81, 25)
		Me.CommandStop.TabIndex = 6
		Me.CommandStop.Text = "W~"
		'
		'CommandExit
		'
		Me.CommandExit.BackColor = System.Drawing.SystemColors.Control
		Me.CommandExit.Cursor = System.Windows.Forms.Cursors.Default
		Me.CommandExit.ForeColor = System.Drawing.SystemColors.ControlText
		Me.CommandExit.Location = New System.Drawing.Point(8, 176)
		Me.CommandExit.Name = "CommandExit"
		Me.CommandExit.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.CommandExit.Size = New System.Drawing.Size(81, 25)
		Me.CommandExit.TabIndex = 5
		Me.CommandExit.Text = "I"
		'
		'ComboRange1
		'
		Me.ComboRange1.BackColor = System.Drawing.SystemColors.Window
		Me.ComboRange1.Cursor = System.Windows.Forms.Cursors.Default
		Me.ComboRange1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
		Me.ComboRange1.ForeColor = System.Drawing.SystemColors.WindowText
		Me.ComboRange1.Location = New System.Drawing.Point(104, 64)
		Me.ComboRange1.Name = "ComboRange1"
		Me.ComboRange1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.ComboRange1.Size = New System.Drawing.Size(161, 20)
		Me.ComboRange1.TabIndex = 4
		'
		'ListData1
		'
		Me.ListData1.BackColor = System.Drawing.SystemColors.Window
		Me.ListData1.Cursor = System.Windows.Forms.Cursors.Default
		Me.ListData1.ForeColor = System.Drawing.SystemColors.WindowText
		Me.ListData1.ItemHeight = 12
		Me.ListData1.Location = New System.Drawing.Point(104, 96)
		Me.ListData1.Name = "ListData1"
		Me.ListData1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.ListData1.Size = New System.Drawing.Size(161, 124)
		Me.ListData1.TabIndex = 3
		'
		'TextInfo1
		'
		Me.TextInfo1.AcceptsReturn = True
		Me.TextInfo1.AutoSize = False
		Me.TextInfo1.BackColor = System.Drawing.SystemColors.Window
		Me.TextInfo1.Cursor = System.Windows.Forms.Cursors.IBeam
		Me.TextInfo1.ForeColor = System.Drawing.SystemColors.WindowText
		Me.TextInfo1.Location = New System.Drawing.Point(96, 288)
		Me.TextInfo1.MaxLength = 0
		Me.TextInfo1.Name = "TextInfo1"
		Me.TextInfo1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.TextInfo1.Size = New System.Drawing.Size(185, 33)
		Me.TextInfo1.TabIndex = 2
		Me.TextInfo1.Text = ""
		'
		'Frame2
		'
		Me.Frame2.BackColor = System.Drawing.SystemColors.Control
		Me.Frame2.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label2})
		Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Frame2.Location = New System.Drawing.Point(280, 8)
		Me.Frame2.Name = "Frame2"
		Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Frame2.Size = New System.Drawing.Size(185, 225)
		Me.Frame2.TabIndex = 1
		Me.Frame2.TabStop = False
		Me.Frame2.Text = "foCX2"
		'
		'Label2
		'
		Me.Label2.BackColor = System.Drawing.SystemColors.Control
		Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label2.Location = New System.Drawing.Point(8, 40)
		Me.Label2.Name = "Label2"
		Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label2.Size = New System.Drawing.Size(113, 17)
		Me.Label2.TabIndex = 26
		Me.Label2.Text = "W"
		'
		'Frame1
		'
		Me.Frame1.BackColor = System.Drawing.SystemColors.Control
		Me.Frame1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label1})
		Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Frame1.Location = New System.Drawing.Point(96, 8)
		Me.Frame1.Name = "Frame1"
		Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Frame1.Size = New System.Drawing.Size(177, 225)
		Me.Frame1.TabIndex = 0
		Me.Frame1.TabStop = False
		Me.Frame1.Text = "foCX1"
		'
		'Label1
		'
		Me.Label1.BackColor = System.Drawing.SystemColors.Control
		Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label1.Location = New System.Drawing.Point(8, 40)
		Me.Label1.Name = "Label1"
		Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label1.Size = New System.Drawing.Size(145, 17)
		Me.Label1.TabIndex = 17
		Me.Label1.Text = "W"
		'
		'Label9
		'
		Me.Label9.BackColor = System.Drawing.SystemColors.Control
		Me.Label9.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label9.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label9.Location = New System.Drawing.Point(280, 240)
		Me.Label9.Name = "Label9"
		Me.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label9.Size = New System.Drawing.Size(81, 17)
		Me.Label9.TabIndex = 25
		Me.Label9.Text = "TvO"
		'
		'LabelCount2
		'
		Me.LabelCount2.BackColor = System.Drawing.SystemColors.Control
		Me.LabelCount2.Cursor = System.Windows.Forms.Cursors.Default
		Me.LabelCount2.ForeColor = System.Drawing.SystemColors.ControlText
		Me.LabelCount2.Location = New System.Drawing.Point(368, 240)
		Me.LabelCount2.Name = "LabelCount2"
		Me.LabelCount2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.LabelCount2.Size = New System.Drawing.Size(81, 17)
		Me.LabelCount2.TabIndex = 24
		Me.LabelCount2.Text = "0"
		'
		'Label7
		'
		Me.Label7.BackColor = System.Drawing.SystemColors.Control
		Me.Label7.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label7.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label7.Location = New System.Drawing.Point(280, 264)
		Me.Label7.Name = "Label7"
		Me.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label7.Size = New System.Drawing.Size(57, 17)
		Me.Label7.TabIndex = 23
		Me.Label7.Text = "Xe[^X"
		'
		'LabelStatus2
		'
		Me.LabelStatus2.BackColor = System.Drawing.SystemColors.Control
		Me.LabelStatus2.Cursor = System.Windows.Forms.Cursors.Default
		Me.LabelStatus2.ForeColor = System.Drawing.SystemColors.ControlText
		Me.LabelStatus2.Location = New System.Drawing.Point(368, 264)
		Me.LabelStatus2.Name = "LabelStatus2"
		Me.LabelStatus2.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.LabelStatus2.Size = New System.Drawing.Size(89, 17)
		Me.LabelStatus2.TabIndex = 22
		Me.LabelStatus2.Text = "0H"
		'
		'Label3
		'
		Me.Label3.BackColor = System.Drawing.SystemColors.Control
		Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label3.Location = New System.Drawing.Point(104, 48)
		Me.Label3.Name = "Label3"
		Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label3.Size = New System.Drawing.Size(57, 17)
		Me.Label3.TabIndex = 16
		Me.Label3.Text = "JEg"
		'
		'Label4
		'
		Me.Label4.BackColor = System.Drawing.SystemColors.Control
		Me.Label4.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label4.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label4.Location = New System.Drawing.Point(176, 48)
		Me.Label4.Name = "Label4"
		Me.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label4.Size = New System.Drawing.Size(65, 17)
		Me.Label4.TabIndex = 15
		Me.Label4.Text = "d"
		'
		'Label5
		'
		Me.Label5.BackColor = System.Drawing.SystemColors.Control
		Me.Label5.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label5.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label5.Location = New System.Drawing.Point(96, 240)
		Me.Label5.Name = "Label5"
		Me.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label5.Size = New System.Drawing.Size(81, 17)
		Me.Label5.TabIndex = 14
		Me.Label5.Text = "TvO"
		'
		'LabelCount1
		'
		Me.LabelCount1.BackColor = System.Drawing.SystemColors.Control
		Me.LabelCount1.Cursor = System.Windows.Forms.Cursors.Default
		Me.LabelCount1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.LabelCount1.Location = New System.Drawing.Point(184, 240)
		Me.LabelCount1.Name = "LabelCount1"
		Me.LabelCount1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.LabelCount1.Size = New System.Drawing.Size(89, 17)
		Me.LabelCount1.TabIndex = 13
		Me.LabelCount1.Text = "0"
		'
		'Label6
		'
		Me.Label6.BackColor = System.Drawing.SystemColors.Control
		Me.Label6.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label6.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label6.Location = New System.Drawing.Point(96, 264)
		Me.Label6.Name = "Label6"
		Me.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label6.Size = New System.Drawing.Size(57, 17)
		Me.Label6.TabIndex = 12
		Me.Label6.Text = "Xe[^X"
		'
		'LabelStatus1
		'
		Me.LabelStatus1.BackColor = System.Drawing.SystemColors.Control
		Me.LabelStatus1.Cursor = System.Windows.Forms.Cursors.Default
		Me.LabelStatus1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.LabelStatus1.Location = New System.Drawing.Point(184, 264)
		Me.LabelStatus1.Name = "LabelStatus1"
		Me.LabelStatus1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.LabelStatus1.Size = New System.Drawing.Size(89, 17)
		Me.LabelStatus1.TabIndex = 11
		Me.LabelStatus1.Text = "0H"
		'
		'Form1
		'
		Me.AutoScaleBaseSize = New System.Drawing.Size(5, 12)
		Me.ClientSize = New System.Drawing.Size(474, 332)
		Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TextInfo2, Me.TextDevice2, Me.ComboRange2, Me.ListData2, Me.TextDevice1, Me.CommandInit, Me.CommandStart, Me.CommandInfo, Me.CommandStop, Me.CommandExit, Me.ComboRange1, Me.ListData1, Me.TextInfo1, Me.Frame2, Me.Frame1, Me.Label9, Me.LabelCount2, Me.Label7, Me.LabelStatus2, Me.Label3, Me.Label4, Me.Label5, Me.LabelCount1, Me.Label6, Me.LabelStatus1})
		Me.Location = New System.Drawing.Point(4, 30)
		Me.MaximizeBox = False
		Me.Name = "Form1"
		Me.Text = "2foCXpTvO"
		Me.Frame2.ResumeLayout(False)
		Me.Frame1.ResumeLayout(False)
		Me.ResumeLayout(False)

	End Sub
#End Region 

	Dim Id1 As Short	' foCX1ID
	Dim Id2 As Short	' foCX2ID
	Const MAX_SAMPLES As Short = 1000	' őTvO
	Dim Data1(MAX_SAMPLES) As Single	' foCX1擾f[^̔z
	Dim Data2(MAX_SAMPLES) As Single	' foCX2擾f[^̔z
	Dim Samples1 As Integer	' foCX1擾f[^
	Dim Samples2 As Integer	' foCX2擾f[^

	'==================================
	' tH[̃[h
	'==================================
	Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		'----------------------------------
		' ̓WR{{bNX̏
		'----------------------------------
		ComboRange1.Items.Add(("-20.0 - +20.0V"))
		ComboRange1.Items.Add(("-10.0 - +10.0V"))
		ComboRange1.Items.Add(("-5.0 - +5.0V"))
		ComboRange1.Items.Add(("-2.0 - +2.0V"))
		ComboRange1.Items.Add(("-1.0 - +1.0V"))
		ComboRange1.Items.Add(("-0.5 - + 0.5V"))
		ComboRange1.Items.Add(("-0.2 - +0.2V"))
		ComboRange1.Items.Add(("-0.1 - +0.1V"))
		ComboRange1.Items.Add(("-0.05 - +0.05V"))
		ComboRange1.Items.Add(("-0.02 - +0.02V"))

		ComboRange2.Items.Add(("-20.0 - +20.0V"))
		ComboRange2.Items.Add(("-10.0 - +10.0V"))
		ComboRange2.Items.Add(("-5.0 - +5.0V"))
		ComboRange2.Items.Add(("-2.0 - +2.0V"))
		ComboRange2.Items.Add(("-1.0 - +1.0V"))
		ComboRange2.Items.Add(("-0.5 - + 0.5V"))
		ComboRange2.Items.Add(("-0.2 - +0.2V"))
		ComboRange2.Items.Add(("-0.1 - +0.1V"))
		ComboRange2.Items.Add(("-0.05 - +0.05V"))
		ComboRange2.Items.Add(("-0.02 - +0.02V"))

		'----------------------------------
		' WTv̏
		'----------------------------------
		Samples1 = 0
		Samples2 = 0
	End Sub

	'==================================
	' 
	'==================================
	Private Sub CommandInit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CommandInit.Click
		Dim Ret As Integer	   ' ߂l
		Dim Ret2 As Integer	   ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		'-----------------------------------------------------
		' foCX1
		'-----------------------------------------------------
		'----------------------------------
		' 
		'----------------------------------
		Ret = DigInit(TextDevice1.Text, Id1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigInit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' foCX̃Zbg
		'----------------------------------
		Ret = DigResetDevice(Id1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigResetDevice = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo1.Text = " : I"

		'-----------------------------------------------------
		' foCX2
		'-----------------------------------------------------
		'----------------------------------
		' 
		'----------------------------------
		Ret = DigInit(TextDevice2.Text, Id2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigInit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' foCX̃Zbg
		'----------------------------------
		Ret = DigResetDevice(Id2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigResetDevice = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo2.Text = " : I"
	End Sub

	'==================================
	' foCX1̓W̐ݒ
	'==================================
	Private Sub ComboRange1_SelectedIndexChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles ComboRange1.SelectedIndexChanged
		Dim Range As Single
		Dim Index As Short
		Index = ComboRange1.SelectedIndex
		Select Case Index
			Case 0 : Range = DIG_RANGE_40VPP
			Case 1 : Range = DIG_RANGE_20VPP
			Case 2 : Range = DIG_RANGE_10VPP
			Case 3 : Range = DIG_RANGE_4VPP
			Case 4 : Range = DIG_RANGE_2VPP
			Case 5 : Range = DIG_RANGE_1VPP
			Case 6 : Range = DIG_RANGE_400MVPP
			Case 7 : Range = DIG_RANGE_200MVPP
			Case 8 : Range = DIG_RANGE_100MVPP
			Case 9 : Range = DIG_RANGE_40MVPP
		End Select

		'----------------------------------
		' `l0̓̓Wݒ
		'----------------------------------
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		Ret = DigSetRange(Id1, DIG_CHANNEL0, Range)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetRange = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo1.Text = "̓Wݒ : I"
	End Sub

	'==================================
	' foCX2̓W̐ݒ
	'==================================
	Private Sub ComboRange2_SelectedIndexChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles ComboRange2.SelectedIndexChanged
		Dim Range As Single
		Dim Index As Short
		Index = ComboRange2.SelectedIndex
		Select Case Index
			Case 0 : Range = DIG_RANGE_40VPP
			Case 1 : Range = DIG_RANGE_20VPP
			Case 2 : Range = DIG_RANGE_10VPP
			Case 3 : Range = DIG_RANGE_4VPP
			Case 4 : Range = DIG_RANGE_2VPP
			Case 5 : Range = DIG_RANGE_1VPP
			Case 6 : Range = DIG_RANGE_400MVPP
			Case 7 : Range = DIG_RANGE_200MVPP
			Case 8 : Range = DIG_RANGE_100MVPP
			Case 9 : Range = DIG_RANGE_40MVPP
		End Select

		'----------------------------------
		' `l0̓̓Wݒ
		'----------------------------------
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		Ret = DigSetRange(Id2, DIG_CHANNEL0, Range)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetRange = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo2.Text = "̓Wݒ : I"
	End Sub

	'==================================
	' WJn
	'==================================
	Private Sub CommandStart_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CommandStart.Click
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		'----------------------------------
		' ϐ
		'----------------------------------
		Samples1 = 0
		Samples2 = 0
		ListData1.Items.Clear()
		ListData2.Items.Clear()

		'-----------------------------------------------------
		' foCX1̐ݒ
		'-----------------------------------------------------
		'----------------------------------
		' 샂[hݒFf[^K[[h
		'----------------------------------
		Ret = DigSetDigitizerMode(Id1, DIG_MODE_LOGGER)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetDigitizerMode = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' CxgRg[jbgݒFoXM1 -vgK
		'----------------------------------
		Ret = DigSetEcuSignal(Id1, DIG_ECU_DEST_SYNC1, DIG_ECU_SRC_PRETRG)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetEcuSignal = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' TvONbN\[XݒF{[hU@
		'----------------------------------
		Ret = DigSetClockSource(Id1, DIG_ECU_SRC_CLOCK)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetClockSource = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' TvONbNݒF1000usec (ݒl * 10 + 10(nsec))
		'----------------------------------
		Ret = DigSetSampleClock(Id1, 99999)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetSampleClock = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' R[hW񐔐ݒF1
		'----------------------------------
		Ret = DigSetRecordNumber(Id1, 1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetRecordNumber = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' vgKTvݒF1000Tv
		'----------------------------------
		Ret = DigSetPreSampleTimes(Id1, MAX_SAMPLES)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetPreSampleTimes = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' |XggKTvݒFȂ
		'----------------------------------
		Ret = DigSetPostSampleTimes(Id1, 0)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetPostSampleTimes = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' `lݒF0`l̂ݗL
		'----------------------------------
		' 0`lLɂ
		Ret = DigSetChannel(Id1, DIG_CHANNEL0, DIG_ENABLE)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetChannel = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		' 1`l𖳌ɂ
		Ret = DigSetChannel(Id1, DIG_CHANNEL1, DIG_DISABLE)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetChannel = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' vgKނ̐ݒF
		'----------------------------------
		Ret = DigSetPreTriggerType(Id1, DIG_TRIGGERTYPE_AUTO)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigSetPreTriggerType = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'-----------------------------------------------------
		' foCX2̐ݒ
		'-----------------------------------------------------
		'----------------------------------
		' 샂[hݒFf[^K[[h
		'----------------------------------
		Ret = DigSetDigitizerMode(Id2, DIG_MODE_LOGGER)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetDigitizerMode = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' TvONbN\[XݒF{[hU@
		'----------------------------------
		Ret = DigSetClockSource(Id2, DIG_ECU_SRC_CLOCK)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetClockSource = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' TvONbNݒF1000usec (ݒl * 10 + 10(nsec))
		'----------------------------------
		Ret = DigSetSampleClock(Id2, 99999)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetSampleClock = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' R[hW񐔐ݒF1
		'----------------------------------
		Ret = DigSetRecordNumber(Id2, 1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetRecordNumber = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' vgKTvݒF1000Tv
		'----------------------------------
		Ret = DigSetPreSampleTimes(Id2, MAX_SAMPLES)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetPreSampleTimes = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' |XggKTvݒFȂ
		'----------------------------------
		Ret = DigSetPostSampleTimes(Id2, 0)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetPostSampleTimes = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' `lݒF0`l̂ݗL
		'----------------------------------
		' 0`lLɂ
		Ret = DigSetChannel(Id2, DIG_CHANNEL0, DIG_ENABLE)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetChannel = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		' 1`l𖳌ɂ
		Ret = DigSetChannel(Id2, DIG_CHANNEL1, DIG_DISABLE)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetChannel = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' vgKނ̐ݒFfW^GbW
		'----------------------------------
		Ret = DigSetPreTriggerType(Id2, DIG_TRIGGERTYPE_DIEDGE)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetPreTriggerType = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' vgK̐ݒFM=oX1, =, =1
		'----------------------------------
		Ret = DigSetPreTriggerDiEdge(Id2, DIG_ECU_SRC_SYNC1, 0, 1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigSetPreTriggerDiEdge = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' JnFfoCX2ɃX^[g܂B
		'----------------------------------
		Ret = DigStart(Id2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigStart = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		TextInfo2.Text = "WJn : I"

		Ret = DigStart(Id1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigStart = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		TextInfo1.Text = "WJn : I"

		'----------------------------------
		' 쒆Xe[^XOFFɂȂ܂Ń|[O
		'----------------------------------
		Dim Status1 As Integer
		Dim Status2 As Integer

		Do
			System.Windows.Forms.Application.DoEvents()			 ' _CAOLɂ邽߂̏

			'---------------------------------------
			' foCX1
			'---------------------------------------
			'----------------------------------
			' hCoTv擾
			'----------------------------------
			Ret = DigGetDriverMemorySamples(Id1, Samples1)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo1.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
			LabelCount1.Text = CStr(Samples1)

			'----------------------------------
			' Xe[^X̎擾
			'----------------------------------
			Ret = DigGetStatus(Id1, Status1)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo1.Text = "DigGetStatus = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
			LabelStatus1.Text = Hex(Status1) & "H"

			'---------------------------------------
			' foCX2
			'---------------------------------------
			'----------------------------------
			' hCoTv擾
			'----------------------------------
			Ret = DigGetDriverMemorySamples(Id2, Samples2)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo2.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
			LabelCount2.Text = CStr(Samples2)

			'----------------------------------
			' Xe[^X̎擾
			'----------------------------------
			Ret = DigGetStatus(Id2, Status2)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo2.Text = "DigGetStatus = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
			LabelStatus2.Text = Hex(Status2) & "H"
		Loop While ((Status1 Or Status2) And DIG_STATUS_BUSY) = DIG_STATUS_BUSY

		'---------------------------------------
		' foCX1
		'---------------------------------------
		'----------------------------------
		' ~ɃhCoɊi[ĂTv擾
		'----------------------------------
		Ret = DigGetDriverMemorySamples(Id1, Samples1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' Wf[^擾
		'----------------------------------
		Dim TriggerPoint1 As Integer		  ' |XggK̐擪f[^ʒu
		If Samples1 > 0 Then
			' 擾TvOf[^i[zTCY𒴂Ȃ悤
			If Samples1 > MAX_SAMPLES Then
				Samples1 = MAX_SAMPLES
			End If
            Ret = DigReadSamples(Id1, Samples1, Data1, TriggerPoint1)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo1.Text = "DigReadSamples = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
		End If
		'----------------------------------
		' 擾f[^\
		'----------------------------------
		Dim i As Integer
		For i = 0 To Samples1 - 1
			ListData1.Items.Add((i + 1 & "           " & String.Format("{0:F3}", Data1(i))))
		Next i


		'---------------------------------------
		' foCX2
		'---------------------------------------
		'----------------------------------
		' ~ɃhCoɊi[ĂTv擾
		'----------------------------------
		Ret = DigGetDriverMemorySamples(Id2, Samples2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		'----------------------------------
		' Wf[^擾
		'----------------------------------
		Dim TriggerPoint2 As Integer		  ' |XggK̐擪f[^ʒu
		If Samples2 > 0 Then
			' 擾TvOf[^i[zTCY𒴂Ȃ悤
			If Samples2 > MAX_SAMPLES Then
				Samples2 = MAX_SAMPLES
			End If
            Ret = DigReadSamples(Id2, Samples2, Data2, TriggerPoint2)
			If Ret <> 0 Then
				Ret2 = DigGetErrorString(Ret, ErrorString)
                TextInfo2.Text = "DigReadSamples = " & Ret & " : " & ErrorString.ToString()
				Exit Sub
			End If
		End If
		'----------------------------------
		' 擾f[^\
		'----------------------------------
		For i = 0 To Samples2 - 1
			ListData2.Items.Add((i + 1 & "           " & String.Format("{0:F3}", Data2(i))))
		Next i

	End Sub

	'==================================
	' Ԏ擾
	'==================================
	Private Sub CommandInfo_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CommandInfo.Click
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[
		Dim Count As Integer		  ' TvO
		Dim Status As Integer		  ' Xe[^X

		'---------------------------------------
		' foCX1
		'---------------------------------------
		'----------------------------------
		' hCoTv擾
		'----------------------------------
		Ret = DigGetDriverMemorySamples(Id1, Count)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		LabelCount1.Text = Count

		'----------------------------------
		' Xe[^X̎擾
		'----------------------------------
		Ret = DigGetStatus(Id1, Status)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigGetStatus = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		LabelStatus1.Text = Hex(Status) & "H"

		TextInfo1.Text = "Ԏ擾 : I"

		'---------------------------------------
		' foCX2
		'---------------------------------------
		'----------------------------------
		' hCoTv擾
		'----------------------------------
		Ret = DigGetDriverMemorySamples(Id2, Count)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigGetDriverMemorySamples = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		LabelCount2.Text = Count

		'----------------------------------
		' Xe[^X̎擾
		'----------------------------------
		Ret = DigGetStatus(Id2, Status)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigGetStatus = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If
		LabelStatus2.Text = Hex(Status) & "H"

		TextInfo2.Text = "Ԏ擾 : I"
	End Sub

	'==================================
	' W~
	'==================================
	Private Sub CommandStop_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CommandStop.Click
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		'---------------------------------------
		' foCX1
		'---------------------------------------
		Ret = DigStop(Id1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigExit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo1.Text = "W~ : I"

		'---------------------------------------
		' foCX2
		'---------------------------------------
		Ret = DigStop(Id2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigExit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo2.Text = "W~ : I"
	End Sub

	'==================================
	' I
	'==================================
	Private Sub CommandExit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CommandExit.Click
		Dim Ret As Integer		  ' ߂l
		Dim Ret2 As Integer		  ' ߂l2
        Dim ErrorString As New StringBuilder("", 256)     ' G[

		'---------------------------------------
		' foCX1
		'---------------------------------------
		Ret = DigExit(Id1)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo1.Text = "DigExit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo1.Text = "I : I"

		'---------------------------------------
		' foCX2
		'---------------------------------------
		Ret = DigExit(Id2)
		If Ret <> 0 Then
			Ret2 = DigGetErrorString(Ret, ErrorString)
            TextInfo2.Text = "DigExit = " & Ret & " : " & ErrorString.ToString()
			Exit Sub
		End If

		TextInfo2.Text = "I : I"
	End Sub

	'==================================
	' tH[̃A[h
	'==================================
	Private Sub Form1_Closed(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Closed
		Dim Ret As Integer		  ' ߂l
		Ret = DigExit(Id1)
		Ret = DigExit(Id2)
	End Sub
End Class