Visual Basic .NET


デバイス"AIO000"に対して、アプリを通常サイズで起動し、アプリの起動と終了処理を行います。

Dim ret As Long               ' 戻り値取得用

Dim c_fgen

 

c_fgen = New CWaveformGenerator.CCWaveformGeneratorClass()

 

'----------------------------------------

' デバイスの初期化処理

'----------------------------------------

ret = c_fgen.OpenApplication(1, "AIO000", "")

If (ret <> 0) Then

    MessageBox.Show("OpenApplication function call error.")

End If

 

 

'----------------------------------------

' デバイスの終了処理

'----------------------------------------

ret = c_fgen.CloseApplication(0)

If (ret <> 0) Then

    MessageBox.Show("CloseApplication function call error.")

End If