EasyManuals Logo
Home>Agilent Technologies>Inverter>33250A

Agilent Technologies 33250A User Manual

Agilent Technologies 33250A
336 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #289 background imageLoading...
Page #289 background image
289
Chapter 6 Application Programs
Example: Microsoft Visual C++ for Windows
4
6
}
int main(int argc, char* argv[])
{
CoInitialize(NULL);
int i; // General purpose counter
char cmds[ 100 ]; // Used to store command string
try
{
IIOManagerPtr IOMgr;
IIOPtr IOObj;
IIOUtilsPtr IOUtils;
IOUtils.CreateInstance(__uuidof(AgtUtilsObject));
IOMgr.CreateInstance(__uuidof(AgtIOManager));
//
// RS-232 Configuration: uncomment line - comment out GPIB line
// IOObj = IOMgr->ConnectToInstrument(L"COM1::Baud=57600,Handshake=DTR_DSR");
//
// GPIB Configuration
IOObj = IOMgr->ConnectToInstrument(L"GPIB0::10");
//
// Return 33250A to turn-on conditions
//
IOObj->Output("*RST"); // Default state of instrument
IOObj->Output("*CLS"); // Clear errors and status
//
// AM Modulation
//
printf ("AM Modulation\n");
IOObj->Output("OUTPut:LOAD INFinity"); // Configure for Hi Z load
IOObj->Output("APPLy:SINusoid 1e6,1,0"); // 1MHz Sine, 1Vpp, 0Vdc offset
IOObj->Output("AM:INTernal:FUNCtion RAMP"); // Modulating signal: Ramp
IOObj->Output("AM:INTernal:FREQuency 10e3"); // Modulating frequency: 10kHz
IOObj->Output("AM:DEPTh 80"); // Modulation depth: 80%
IOObj->Output("AM:STATe ON"); // Turn ON AM modulation
Check_Errors(IOObj); // Routine check for errors
Pause();
IOObj->Output("am:stat off"); // Turn OFF AM modulation
//
// FM Modulation
//
printf ("FM Modulation\n");
IOObj->Output("outp:load 50"); // Configure for 50 ohm load
IOObj->Output("appl:sin 20e3,1,0"); // 20kHz Sine, 1Vpp, 0Vdc Offset
IOObj->Output("fm:dev 20e3"); // FM deviation: 20kHz
IOObj->Output("fm:int:freq 1000"); // FM Modulation Freq: 1kHz
IOObj->Output("fm:stat on"); // Turn ON FM modulation
Check_Errors(IOObj); // Routine check for errors
Pause();
IOObj->Output("fm:stat off"); // Turn OFF FM modulation
Continued...

Table of Contents

Other manuals for Agilent Technologies 33250A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 33250A and is the answer not in the manual?

Agilent Technologies 33250A Specifications

General IconGeneral
BrandAgilent Technologies
Model33250A
CategoryInverter
LanguageEnglish

Related product manuals