146
Chapter 5 Remote Interface Reference
Digital I/O Commands
5
SOURce:DIGital:TRACe
[:DATA] <sys_mem_name>,<block_data>
This command loads a memory block with data. The sys_mem_name
parameter must have been previously defined. The block_data is in the
form: <#digits><length><block>, where:
•
<#digits> decides how many decimal digits are used to define
<length>;
•
<length> decides how many bytes are to be transferred in <block>;
•
<block> contains the actual data to be transferred. <block> may
contain from 1 to 2048 bytes.
SOURce:DIGital:DATA
[:<BYTE|WORD|LWORD>]:TRACe <port>,<sys_mem_name>
This command writes a block of data, stored in a memory location, to the
specified port. The memory location must have been defined using the
SOURCe:DIGital:TRACe:DEFine command and the data written to the
memory location using the SOURCe:DIGital:TRACe command.
SENSe:DIGital:DATA
[:<BYTE|WORD|LWORD>]:TRACe <port>,<sys_mem_name>
This command reads a block of data from a digital I/O port and puts the
data in memory. The port parameter is in the form snn, where s is the
slot number and nn is the first channel on the digital port. The port
parameter is plug-in module dependent. Valid port numbers for each
plug-in module are shown beginning on page 70.
The BYTE, WORD, or LWORD forms of this command specify 8-, 16-, and 32-
bit operations, respectively. If omitted, BYTE is assumed.
SENSe:DIGital
:TRACE[:DATA]? <sys_mem_name>
This query returns a block of data from the specified memory location.
the data is returned in the form: <#digits><length><block>, where:
•
<#digits> decides how many decimal digits are used to define
<length>;
•
<length> decides how many bytes are to be transferred in <block>;
•
<block> contains the actual data to be transferred. <block> may
contain from 1 to 2048 bytes.