Driver Installation and Commands
3
V3500A User’s Guide
71
Microsoft Visual Basic 6.0
This example section contains a Windows Forms application.
Follow the steps below to run in Microsoft Visual Basic 6.0:
1
Create a new Windows Forms project.
2
Delete the source code of the newly created Windows
Forms project.
3
Copy the following code into the source code file.
4
Create three controls on the form:
•
A button named btnReadPower
•
A button named btnExit
•
A text box named txtMessages
5
Add a reference to the DLL — refer to
(Visual Basic 6.0)” on page 44
.
Example code using Microsoft Visual Basic 6.0
This sample program shows how to program the V3500A using Microsoft Visual Basic 6.0.
Dim
myPM
As New
KeysightV3500A.KeysightV3500A
Dim
Message
As String
Private Sub
btnExit_Click()
myPM.Close
End
End Sub
Private Sub
btnReadPower_Click()
Dim
MeasuredPower
As Double
Dim
Reply
As String
' Now we can communicate with the V3500A.
' Configure the V3500A for a measurement:
On Error GoTo
Err_Failed_Setup
Reply = myPM.SendString("*RST" & vbCrLf)
' Reset the V3500A
CheckForOK(Reply)
Содержание V3500A
Страница 1: ...Keysight V3500A Handheld RF Power Meter User s Guide ...
Страница 2: ......
Страница 3: ......
Страница 12: ...X V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 16: ...XIV V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 18: ...XVI V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 20: ...XVIII V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 49: ...Driver Installation and Commands 3 V3500A User s Guide 29 ...
Страница 52: ...32 V3500A User s Guide 3 Driver Installation and Commands ...
Страница 53: ...Driver Installation and Commands 3 V3500A User s Guide 33 ...
Страница 103: ...RF Measurement Basics 4 V3500A User s Guide 83 V0 Vpeak 2 ...