Keysight V3500A User Manual page 95

Handheld rf power meter
Hide thumbs Also See for V3500A:
Table of Contents

Advertisement

N O T E
Example code using Microsoft Visual C++ 6.0
This sample program shows how to program the V3500A using Microsoft Visual C++ 6.0.
#include
"stdafx.h"
#include
<atlbase.h>
#include
<atlconv.h>
#include
<iostream.h>
#include
<windows.h>
#include
<stdio.h>
#pragma
warning (disable: 4278)
#import
"C:\Program Files\Keysight\Keysight V3500A Driver KeysightV3500A.tlb" \
no_namespace named_guids
void
dump_com_error(_com_error &e);
void
CheckForOK(BSTR Message);
V3500A User's Guide
Microsoft Visual C++ 6.0
This example is a console application. Follow the steps
below to run in Visual C++ 6.0:
1 Create a new Win32 Console Application.
2 Delete the source code of the newly created console
application project.
3 Copy the following code into the source code file.
Although Visual C++ 6.0 does not need any special steps to reference the
DLL, make sure the code refers to the correct installation directory — refer
to
"Adding a reference (Microsoft Visual C++ 6.0)" on page
sample code below, the specific program statement regarding the driver
file installation is in bold-face type style.
Driver Installation and Commands
3
45. In the
75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents