11.07.2015 Views

Agilent 33120A User's Guide

Agilent 33120A User's Guide

Agilent 33120A User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Application ProgramsThis chapter contains several remote interface application programs tohelp you develop programs for your own application. Chapter 4, “RemoteInterface Reference,” starting on page 125, lists the syntax for the SCPI(Standard Commands for Programmable Instruments) commandsavailable to program the function generator.BASIC Language ProgramsAll of the BASIC example programs in this chapter were developed andtested on an HP 9000 Series 300 controller. Each device on the GPIB(IEEE-488) interface must have a unique address. You can set thefunction generator’s address to any value between 0 and 30. The currentaddress is displayed momentarily on the front panel when you turn on thefunction generator.The GPIB (IEEE-488) address is set to “10” when the function generatoris shipped from the factory. The example programs in this chapterassume an GPIB address of 10. When sending a command over theremote interface, you append this address to the GPIB interface’s selectcode (normally “7”). For example, if the select code is “7” and the deviceaddress is “10”, the combination is “710”.C Language ProgramsAll of the C Language example programs in this chapter are written forthe 82335 GPIB Interface Card using the GPIB Command Library for C.Unless otherwise noted, the library functions used in the exampleprograms are compatible with the ANSI C standard.All of the C Language programs were compiled (and tested) using thefollowing compilers:œ Microsoft ® QuickC ® Version 2.0œ Borland ® Turbo C ® ++ Version 1.0244

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!