L4451A 4-Channel Isolated D/A Converter with Waveform Memory 9
L4400 User’s Guide 229
Waveform Mode
Example: Downloading a waveform to memory and outputting waveform from
DACs
The following command segment downloads a 1000- point sine
waveform to memory and outputs the waveform from DAC channels 1 and 2.
The trace name is TEST_SINE.
TRACe:FUNCtion 1,SINusoid, TEST_SINE, 1000
SOURce:FUNCtion:TRACe TEST_SINE,(@1001,1002)
OUTPut:STATe ON,(@1001,1002)
SOURe:FUNCtion:ENABle ON,(@1001,1002)
Example: Downloading trace points to memory and outputting waveform from
DACs
The following command segment downloads seven trace points to memory
and output the waveform from DAC channels 1 and 2. The trace name is
"NEG_RAMP".
TRACe:DATA 1,NEG_RAMP, 1, .67, .33, 0, -.33, -.67, -1
SOURce:FUNCtion:TRACe NEG_RAMP,(@1001,1002)
OUTPut:STATe ON,(@1001,1002)
SOURe:FUNCtion:ENABle ON,(@1001,1002)
Example: Setting the amplitude of a waveform for offset and gain
The following commands set the offset to 5.25 and the gain to 1.5 on DAC
channels 1 and 2.
SOURce:FUNCtion:VOLTage:OFFSet 5.25,(@1001,1002)
SOURce:FUNCtion:VOLTage:GAIN 1.5,(@1001,1002)
Example: Setting cycle count for a waveform The following command
segments turn off the trace output mode on DAC channels 1 and 2, set the
cycle count to 100, then turn the trace output mode back on.
SOURce:FUNCtion:ENABle OFF,(@1001,1002)
SOURce:FUNCtion:TRACe:NCYCles 100,(@1001,1002)
SOURce:FUNCtion:ENABle ON,(@1001,1002)
Example: Deleting a waveform The following command deletes the trace
named TEST_WFORM from the instrument.
TRACe:DELete 1,TEST_WFORM