Specifications
82 Using the DMM and ARB Chapter 4
Generating Custom
Waveforms From a Data
File
This is similar to generating a data type custom waveform using the
“Arb_Dl_Waveform_Data” action, except in this case the waveform data
comes from a data file using the “WaveformDataRead” action. The
following shows how to download custom waveform data from a file and
other pertinent information.
Downloading from a File
The following shows how the actions are used:
1. The “WaveformDataRead” action reads the data from a file and stores
it into its ‘Waveform” variable (at first run of the testplan only).
2. The data is then stored into the ‘Waveform’ variable of the
“Arb_Dl_Waveform_Data” action.
3. The data is downloaded into the Arb and output whenever the
“Arb_Select_Wave_By_Name” action selects the appropriate
waveform name.
To perform the correct operation, the following must take place:
• The “WaveformDataRead” action must be referenced to the data file
using the file name. Figure 4-13 shows how the file is referenced.
Normally, “WaveformDataRead” action reads the data file when the
testplan is first run (i.e., the System RunCount = 0). After that, the data
file will not be read.
• The waveform time/frequency must be set by the ‘SampleTime’
parameter in the “WaveformDataRead” action. Figure 4-13 shows
how to set the waveform time/frequency using the ‘SampleTime’
parameter.
• The ‘Waveform’ variable in the “Arb_Dl_Waveform_Data” action
must be referenced to the ‘Waveform’ variable in the
“WaveformDataRead” action using symbols. Figure 4-14 shows how
to create a symbol in the “WaveformDataRead” action and Figure 4-15
shows how to reference to the symbol in the
“Arb-Dl_Waveform_Data” action.
• The data in the file must be in such a format that each line is a data
point or segment of the waveforms. The following is a typical example
on how data is stored into the file:
0.0000000000
0.1000000000
0.2000000000
•
•
•
0.5000000000
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com