Agilent Technologies 33250A User Manual page 289

80 mhz function / arbitrary waveform generator
Hide thumbs Also See for 33250A:
Table of Contents

Advertisement

}
int main(int argc, char* argv[])
{
CoInitialize(NULL);
int i;
char cmds[ 100 ];
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");
IOObj->Output("*CLS");
//
// AM Modulation
//
printf ("AM Modulation\n");
IOObj->Output("OUTPut:LOAD INFinity");
IOObj->Output("APPLy:SINusoid 1e6,1,0");
IOObj->Output("AM:INTernal:FUNCtion RAMP");
IOObj->Output("AM:INTernal:FREQuency 10e3");
IOObj->Output("AM:DEPTh 80");
IOObj->Output("AM:STATe ON");
Check_Errors(IOObj);
Pause();
IOObj->Output("am:stat off");
//
// FM Modulation
//
printf ("FM Modulation\n");
IOObj->Output("outp:load 50");
IOObj->Output("appl:sin 20e3,1,0");
IOObj->Output("fm:dev 20e3");
IOObj->Output("fm:int:freq 1000");
IOObj->Output("fm:stat on");
Check_Errors(IOObj);
Pause();
IOObj->Output("fm:stat off");
Continued...
Chapter 6 Application Programs
Example: Microsoft Visual C++ for Windows
// General purpose counter
// Used to store command string
// Default state of instrument
// Clear errors and status
// Configure for Hi Z load
// 1MHz Sine, 1Vpp, 0Vdc offset
// Modulating signal: Ramp
// Modulating frequency: 10kHz
// Modulation depth: 80%
// Turn ON AM modulation
// Routine check for errors
// Turn OFF AM modulation
// Configure for 50 ohm load
// 20kHz Sine, 1Vpp, 0Vdc Offset
// FM deviation: 20kHz
// FM Modulation Freq: 1kHz
// Turn ON FM modulation
// Routine check for errors
// Turn OFF FM modulation
4
6
289

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents