Remote Commands
R&S
®
FSW
1386
User Manual 1173.9411.02 ─ 43
IF (VAL(Esr$) AND 128) > 0 THEN Debug.Print "Power on"END SUB
REM **********************************************************************
REM ------ Subroutine for evaluating the Event Status Register ------------
Public Sub Esrread()
Try
Dim myESR As Short = mbSession.Query("*ESR?") 'Read ESR
If (myESR And 1) > 0 Then Console.WriteLine("Operation complete")
If (myESR And 2) > 0 Then Console.WriteLine("Request Control")
If (myESR And 4) > 0 Then Console.WriteLine("Query Error")
If (myESR And 8) > 0 Then Console.WriteLine("Device dependent error")
If (myESR And 16) > 0 Then
Console.WriteLine("Execution Error; Program aborted") 'Output error message
Stop 'Stop software
End If
If (myESR And 32) > 0 Then
Console.WriteLine("Command Error; Program aborted") 'Output error message
Stop 'Stop software
End If
If (myESR And 64) > 0 Then Console.WriteLine("User request")
If (myESR And 128) > 0 Then Console.WriteLine("Power on")
Catch exp As Exception
Console.WriteLine(exp.Message)
End Try
End Sub
Programming Examples
Содержание FSW Series
Страница 1: ...R S FSW Signal and Spectrum Analyzer User Manual User Manual Version 43 1173941102 2...
Страница 16: ...Contents R S FSW 16 User Manual 1173 9411 02 43...
Страница 1388: ...Maintenance R S FSW 1388 User Manual 1173 9411 02 43 c If necessary remove any excess moisture with a dry soft cloth Cleaning...