Digital[1|2|3|4]:Pattern:hdata - Tektronix PatternPro PPG1600 User Manual

Pattern generator
Table of Contents

Advertisement

:DIGital[1|2|3|4]:PATTern:HDATa

Form
Parameters
Value Coupling
Range Coupling
Default
Description
Example
PPG1600, PPG3000, & PPG3200 Pattern Generator User Manual
Set & Query
<start address>,<bit count>,<data>
<start address> is numeric, and is the bit number in pattern data memory of the first bit to write.
<bit count> is the number of bits to write into pattern data memory.
<data> is an arbitrary block of program data as defined in IEEE-488.2-1992, section 7.7.6.2. It
starts with a "#" character, followed by a single character representing the length of the length,
then 1 to 5 characters specifying the length as a decimal number, then the program data.
None
None
Default data is a 1 in position 1, all other bits are 0.
Programs the pattern data memory using hexadecimal character format. Each byte of pattern
data is a hexadecimal character (0-9, A-F or a-f) representing four bits of pattern data. The
start address can be any bit location, 1 – <max address>. <max address> is 4,194,304 for
one-channel instruments and 2,097,152 for a two-channel and four-channel instruments. The
bit count can be any number 1 – 4096. The entire pattern data memory is accessible for reads
or writes, even outside the range of the current pattern length setting.
The bit count parameter must be equal to 4 times the length of the data block or up to 3 bits
fewer. If it is fewer, then the extra bits in the last data byte are ignored. (<start address> +
<bit count>) must be ≤ (<max address> + 1).
:DIG1:PATT:HDAT 1,16,#144152
This command does the following:
Starts loading the Ch 1 data into bit location 1.
Specifies that 16 bits of data will be loaded.
In the <data>:
#: signifies the beginning of the block
1: indicates that the length of the data length is one character
4: indicates that data length is 4 bytes. (4 ASCII characters)
4152: is the character representation of the data
Thus, bits 1 through 16 in the channel 1 pattern data memory will be set to 0100000101010010.
:DIG1:PATT:HDAT? 1,8
This query reads 8 bits of channel 1 pattern data starting from address 1. Given the above
pattern data memory contents, the response would be "#1241".
Note that if the query requests a number of bits that is not a multiple of 4, some bits in the last
byte will not be meaningful, and will be 0.
Reference
35

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PatternPro PPG1600 and is the answer not in the manual?

Table of Contents