EasyManuals Logo

ADCMT 6241A User Manual

ADCMT 6241A
306 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #232 background imageLoading...
Page #232 background image
6241A/6242 DC Voltage Current Source/Monitor Operation Manual
6.8.2 Programming Examples with USB
6-50
ret = ausb_close(id)
If ret <> OK Then
MsgBox "Device Close Error", vbExclamation
End If
ret = ausb_end()
If ret <> OK Then
MsgBox "USB End Error", vbExclamation
End If
End Sub
Subroutine
Private Sub ausbrd(id As Long, dt As String)
Receive data subroutine
Dim ret As Long Declares the driver return value variable.
Dim siz As Long
ret = ausb_read(id, dt, 50, siz) Receive data
If ret = OK Then
dt = Left$(dt, siz - 1)
Else
ret = ausb_clear(id) Clear device
MsgBox "Receive Error", vbExclamation
GoTo err_exit
End If
Exit Sub
err_exit:
ret = ausb_close(id)
If ret <> OK Then
MsgBox "Device Close Error", vbExclamation
End If
ret = ausb_end()
If ret <> OK Then
MsgBox "USB End Error", vbExclamation
End If
End Sub
(Output example)
DI +1.00000E-03
DI +2.00000E-03
DI -2.00000E-03
DIU+3.00000E-03
DV +2.00000E+00

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ADCMT 6241A and is the answer not in the manual?

ADCMT 6241A Specifications

General IconGeneral
BrandADCMT
Model6241A
CategoryMonitor
LanguageEnglish