Using the Digital to Analog Converter (DAC)
2–50
VX4101A MultiPaq Instrument User Manual
Generating Repetitive Waveforms
This procedure shows you how to generate the same waveforms as in the
previous example, with continuous output, at a repetition frequency of 50 Hz.
As before, you will use Numeric Array Lists.
Perform the following steps:
1. Select the DAC with the following command:
INST:SEL DAC
2. Enter the following command to set the number of data points used in the
waveforms:
TRACe:POINts 32
3. Enter the next command to set the sample rate for the waveforms:
TRACe:SRATe 2000
4. Enter the following command to set the repeat frequency of the waveforms:
TRACe:RFR 50
This command will repeat the waveforms at a repeat frequency of 50 Hz.
5. Enter the following command to create a Ramp waveform on Channel one:
TRACe 1,0,.625,1.25,1.875,2.5,3.125,3.75,4.375,5,5.625,6.25,
6.875,7.5,8.125,8.75,9.375,10,0,.625,1.25,1.875,2.5,3.125,3.7
5,4.375,5,5.625,6.25,6.875,7.5,8.125,8.75,9.375,10
6. Enter the next command to create a Triangle waveform on Channel two:
TRACe 2,1,0,.625,1.25,1.875,2.5,3.125,3.75,4.375,5,4.375,
3.75,3.125,2.5,1.875,1.25,.625,0,-.625,-1.25,-1.875,-2.5,-3.1
25,-3.75,-4.37,-5,-4.375,-3.75,-3.125,-2.5,-1.875,-1.25,-.625
7. Enter the following two commands to create a 500Hz Square wave on
Channel three:
TRACe 3,(1:2,5:6,9:10,13:14,17:18,21:22,25:26,29:30),5
TRACe 3,(3:4,7:8,11:12,15:16,19:20,23:24,27:28,31:32),-5
8. Enter the following command to create a 250Hz Square wave on Channel
eight:
TRACe 8,1,0,0,0,0,5,5,5,5,0,0,0,0,5,5,5,5,0,0,0,0,5,5,5,5,0,
0,0,0,5,5,5,5
Programming Example