A pattern generator is used to generate a user defined pattern of digital logic high/low signals or pulses. With the Analog Discovery 2‘s 16 digital channels (32 channels for the Electronics Explorer Board), you have multiple options for generating whatever digital pattern you choose, from a single signal to a full 32-bit bus.
Defining the pattern on each channel couldn’t be simpler. There are a number of preset patterns you can use, like a Johnson counter or a constant value. You can also custom define each channel with a user-defined pattern.
You can also define a logic truth table and use the digital channels as the inputs or outputs for said table. Simply map the input/output pins using the property tab…
…and then define the truth table under the truth table tab.
For a more complete tutorial, check out my Instructable.