Measurement Computing DAC488 v.1 User Manual
Page 68

62 DAC488 Commands
DAC488 User’s Manual
EXAMPLE 4: Using the Waveform Control mode.
PRINT#1,"CLEAR09"
Line 1: Reset the DAC488.
PRINT#1,"OUTPUT09;C3 P1
F0,2 G1 N0 L0 I2000 X"
Line 2: Select Waveform Control mode, select port 1, define a buffer with the
first location=0 and the size=2, enable port 1 to trigger on GET, set number
of cycles to continuous, set location pointer to 0 (first location), set time
interval between points to 2 seconds.
PRINT#1,"OUTPUT09;B1,1
X B2,4 X"
Line 3: Select
±
1 volt range, 1 volt for first point, select
±
5 volt range, 4 volts
for second point.
PRINT#1,"OUTPUT09;L0X"
Line 4: Set the location pointer back to 0 (first location). This is done so that
when the DAC488 is triggered, it will start the sequence with the value in
location 0. The location pointer is automatically incremented whenever a
voltage value is sent to the DAC488 internal buffer using the Buffer Data
(Brng,volts) command.
PRINT#1,"TRIGGER"
Line 5: Trigger the DAC488. The DAC488 will output 1 volt, pause for 2
seconds, output 4 volts, pause for 2 seconds, then repeat this sequence
indefinitely or until it receives another Control Mode (Cn) command.