GPIB Device Simulator EPROM
2
© National Instruments Corp.
Data Formats
Waveform Format
The Simulator returns a 128 point waveform in either ASCII or binary.
ASCII waveforms are preceded by the header CURVE. Binary waveforms
are preceded by a pound sign (#) and the number of bytes that are in the
waveform. All waveforms are terminated by a line feed <
LF
> character.
Floating Point ASCII (Default)
CURVE<space>num0,num1,...,num127<LF>
8-bit Unsigned Binary
#3128<Byte 0><Byte 1>...Byte<127><LF>
16-bit Signed Binary
#3256<MSB 0><LSB 0><MSB 1><LSB 1>...<MSB 127><LSB
127><LF>
Floating-Point Number Format
[+][-]1.2345E[+][-]0
Simulator Commands
The Simulator uses SCPI-like commands. The commands are shown in long
form; however, the Simulator only accepts the short form of the command.
In other words, only send the part of the command that is in uppercase
characters. You can send multiple commands to the Simulator by separating
them with a semicolon (;).
Address Command
SADDRess primary, secondary
Sets the address (power-on
default – switch setting)
Example :
SADDR 2
Set the address to 2
SADDR 3, 4
Set the primary address to 3
and the secondary address to 4