EasyManuals Logo

ADCMT 6146 User Manual

ADCMT 6146
260 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 #200 background imageLoading...
Page #200 background image
6146/6156 DC Voltage/Current Generators Operation Manual
5.9.2 Program Example 1-DC Voltage Source and Voltage/Current Measurement
5-52
If blnUSBComErr = True Then ' Checks for errors in USB transmission and reception.
GoTo ErrExit
End If
Loop Until lngDMMSTB = 16 ' Repeats until the measurement is compete.
Call aUSBRd(lngDMMHdl, strRecvStr) ' Receives the measured data.
' Assigns the measured data to the specified cell.
ActiveSheet.Cells(lngStaRow, lngVDataCol).Value = strRecvStr
Call aUSBWrt(lngDMMHdl, "F5") ' Current measurement function
Call aUSBWrt(lngDMMHdl, "*TRG") ' Sends the trigger and starts measurement.
Do
Call aUSBWrt(lngDMMHdl, "*STB?") ' STB query
Call aUSBRd(lngDMMHdl, strRecvStr) ' Data reception
lngDMMSTB = CLng(strRecvStr) ' STB value storing
lngDMMSTB = lngDMMSTB And 16 ' AND operation on the Message Available bit
If blnUSBComErr = True Then ' Checks for errors in USB transmission and reception.
GoTo ErrExit
End If
Loop Until lngDMMSTB = 16 ' Repeats until the measurement is compete.
Call aUSBRd(lngDMMHdl, strRecvStr) ' Receives the measured data.
' Assigns the measured data to the specified cell.
ActiveSheet.Cells(lngStaRow, lngIDataCol).Value = strRecvStr
ErrExit:
Call aUSBWrt(lngVIGHdl, "SBY") ' Sets the VIG output ot OFF
' Closes the devices (instruments).
Call aUSBCls(lngVIGHdl) ' VIG
Call aUSBCls(lngDMMHdl) ' DMM
' The USB driver terminates.
Call aUSBEnd
End Sub

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ADCMT 6146 Specifications

General IconGeneral
BrandADCMT
Model6146
CategoryPortable Generator
LanguageEnglish

Related product manuals