62
V3500A User’s Guide
3
Driver Installation and Commands
Example code using Microsoft C#.NET
This sample program shows how to program the V3500A using Microsoft C#.NET 2003.
using
System;
namespace
ExampleV3500A
{
class
Class1
{
[STAThread]
static void
Main(
string
[] args)
{
string
Reply;
double
MeasuredPower;
// The namespace for the V3500A driver is KeysightV3500A_NS.
// First, create the V3500A object.
KeysightV3500A_NS.KeysightV3500A myPM =
new
KeysightV3500A_NS.KeysightV3500A();
// Set the serial number and check that the meter is available
int
SN=10973300;
// Set this to the numerical serial number of your V3500A (without
prefix)
int
MeterAvailable=myPM.IsDeviceAvailable(SN);
// A return value of 1 means the V3500A is available.
// A value of –1 means it is absent, and a value of 0 means it is unavailable (for example, it
may be in use by another program).
if
(MeterAvailable != 1)
{
Console.WriteLine("PowerMeter not available;
status={0}",MeterAvailable);
return
;
}
Console.WriteLine("V3500A serial number {0} is available", SN);
myPM.SerialNumber=SN;
Содержание 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 ...