Reference
:DIGital[1|2|3|4]:PATTern:DATA
Form
Parameters
Value Coupling
Range Coupling
Default
Description
Example
34
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. Each byte of pattern data is a character (0 or 1)
representing one bit of pattern data. The start address can be any bit location, 1 – <max
address>. <max address> is > 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 – 1024. 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 and the length of the data block must
match. (<start address> + <bit count>) must be ≤ (<max address> + 1).
:DIG1:PATT:DATA 1,16,#2160100000101010010
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
2: indicates that the length of the data length is two characters
16: indicates that data length is 16 bytes. (16 ASCII characters)
0100000101010010: 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:DATA? 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 "#1801000001".
PPG1600, PPG3000, & PPG3200 Pattern Generator User Manual
Need help?
Do you have a question about the PatternPro PPG1600 and is the answer not in the manual?