Programming Examples 3-11
DS335 Synthesized Function Generator
Program Examples
Introduction
The following examples demonstrate interfacing the DS335 via RS232 and
the GPIB interface using the National Instruments GPIB card. Using a
different brand of card would be similar except for the program lines that
actually send the data. These examples are intended to demonstrate the
syntax of the DS335's command set.
To successfully interface the DS335 to a PC via the GPIB interface, the
instrument, interface card, and interface drivers must all be configured
properly. To configure the DS335, the GPIB address must be set in the GPIB
menu. The default GPIB address is 22; use this address unless a conflict
occurs with other instruments in your system.
Make sure that you follow all the instructions for installing the GPIB card. The
National Instruments card cannot be simply unpacked and put into your
computer. To configure the card you must set jumpers and switches on the
card to set the I/O address and interrupt levels. You must run the program
"IBCONF" to configure the resident GPIB driver for your GPIB card. Please
refer to the National Instruments manual for information. In this example, the
following options must be set with IBCONF:
Device name: dds335
Device address: 22
EOS character: 0Ah (linefeed)
Once all the hardware and GPIB drivers are configured, use "IBIC". This
terminal emulation program allows you to send commands to the DS335
directly from your computer's keyboard. If you cannot talk to the DS335 via
"IBIC", then your programs will not run.
Use the simple commands provided by National Instruments. Use "IBWRT"
and "IBRD" to write and read from the DS335. After you are familiar with
these simple commands, you can explore more complex programming
commands.
The RS232 program assumes the RS232 option is enabled ([SHIFT][2]) and
the BAUD rate is set to 9600 BAUD.
The GPIB example was written in C and the RS232 example was written in
BASIC.
Summary of Contents for DS335
Page 2: ...DS335 Synthesized Function Generator...
Page 6: ...iv SRS Symbols DS335 Synthesized Function Generator...
Page 10: ...viii Specifications DS335 Synthesized Function Generator...
Page 18: ...2 4 Introduction DS335 Synthesized Function Generator...
Page 22: ...2 8 Features DS335 Synthesized Function Generator...
Page 26: ...2 12 Function Setting DS335 Synthesized Function Generator...
Page 30: ...2 16 Sweeps FSK DS335 Synthesized Function Generator...
Page 42: ...3 10 Programming Commands DS335 Synthesized Function Generator...
Page 46: ...3 14 Programming Examples DS335 Synthesized Function Generator...
Page 50: ...4 4 Troubleshooting DS335 Synthesized Function Generator...
Page 74: ...5 8 Circuitry DS335 Synthesized Function Generator...