287
Chapter 6 Application Programs
Example: Microsoft Visual C++ for Windows
4
6
Example: Microsoft Visual C++ for Windows
//’"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""’
//’ Copyright (c) 2000 Agilent Technologies. All Rights Reserved. ’
//’ ’
//’ Agilent Technologies provides programming samples for illustration ’
//’ purposes only. This sample program assumes that you are familiar ’
//’ with the programming language being demonstrated and the tools used ’
//’ to create and debug procedures. Agilent support engineers can help ’
//’ answer questions relating to the functionality of the software ’
//’ components provided by Agilent, but they will not modify these samples ’
//’ to provide added functionality or construct procedures to meet your ’
//’ specific needs. ’
//’ You have a royalty-free right to use, modify, reproduce, and distribute ’
//’ this sample program (and/or any modified version) in any way you find ’
//’ useful, provided that you agree that Agilent has no warranty, ’
//’ obligations, or liability for any sample programs. ’
//’"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""’
//
// Agilent 33250A 80 MHz Function/Arb Waveform Generator Examples
//
// Examples include Modulation, Pulse, Sweeping, Burst, and Status Checking.
// Examples illustrate various uses of short/long form SCPI.
// Examples also illustrate enabling/disabling output BNCs.
// To view results on Scope, set to:
// Channel 1: Output BNC, 50ohms, 50us/div, 200mV/div
// Channel 2: Sync BNC, 50us/div, 500mV/div, trigger on Channel 2
//
// Microsoft Visual C++ 6.0 for GPIB/RS-232
// 3-30-00
//
#include <stdio.h>
#include <comdef.h>
//
// Import the IOUtils
// (your directory is dependent on where BenchLlink XL was installed)
//
#pragma warning(disable:4192) // Suppresses warning from import
#import "C:\siclnt\servers\AgtIOUtils.dll"
using namespace AgilentIOUtilsLib;
Continued...