Example: Basic For Windows - Agilent Technologies 33250A User Manual

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

Advertisement

10
! """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""!
20
! Copyright (c) 2000 Agilent Technologies.
30
!
40
! Agilent Technologies provides programming samples for illustration
50
! purposes only.
60
! with the programming language being demonstrated and the tools used
70
! to create and debug procedures.
80
! answer questions relating to the functionality of the software
90
! components provided by Agilent, but they will not modify these samples
100
! to provide added functionality or construct procedures to meet your
110
! specific needs.
120
! You have a royalty-free right to use, modify, reproduce, and distribute
130
! this sample program (and/or any modified version) in any way you find
140
! useful, provided that you agree that Agilent has no warranty,
150
! obligations, or liability for any sample programs.
160
! """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""!
170
! Agilent 33250A 80MHz Function/Arb Waveform Generator Examples
180
!
190
! Examples include Modulation, Pulse, Sweeping, and Burst.
200
! Examples illustrate various uses of short/long form SCPI.
210
! Examples also illustrate enabling/disabling output BNCs.
220
! To view results on Scope, set to:
230
!
Channel 1: Output BNC, 50ohms, 50us/div, 200mV/div
240
!
Channel 2: Sync BNC, 50us/div, 500mV/div, trigger on Channel 2
250
!
260
! BASIC for Windows examples for GPIB/RS-232
270
! 3-30-00
280
!
290
! GPIB Configuration
300
!
310
ASSIGN @Fgen TO 710
320
ASSIGN @Bin TO 710;FORMAT OFF
330
!
340
! RS-232 Configuration: uncomment these lines - comment out GPIB lines
350
!
360 ! ASSIGN @Fgen TO 9
370 ! ASSIGN @Bin TO 9;FORMAT OFF
380 ! CONTROL 9,3;57600
390 ! CONTROL 9,4;3
6
400 ! CONTROL 9,5;1
410 ! CONTROL 9,12;16
420 ! CONTROL 9,100;0
430
COM /Instrument/@Fgen,@Bin
440
!
450
! Return 33250A to turn-ON conditions
460
!
470
OUTPUT @Fgen;"*RST"
480
OUTPUT @Fgen;"*CLS"
490
!
Continued...
Chapter 6 Application Programs

Example: BASIC for Windows

Example: BASIC for Windows
This sample program assumes that you are familiar
278
All Rights Reserved.
Agilent support engineers can help
! GPIB ASCII data/commands
! GPIB Binary data
! RS-232 ASCII data/commands
! RS-232 Binary data
! 57.6k Baud
! 8 bits no parity; 2 stop bits
! DTR on OUTPUT
! DSR on ENTER
! Turn OFF XON/XOFF
! Global instrument addresses
! Default state of instrument
! Clear errors and status
!
!
!
!
!
!
!
!
!
!
!
!
!
!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents