3152B User Manual
Publication No. 980935 Rev. A
5-112 Programming Reference
EADS North America Test and Services
Query only. This query will interrogate the instrument for its serial number. The serial number is programmed
to a secure location in the flash memory and cannot be modified by the user.
Response
The generator will return its serial number in a format similar to the following: 000000451 (10 characters
maximum).
SMEMory {WRITe|READ }(?)
HS Syntax: 1200A<1|2>(?)
Description
Programs read and write switches for the 3152B shared memory block. Shared memory transfer is the fastest
way to get waveforms into the 3152B. In shared memory mode, the 3152B's CPU disconnects from the
waveform memory and passes access to the VXIbus. The internal data bus is connected directly to the
VXIbus, and data is downloaded into the memory in binary blocks using A24 memory space. Byte and bit
order are the same as with the Arbitrary Block transfers as described in the Arbitrary Waveform Commands
section. After the data is loaded into the instrument, control is returned to the CPU. In shared memory mode,
the 3152B’s memory acts similar to Direct Memory Access (DMA). The instrument has to be told when to
receive data, send data, surrender or gain control. The 3152B has an auto-increment address counter and
therefore, the slot 0 controller must define the base address for both write and read cycles.
Parameters
Name
Type
Default
Description
WRITe
Discrete
EXT
Will prepare the shared memory to accept data from the
backplane data bus. Data will not be shared before this
function is turned on using smem 1.
READ
Discrete
Will prepare the shared memory to place data on the
backplane data bus. Data will not be shared before this
function is turned on using smem 1.
Response
The 3152B returns WRIT or READ depending on the selected shared memory setting.
SMEMory {OFF|ON|0|1}(?)
HS Syntax: 1210A<0|1>(?)
Description
Use this command to toggle the shared memory function on and off. Use smem:mode writ to prepare the
instrument for DMA data load from the backplane data bus.
Parameters
Range
Type
Default
Description
0-1
Discrete
1
Toggles the shared memory function on and off. When
place in on position, the instrument cannot accept normal
data until the data transfer has been completed.
Programming examples are given in the driver code.
Response
The 3152B returns 0, or 1 depending on the current shared memory setting.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com