Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:guides:waveforms-pattern-generator [2022/09/12 15:48] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:guides:waveforms-pattern-generator [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Using the Pattern Generator ====== | ||
| + | ~~TechArticle~~ | ||
| + | |||
| + | {{reference: | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | Digital Pattern Generators are used to create digital signals to stimulate a circuit or device. This guide explains the use of WaveForms' | ||
| + | ---- | ||
| + | ===== Prerequisites ===== | ||
| + | * A Digilent Test & Measurement Device with Digital Input/ | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * A Computer with WaveForms Software Installed | ||
| + | |||
| + | ---- | ||
| + | ===== Guide ===== | ||
| + | ==== 1. Opening the Pattern Generator==== | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | == 1.1 == | ||
| + | Plug in the Test & Measurement Device, then start WaveForms and make sure the device is connected. | ||
| + | |||
| + | If no device is connected to the host computer when WaveForms launches, the **Device Manager** will be launched. Make sure that the device is plugged in and turned on, at which point it will appear in the Device Manager' | ||
| + | |||
| + | **Note:** //" | ||
| + | |||
| + | **Note:** //The Device Manager can be opened by clicking on the " | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group>< | ||
| + | == 1.2 == | ||
| + | Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **Patterns** button to open the //Pattern Generator// instrument. | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 1.3 === | ||
| + | Once the //Pattern Generator// instrument opens, the window contains the output plot (1), the configuration panel (2) to left of the plot, and the control toolbar (3) at the top of the window. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | ==== 2. Using the Pattern Generator==== | ||
| + | //This section walks through setting up the //Pattern Generator// to generate a signal on a single channel.// | ||
| + | |||
| + | <WRAP round important 660px> | ||
| + | ==Important== | ||
| + | When using the Pattern Generator with real hardware, note that the digital channels are not meant to be used as sources for large loads. Don't connect much more than a single LED and resistor directly to the channel. If larger loads need to be driven, the digital input/ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 2.1 Software Setup === | ||
| + | On the left panel, select the "Click to Add channels" | ||
| + | |||
| + | Return to WaveForms' | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 2.2 Generate Data === | ||
| + | In the //Pattern Generator// instrument, click the Run button ({{: | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | ==== Note: Variable Digital Supplies ==== | ||
| + | {{section> | ||
| + | ==== Note: Analog Discovery Pro (ADP3450/ | ||
| + | {{section> | ||
| + | |||
| + | ==== Note: Using Multiple Instruments ==== | ||
| + | The //Pattern Generator// instrument can be used with other WaveForms instruments. Using multiple instuments at the same time is helpful in a wide variety of situations. One example would be to use the //Protocol Analyzer// to configure a device under test, the //Pattern Generator// or //Protocol Analyzer// to stimulate the device, and capturing the result in the //Logic Analyzer//, all at the same time. More information on how instruments can be operated together can be found in the [[test-and-measurement: | ||
| + | |||
| + | It should be noted that while multiple instruments can use any Digital Input pin, and those pins can be used as Digital Outputs, no more than one instrument can control a Digital Output pin at a time. WaveForms accounts for this by disabling instruments using a shared output, or by displaying a message stating that a shared output is currently used by a different instrument. | ||
| + | ---- | ||
| + | ==== 3. Pattern Generator User Interface Overview ==== | ||
| + | //This section walks through the wide variety of controls and features available in the //Pattern Generator// instrument// | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 3.1 Control Interface === | ||
| + | The bar near the top contains several options for controlling the pattern generator. | ||
| + | |||
| + | The Run/Stop button starts and stops the pattern generator. | ||
| + | |||
| + | The **Trigger** drop-down allows for the selection of trigger sources from other instruments. /* For more information, | ||
| + | |||
| + | The **Wait** drop-down allows for the configuration of a delay after pressing Run (or the trigger event occurs). The value can be selected from the menu or typed in. If typing, be sure to enter a unit (ns, us, s, ms, ks, Ms) to avoid defaulting to the wrong order of magnitude. | ||
| + | |||
| + | The **Run** drop-down determines the period of time the pattern generator will generate a pattern for. It also automatically changes the horizontal time axis in the plot (unless manually overridden as shown in [[# | ||
| + | |||
| + | The **Repeat** drop-down is available when the //Pattern Generator// is set to run for a finite amount of time and will cause the instrument to generate the pattern the set number of times. In " | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 3.2 Pattern Signal Controls === | ||
| + | Starting from the top left, the plus ({{: | ||
| + | |||
| + | == 3.2.1 Types of Channels == | ||
| + | When you add a channel to the Pattern Generator by click on the plus ({{: | ||
| + | |||
| + | The Show icon ({{learn: | ||
| + | |||
| + | The selections available in **Parameter1** through **Parameter3** menus will change depending on the selection in the **Type**. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{reference: | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | **Output** switches between four output behaviors: | ||
| + | |||
| + | * //PP (Push-Pull):// | ||
| + | * //OD (Open Drain):// possible output values are 0 and Z. Bus values are computed by treating Z as 1. Requires a pull-up resistor | ||
| + | * //OS (Open Source):// possible output values are Z and 1. Bus values are computed by treating Z as 0. Requires a pull-down resistor | ||
| + | * //TS (Tri-State):// | ||
| + | |||
| + | **Idle** determines if the line is set the //initial// value, //0//, //1//, or //Z// when no signal is being driven through | ||
| + | |||
| + | **Type** determines the output types. Since the **Parameter** columns depend on **Type**, they will be described alongside the signal type: | ||
| + | |||
| + | (NOTE: Not all parameters are used for all signal types.) | ||
| + | * // | ||
| + | * //Clock:// generates a clock signal. The frequency is set by **Parameter1**, | ||
| + | * //Pulse:// generates a pulse signal. **Parameter1** determines if the signal is active high or low, the number of data points to hold the signal low is set by **Parameter2**, | ||
| + | * //Random:// generates a random pattern of outputs at a frequency determined by **Parameter1**. | ||
| + | * //Custom:// generates a custom pattern with frequency determined by **Parameter1**. The contents of the custom signal can be loaded from a file or set by hand by clicking the Parameter Editor button (see below) | ||
| + | |||
| + | Each signal can be further modified by clicking the Parameter Editor button ({{learn: | ||
| + | |||
| + | Use the Properties button ({{learn: | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | === 3.3 ROM Logic === | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 3.3.1 Parameters === | ||
| + | |||
| + | When you add a channel to the Pattern Generator by clicking on the plus ({{: | ||
| + | |||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{reference: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | |||
| + | === 3.3.2 Truth Table === | ||
| + | |||
| + | Once you have all of your inputs and outputs added to the table, you can click on the TRUTH TABLE button to create the logic or pattern you want WaveForms to execute. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | |||
| + | {{: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | === 3.4 Plot Controls === | ||
| + | If the plot needs to be set to show a specific point in the pattern, this can be achieved using the drop-down menus directly below the control bar. The drop-down with the word " | ||
| + | |||
| + | The **Show** drop-down will determine how much time per division to display. | ||
| + | |||
| + | The **From** drop-down will determine what the start point will be on the plot. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{learn: | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP group> | ||
| + | === 3.5 Menu Bar === | ||
| + | The **File** menu, in the menu bar at the top of the Pattern Generator instrument, allows the user to save and load Pattern Generator instrument configurations and export an image of the created Patterns, or export the data points in .txt, .csv or .tdms formats. A new Pattern Generator instrument can be opened from here with the New Patterns menu point cloning the current patterns or opening a blank instrument. | ||
| + | |||
| + | The **Control** menu exposes the same functionality as the Run and Stop buttons, and lists hotkeys for the buttons. | ||
| + | |||
| + | The **Window** menu provides a fast way to switch to other tabs open in WaveForms. | ||
| + | |||
| + | </ | ||
| + | ==== Next Steps ==== | ||
| + | |||
| + | For more guides on how to use the Digilent Test & Measurement Device, return to the device' | ||
| + | |||
| + | For more information on WaveForms visit the [[software: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||

