8 - 21
8
Example:
An 8 point positive Ramp down loaded into wave 1, address 0.
WVFM:WAVE 1;MEM 0,#40016
binary_data
\n
Where
binary_data
are the following values as bytes sent to the GPIB or
RS-232.
|128|0|146|73|164|146|182|219|201|36|219|109|237|182|255|255|
The complete command as bytes in memory would look like the following:
|'W'|'V'|'F'|'M'|':'|'W'|'A'|'V'|'E'|' '|'1'|';'|'M'|
|'E'|'M'|' '|'0'|','|'#'|'4'|'0'|'0'|'1'|'6'|128| 0 |
|146| 73|164|146|182|219|201| 36|219|109|237|182|
|255|255| 10|
Where |'A'| represents one byte in memory containing the character 'A' (i.e the
value ASCII(65)) and |219| represents one byte in memory whose value is 219.
Therefore: |'A'| and |65| are equal in value.
In
QuickBASIC
A$= "WVFM:WAVE 1;MEM 0,#40016"+CHR$(128)+CHR$(0)
+CHR$(146)+CHR$(73)+CHR$(164)+CHR$(146)
+CHR$(182)+CHR$(219)+CHR$(201)+CHR$(36)
+CHR$(219)+CHR$(109)+CHR$(237)+CHR$(182)
+CHR$(255)+CHR$(255)+CHR$(10)
In
C
{
int i;
char wvfm_buffer[100];
char data[16]= {128,0,146,73,164,146,182,219,201,36,219,109,237,182,255,255}
sprintf(wvfm_buffer,"WVFM:WAVE 1;MEM 0,#40016");
for(i=0; i < 16; i++)
wvfm_buffer[i+24] = data[i]; /* 24 bytes in header */
wvfm_buffer[16+24] = '\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...