Tektronix AFG2021 Programmer's Manual page 141

Arbitrary function generator
Hide thumbs Also See for AFG2021:
Table of Contents

Advertisement

AFG2021 Arbitrary Function Generator Programmer Manual
For i = 500 To 799 'Part of High Level (800 Points) Data =
16382 High = Int(Data / 256) Low = Data - (High * 256)
wave(2 * i) = High
wave(2 * i + 1) = Low
Next i
For i = 800 To 999 'Trailing Edge (200 Points)
Data = (1000 - i) * Int(16382 / 200)
High = Int(Data / 256)
Low = Data - (High * 256)
wave(2 * i) = High
wave(2 * i + 1) = Low
Next i
For i = 1000 To 1999 'Part of Low Level (1000 Points)
Data = 0
High = Int(Data / 256)
Low = Data - (High * 256)
wave(2 * i) = High
wave(2 * i + 1) = Low
Next i
'
'Transfer waveform
' Transfer arbitrary block data to edit memory
'
Tvc1.SendEndEnabled = False
Tvc1.WriteString ("TRACE:DATA EMEMORY,#44000")
Programming Examples
4-3

Advertisement

Table of Contents
loading

Table of Contents