E5071C VBA 프로그래밍
E5071C VBA 프로그래밍
- 전자부품
- 계측기
- 네트워크분석기
- E5071C 네트워크분석기
- E5071C GPIB 프로그래밍
- E5071C VBA 프로그래밍 - 이 페이지
- E5071C GPIB 프로그래밍
- E5071C 네트워크분석기
- 네트워크분석기
- 계측기
- 내부 VBA 프로그램에서. COM object를 사용한다.
- VBA = Visual Basic for Application
- VBA Programmer's Guide
- E5070A/E5071A, 2002/04, 2nd edition - 485p
- E5071B, 2007/06, 9th edition, firmware A.08.10 기준 - 813p
- 화면
- Fixture simulator
- Turns on/off fixture simulator function
- SCPI.CALCulate(1).FSIMulator.STATe = True
- Matching circuit embedding function
- On/Off: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.STATe = True
- Circuit type: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.PORT(1).TYPE = "slpc"
- NONE: no-circuit
- SLPC: series L and shunt C
- PCSL: shunt C and series L
- PLSC: shunt L and series C
- SCPL: series C and shunt L
- PLPC: shunt L and shunt C
- USER: user-defined circuit
- Circuit constant:
- C: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.PORT(1).PARameters.C = 12E-12
- G: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.PORT(1).PARameters.G = 12E-12
- L: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.PORT(1).PARameters.L = 12E-12
- R: SCPI.CALCulate(1).FSIMulator.SENDed.PMCircuit.PORT(1).PARameters.R = 12E-12
- Turns on/off fixture simulator function
- 예제-1
- Private Sub UserForm_Click() Dim FmtData As Variant, Freq As Variant Dim SaveData(99, 800) Dim File As String Dim dmy As Long Dim start, finish File = "2.txt" Open File For Output As #1 SCPI.SENSe(1).SWEep.POINts = 801 Nop = SCPI.SENSe(1).SWEep.POINts SCPI.DISPlay.ENABle = False 'SCPI.DISPlay.ENABle = True ECHO "Nop=", Nop SCPI.TRIGger.SEQuence.Source = "BUS" Freq = SCPI.SENSe(1).FREQuency.DATA start = Timer For i = 0 To 99 SCPI.TRIGger.SEQuence.SINGle dmy = SCPI.IEEE4882.OPC FmtData = SCPI.CALCulate(1).SELected.DATA.FDATa For j = 0 To Nop - 1 SaveData(i, j) = FmtData(2 * j) Next j Next i finish = Timer ECHO "Elapsed Time=", finish - start For j = 0 To Nop - 1 Print #1, j + 1, Freq(j); For i = 0 To 99 Print #1, SaveData(i, j); Next i Print #1, Next j Close #1 MsgBox "Measurement Completion" SCPI.SYSTem.BEEPer.COMPlete.IMMediate End Sub
- reset 상태에서 S21 750MHz~1250MHz Nop=801 IFBW=70kHz 100번 스윕하는데 23.64초
- 데이터 전송포함하면 23.82초
- 화면 업데이트 하지 않으면 3.1초
- 100회 측정데이터를 배열로 처리하는데 3.2초
- IFBW=10kHz이면 약 9,6sec
- IFBW=100kHz이면 약 2,7sec