148
148
148
148
Rem
Rem
#########################################
Dim stat As ViStatus
Dim dfltRM As ViSession
Dim sesn As ViSession
Dim fList As ViFindList
Dim desc As String * VI_FIND_BUFLEN
Dim nList As Long
Dim ret As Long
Dim readin As String * 128
Dim i As Integer ' Array index
stat = viOpenDefaultRM(dfltRM)
If (stat < VI_SUCCESS) Then
'Rem Error initializing VISA ... exiting
MsgBox "USBTMC resource not found.", vbExclamation, "M3510
multimeter device test"
Exit Sub
End If
Rem Find all M3510 USBTMC instruments in the system
stat = viFindRsrc(dfltRM, "USB[0-9]*::0x05E6::0xM3510::?*INSTR",
fList, nList, desc)
If (stat < VI_SUCCESS) Then
'Rem Error finding resources ... exiting
MsgBox "M3510 device not found.", vbExclamation, "M3510
multimeter device test"
viClose (dfltRM)
Exit Sub
End If
Rem Open a session to each and determine if it matches
stat = viOpen(dfltRM, desc, VI_NULL, VI_NULL, sesn)
If (stat < VI_SUCCESS) Then
MsgBox "Open device failed.", vbExclamation, "M3510 multimeter
device test"
stat = viClose(fList)
Exit Sub
End If
Rem send reset command '*RST' -- reset M3510
stat = viWrite(sesn, "*RST", 4, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (*RST)", vbExclamation, "M3510
multimeter device test"
stat = viClose(fList)
Exit Sub
End If
Rem send Clear command '*CLS'-- Clear M3510 status register
stat = viWrite(sesn, "*CLS", 4, ret)
If (stat < VI_SUCCESS) Then
MsgBox "System command error. (*CLS)", vbExclamation, "M3510
multimeter device test"
stat = viClose(fList)
Exit Sub
End If
Rem send command -- 50 ohm reference resistance
stat = viWrite(sesn, "CALC:DBM:REF 50", 15, ret)
Содержание M3500
Страница 6: ......
Страница 10: ......
Страница 12: ...w a r ...
Страница 13: ......
Страница 14: ......
Страница 16: ......
Страница 29: ......
Страница 37: ......
Страница 41: ......
Страница 42: ...In Short Condition ...
Страница 43: ......
Страница 44: ......
Страница 109: ...104 104 104 104 651 Panel Program Checksum Error The checksum from the panel is incorrect ...
Страница 110: ...K U S A M ME C O ...
Страница 148: ...K U S A M M E C O K U S A M M E C O ...
Страница 155: ...K U S A M M E C O ...
Страница 163: ...158 158 158 158 m_nCount 0 m_defaultRM_usbtmc 0 FreeLibrary hUSBTMCLIB hUSBTMCLIB NULL return ...
Страница 164: ......