
4-16 RS-232C Control
KJM6710
' Check if the VISA session is correctly opened
If session Is Nothing Then
MsgBox MSG, vbExclamation
Exit Function
End If
' Sends a device message string to the instrument.
On Error GoTo ERROR_HANDLER
session.WriteString (strDat & vbCrLf)' Add CR+LF
Exit Function
ERROR_HANDLER:
Dim strVisaCode As String
strVisaCode = "VISA Error: 0x" & Hex(Err.Number)
MsgBox Err.Description, vbExclamation, strVisaCode
End Function
'------------------------------------------------------------
Function ReceiveMessage(session As IMessage) As String
' Check if the VISA session is correctly opened
If session Is Nothing Then
MsgBox MSG, vbExclamation
Exit Function
End If
' Receives the response message from the instrument.
Dim strRd As String
On Error GoTo ERROR_HANDLER
strRd = session.ReadString(256)
' CR+LF Removed
strRd = Left(strRd, InStr(1, strRd, vbLf) - 2)
ReceiveMessage = strRd
Exit Function
ERROR_HANDLER:
Dim strVisaCode As String
strVisaCode = "VISA Error: 0x" & Hex(Err.Number)
MsgBox Err.Description, vbExclamation, strVisaCode
End Function
Содержание KJM6710
Страница 1: ...KJM6710 Part No Z1 003 052 IA003141 Jan 2004 OPERATION MANUAL Time Interval Jitter Meter ...
Страница 8: ...VI Overvoltage category KJM6710 ...
Страница 12: ...P 2 Preface KJM6710 ...
Страница 52: ...5 4 Maintenance KJM6710 ...
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ...TIME INTERVAL JITTER METER KJM6710 OPERATION MANUAL ...