
8 - 22
8
Example:
An 8 point sine wave down loaded into wave 2, address 48.
WVFM:WAVE 2;MEM 48,#40016
binary_data
\n
Where
binary_data
are the following values as bytes sent to the GPIB or
RS-232.
|128| 0|218|129|255|255|218|129|128| 0|37|126| 0| 0| 37|126|
The complete command as bytes in memory would look like the following:
|'W'|'V'|'F'|'M'|':'|'W'|'A'|'V'|'E'|' '|'2'|';'|'M'|'E'|
|'M'|' '|'4'|'8'|','|'#'|'4'|'0'|'0'|'1'|'6'|128| 0 |218|
|129|255|255|218|129|128| 0 | 37|126| 0 | 0 | 37|126| 10|
In
BASIC
A$="WVFM:WAVE 2;MEM 48,#40016"+CHR$(128)+CHR$(0)
+CHR$(218)+CHR$(129)+CHR$(255)+CHR$(255)
+CHR$(218)+CHR$(129)+CHR$(128)+CHR$(0)+CHR$(37)+CHR$(126)
+CHR$(0)+CHR$(0)+CHR$(37)+CHR$(126)+CHR$(10)
In
C
{
int i;
char wvfm_buffer[100];
char data[16]= {128,0,218,129,255,255,218,129,128,0,37,126,0, 0,37,126}
sprintf(wvfm_buffer,"WVFM:WAVE 2;MEM 48,#40016");
for(i=0; i < 16; i++)
wvfm_buffer[i+25] = data[i]; /* 25 bytes in header */
wvfm_buffer[16+25] = '\n'; /* end of block */
}
Chapter 8 Advanced Remote Operation
Waveform Memory Format -
Example
Содержание 2711A
Страница 9: ...1 1 1 Quick Start 1...
Страница 19: ...About Arbitrary Waveforms 2...
Страница 20: ...12 1 2 About Arbitrary Waveforms 2...
Страница 26: ...Front Panel Menu Operation 3...
Страница 27: ...3 1 3 Front Panel Menu Operation 3...
Страница 34: ...Waveform Creation System 4...
Страница 35: ...14 1 4 Waveform Creation System 4...
Страница 39: ...Multi Instrument Operation 5...
Страница 40: ...5 1 5 Multi Instrument Operation 5...
Страница 45: ...5 6 5...
Страница 46: ...Performance Verification 6...
Страница 47: ...6 1 6 Performance Verification 6...
Страница 51: ...7 1 7 Remote Interface Operation 7...
Страница 68: ...7 18 7...
Страница 69: ...8 1 8 Advanced Remote Operation 8...