Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test-and-measurement:guides:waveforms-pattern-generator [2021/05/14 23:05] – ↷ Page moved from reference:test-and-measurement:guides:waveforms-pattern-generator to test-and-measurement:guides:waveforms-pattern-generator Arthur Browntest-and-measurement:guides:waveforms-pattern-generator [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 10: Line 10:
 ===== Prerequisites ===== ===== Prerequisites =====
   * A Digilent Test & Measurement Device with Digital Input/Output Channels:   * A Digilent Test & Measurement Device with Digital Input/Output Channels:
-    * [[reference:test-and-measurement:analog-discovery-pro-3x50:start|Analog Discovery Pro (ADP3450/ADP3250)]] +    * [[test-and-measurement:analog-discovery-pro-3x50:start|Analog Discovery Pro (ADP3450/ADP3250)]] 
-    * [[reference:test-and-measurement:analog-discovery-studio:start|Analog Discovery Studio]] +    * [[test-and-measurement:analog-discovery-studio:start|Analog Discovery Studio]] 
-    * [[reference:test-and-measurement:digital-discovery:start|Digital Discovery]] +    * [[test-and-measurement:digital-discovery:start|Digital Discovery]] 
-    * [[reference:test-and-measurement:analog-discovery-2:start|Analog Discovery 2]] +    * [[test-and-measurement:analog-discovery-2:start|Analog Discovery 2]] 
-    * [[reference:test-and-measurement:analog-discovery:start|Analog Discovery (Legacy)]]+    * [[test-and-measurement:analog-discovery:start|Analog Discovery (Legacy)]]
   * A Computer with WaveForms Software Installed   * A Computer with WaveForms Software Installed
  
Line 68: Line 68:
 On the left panel, select the "Click to Add channels" button (1 in image at right) or the green plus button ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}). The menu that pops up allows signals to be added as individual lines, a bus, a standard protocol, or a custom protocol. To add individual lines, select "Signal" (2) and use CTRL and/or SHIFT to select multiple lines. For now, select DIO 0 and click "Ok". Under the **Type** column, choose "Clock" from the drop-down menu and leave the other settings in their default state.  On the left panel, select the "Click to Add channels" button (1 in image at right) or the green plus button ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}). The menu that pops up allows signals to be added as individual lines, a bus, a standard protocol, or a custom protocol. To add individual lines, select "Signal" (2) and use CTRL and/or SHIFT to select multiple lines. For now, select DIO 0 and click "Ok". Under the **Type** column, choose "Clock" from the drop-down menu and leave the other settings in their default state. 
  
-Return to WaveForms' Welcome page by clicking on its tab at the top left of the screen and select //Logic//. Alternatively, press the green plus button next to "Welcome" in the tab to add the instrument (3). On the left panel, select the "Click to Add channels" button or the green plus button ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}). From "Signals" select DIO 0 and click "Ok". For a detailed tutorial about the //Logic Analyzer// instrument see [[reference:test-and-measurement:guides:waveforms-logic-analyzer]].+Return to WaveForms' Welcome page by clicking on its tab at the top left of the screen and select //Logic//. Alternatively, press the green plus button next to "Welcome" in the tab to add the instrument (3). On the left panel, select the "Click to Add channels" button or the green plus button ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}). From "Signals" select DIO 0 and click "Ok". For a detailed tutorial about the //Logic Analyzer// instrument see [[test-and-measurement:guides:waveforms-logic-analyzer]].
 </WRAP> </WRAP>
 <WRAP column half> <WRAP column half>
Line 86: Line 86:
 ---- ----
 ==== Note: Variable Digital Supplies ==== ==== Note: Variable Digital Supplies ====
-{{section>reference:test-and-measurement:guides:waveforms-digital-supplies&noheader}}+{{section>test-and-measurement:guides:waveforms-digital-supplies&noheader}}
 ==== Note: Analog Discovery Pro (ADP3450/ADP3250) Sample Rate ==== ==== Note: Analog Discovery Pro (ADP3450/ADP3250) Sample Rate ====
-{{section>reference:test-and-measurement:analog-discovery-pro-3x50:change-max-sample-rate&noheader}}+{{section>test-and-measurement:analog-discovery-pro-3x50:change-max-sample-rate&noheader}}
  
 ==== Note: Using Multiple Instruments ==== ==== 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 [[reference:test-and-measurement:guides:waveforms-cross-triggers]] guide.+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:guides:waveforms-cross-triggers]] guide.
  
 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. 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.
Line 110: Line 110:
 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 [[#pattern_signal_controls|Section 3.2]]), making it so the //Pattern Generator// plot always shows a single period of the pattern (if //continuous// is selected) or the entire pattern that will be generated (if a time period is selected).  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 [[#pattern_signal_controls|Section 3.2]]), making it so the //Pattern Generator// plot always shows a single period of the pattern (if //continuous// is selected) or the entire pattern that will be generated (if a time period is selected). 
  
-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 "continuous" mode this option is greyed out and set to "infinite".+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 "continuous" mode this option is greyed out and set to "infinite".
  
 </WRAP> </WRAP>
Line 122: Line 122:
 Starting from the top left, the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) and minus ({{learn:instrumentation:tutorials:analog-discovery-studio-pattern-generator:minus.png?nolink}}) buttons can be used to add or remove channels. Starting from the top left, the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) and minus ({{learn:instrumentation:tutorials:analog-discovery-studio-pattern-generator:minus.png?nolink}}) buttons can be used to add or remove channels.
  
-== 3.2.1 Control Types == +== 3.2.1 Types of Channels == 
-When you add a channel to the Pattern Generator by click on the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) symbol, you will notice that there are three options: //Signal//, //Bus//, and //ROM Logic//.  //Signal// lines are just that, the input signal, whereas //BUS// indicates that the I/O pin is a part of a data bus. //ROM Logic// allows you to change the status of an output based on the status of one or more input.  More information about //ROM Logic// can be found in section 3.3 below.  +When you add a channel to the Pattern Generator by click on the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) symbol, you will notice that there are three options: //Signal//, //Bus//, and //ROM Logic//.  //Signal// lines are just that, a one-bit signal, whereas //BUS// indicates that the I/O pin is a part of a data bus. //ROM Logic// allows you to change the status of an output based on the status of one or more inputs.  More information about //ROM Logic// can be found in section 3.3 below.  
  
 The Show icon ({{learn:instrumentation:tutorials:analog-discovery-studio-pattern-generator:show.png?nolink}}) selects which option columns are shown for each channel. The first four columns (**Output**, **Idle**, **Type**, and **Parameter1**) are available for every type of signal, while the last 2 columns are type-dependent.  The Show icon ({{learn:instrumentation:tutorials:analog-discovery-studio-pattern-generator:show.png?nolink}}) selects which option columns are shown for each channel. The first four columns (**Output**, **Idle**, **Type**, and **Parameter1**) are available for every type of signal, while the last 2 columns are type-dependent. 
Line 131: Line 131:
 <WRAP column half> <WRAP column half>
 {{reference:test-and-measurement:guides:romlogic.png?200|}} {{reference:test-and-measurement:guides:romlogic.png?200|}}
- 
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 163: Line 162:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
 +
 +=== 3.3 ROM Logic ===
  
 <WRAP group> <WRAP group>
 <WRAP column half> <WRAP column half>
-=== 3.3 ROM Logic === 
  
-When you add a channel to the Pattern Generator by click on the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) symbol, you will see the screen as shown to the right.  You can add or remove both input and output signals, or change the order.  When you add a signal to either the input or output, you can give the signal a name and select which of the DIO pins will be used for that input / output.  You can also adjust the frequency (adjustable from 100 mHz to 100 MHz of how often the logic is evaluated. 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 / pattern you want WaveForms to execute.  Note, an X in the Truth Table represents a "Don't Care" while 0 represents logic low or FALSE and a 1 represents logic high or TRUE.+=== 3.3.1 Parameters === 
 + 
 +When you add a channel to the Pattern Generator by clicking on the plus ({{:learn:instrumentation:tutorials:analog-discovery-studio-logic-analyzer:symbol_plus.png?nolink}}) symbol, you will see the screen as shown to the right.  You can add or remove both input and output signals, or change the order.  When you add a signal to either the input or output, you can give the signal a name and select which of the DIO pins will be used for that input or output.  You can also adjust the frequency (adjustable from 100 mHz to 100 MHz of how often the logic is evaluated.  
 </WRAP> </WRAP>
 <WRAP column half> <WRAP column half>
  
 {{reference:test-and-measurement:guides:romlogic2.png?400|}} {{reference:test-and-measurement:guides:romlogic2.png?400|}}
 +</WRAP>
 +</WRAP>
 +
 +<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.  Note, an X in the Truth Table represents a "Don't Care" while 0 represents logic low or FALSE and a 1 represents logic high or TRUE.
 +</WRAP>
 +<WRAP column half>
 +
 +{{:test-and-measurement:guides:truthtable.png?400|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 200: Line 216:
 ==== Next Steps ==== ==== Next Steps ====
  
-For more guides on how to use the Digilent Test & Measurement Device, return to the device's Resource Center, linked from the [[reference:test-and-measurement:start]] page of this wiki.+For more guides on how to use the Digilent Test & Measurement Device, return to the device's Resource Center, linked from the [[test-and-measurement:start]] page of this wiki.
  
-For more information on WaveForms visit the [[reference:software:waveforms:waveforms-3:reference-manual|WaveForms Reference Manual]]. +For more information on WaveForms visit the [[software:waveforms:waveforms-3:reference-manual|WaveForms Reference Manual]]. 
  
-For technical support, please visit the [[https://forum.digilentinc.com/forum/8-scopes-instruments/|Scopes and Instruments]] section of the Digilent Forums.+For technical support, please visit the [[https://forum.digilentinc.com/forum/8-test-and-measurement/|Test and Measurement]] section of the Digilent Forums.