66
V3500A User’s Guide
3
Driver Installation and Commands
' Initialize the PowerMeter
Try
myPM.Initialize()
' If initialization fails:
Catch
e
As
Exception
Console.WriteLine("Error opening V3500A: " & e.Message)
Exit Sub
End Try
Console.WriteLine("V3500A initialized")
' Now we can communicate with the PowerMeter.
' Configure the PowerMeter for a measurement:
Try
Reply = myPM.SendString("*RST" & vbLf) 'Reset the PowerMeter
CheckForOK(Reply)
Reply = myPM.SendString("FREQ1000" & vbLf) 'Set the frequency to 1000 MHz
CheckForOK(Reply)
' If an error occurred:
Catch
e2
As
Exception
Console.WriteLine("Error sending to V3500A: " & e2.Message)
Exit Sub
End Try
Console.WriteLine("V3500A configured")
' Take a reading:
Try
Reply = myPM.SendString("*TRG" & vbLf) ' Trigger a power measurement
MeasuredPower = Convert.ToDouble(Reply)
Catch
e3
As
Exception
Console.WriteLine("Error reading power from V3500A: " & e3.Message)
Exit Sub
Summary of Contents for V3500A
Page 1: ...Keysight V3500A Handheld RF Power Meter User s Guide ...
Page 2: ......
Page 3: ......
Page 12: ...X V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 16: ...XIV V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 18: ...XVI V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 20: ...XVIII V3500A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 49: ...Driver Installation and Commands 3 V3500A User s Guide 29 ...
Page 52: ...32 V3500A User s Guide 3 Driver Installation and Commands ...
Page 53: ...Driver Installation and Commands 3 V3500A User s Guide 33 ...
Page 103: ...RF Measurement Basics 4 V3500A User s Guide 83 V0 Vpeak 2 ...