Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
learn:instrumentation:tutorials:analog-discovery-studio-digital-io [2019/06/24 22:10] – Arthur Brown | learn:instrumentation:tutorials:analog-discovery-studio-digital-io [2020/07/28 17:24] – Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Using the Digital I/O====== | + | ====== Using the Digital I/O (Page has Moved) |
- | {{: | + | <WRAP round important 660px> |
- | + | This guide has been replaced by [[learn/instrumentation/tutorials/waveforms-static-io/start]], and is slated | |
- | ===== Introduction ===== | + | |
- | This guide explains the use of the //Static I/O// instrument in WaveForms. This instrument is used to interact with a Test & Measurement Device' | + | |
- | ---- | + | |
- | ===== Prerequisites ===== | + | |
- | * A Digilent Test & Measurement Device with Digital Input/Output Channels | + | |
- | * A Computer with WaveForms Software Installed | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== 1. Opening the Static I/O ==== | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | === 1.1 === | + | |
- | Plug in the Test & Measurement Device, then start WaveForms | + | |
- | + | ||
- | If no device is connected | + | |
- | + | ||
- | **Note:** //" | + | |
- | + | ||
- | **Note:** //The Device Manager can be opened by clicking on the " | + | |
</ | </ | ||
- | <WRAP column half> | ||
- | {{ : | ||
- | </ | ||
- | </ | ||
- | ---- | ||
- | <WRAP group>< | ||
- | === 1.2 === | ||
- | Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **StaticI0** button to open the //Static I/O// instrument. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 1.3 === | ||
- | Once the //Static I/O// instrument opens, the window contains two rows of Bit I/O digital input and output ports with DIO15-DIO8 in the top row and DIO7-DIO0 in the bottom row all assigned to LED state indicators by default. | ||
- | </ | ||
- | <WRAP column half> | ||
- | {{ : | ||
- | </ | ||
- | </ | ||
- | ---- | ||
- | |||
- | ==== 2. Using the Static I/O ==== | ||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | //This section walks through setting up the // | ||
- | |||
- | **Note:** //This guide can be followed using a " | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 2.1 Software Display Setup === | ||
- | This demo does not require any hardware setup but relies on the //Logic Analyzer// and //Pattern Generator// tools in Waveforms. To set up these tools and view them simultaneously, | ||
- | </ | ||
- | <WRAP column half> | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.1 == | ||
- | Click on the Welcome page icon in the upper left corner of Waveforms | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.2 == | ||
- | Click the //Logic// tool | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.3 == | ||
- | Click on the Welcome page again | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.4 == | ||
- | Click the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.5 == | ||
- | Click the Docking Windows icon in the upper right corner of Waveforms | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.1.6 == | ||
- | Now, the Static I/O, Logic Analyzer, and Pattern Generator tools should all be open and viewed together in the same window with the Logic Analyzer in the top portion of the window, the Static I/O in the bottom left portion of the window, and the Pattern Generator in the bottom right portion of the window. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 2.2 Blink a Virtual LED === | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.1 == | ||
- | In the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.2 == | ||
- | In the "Add Signal" | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.3 == | ||
- | In the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.4 == | ||
- | In the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.5 == | ||
- | In the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.2.6 == | ||
- | In the //Static I/0// tool, observe DIO 0 flash at the 1 Hz clock rate set by the // | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 2.3 Toggle a Virtual Button === | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.3.1 == | ||
- | In the //Logic// tool window, click the "Click to Add channel" | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.3.2 == | ||
- | In the "Add Signal" | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.3.3 == | ||
- | In the //Static I/O// tool window, navigate to the DIO 1 box next to the flashing DIO 0 box. Click on the downward arrow, select " | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.3.4 == | ||
- | In the //Logic// tool window, click the " | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | == 2.3.5 == | ||
- | In the //Static I/O// tool, click on the DIO 1 button and observe the logic level of DIO 1 change from low to high in the //Logic// tool. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | ==== 3. Static I/O User Interface Overview ==== | ||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | //This section walks through the various configuration options for the //Static I/O// instrument. These configurations can be used to interact with and display digital signals and circuits either with the previously explored tools in Waveforms or with external digital circuits. However, the scope of this section will be limited to only configuration with brief application discussions.// | ||
- | </ | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.1 Group Bus Assignments === | ||
- | By default, the Static I/O tool opens with all the available DIO lines from your Test and Measurement Device in groups of 8, descending from left to right and top to bottom all configured as LED state indicators for each line. To change a particular group, click on the group configuration drop down menu located on the left of the group row. This menu includes: | ||
- | * Bit IO: (Input/ | ||
- | * Slider (Output) | ||
- | * Progress Bar (Input) | ||
- | * 7 Segment Display (Input) | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.1.1 Slider== | ||
- | Selecting " | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.1.2 Progress Bar== | ||
- | Selecting " | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.1.3 Seven Segment Display== | ||
- | Selecting "7 Segment" | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.2 Individual DIO Assignments === | ||
- | To change the assignment for an individual DIO rather than an entire group, click on the DIO drop down menu located in the upper left corner of the individual DIO window. This menu includes: | ||
- | * LED (input) | ||
- | * Button (input and output) | ||
- | * Switch (input and output) | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.2.1 LED== | ||
- | The LED input display is the default setting for all DIO lines. This displays the current state of the DIO line: red if logic high, grey if logic low. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.2.2 Button== | ||
- | Selecting " | ||
- | </ | ||
- | A {{ : | ||
- | B {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | ==3.2.3 Switch== | ||
- | Selecting " | ||
- | </ | ||
- | A {{ : | ||
- | B {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.3 File Menu === | ||
- | The File drop down menu has four options: | ||
- | * Open Project: opens a previously saved workspace | ||
- | * Save Project: saves the current workspace | ||
- | * Export: exports an image of the current Static I/O tool | ||
- | * Close StaticIO: closes the Static I/O tool | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.4 Control Menu === | ||
- | The Control drop down menu contains two options: | ||
- | * Run: begins the Static I/O tool operation (also accessible by pressing F5) | ||
- | * Stop: halts the Static I/O tool operation (also accessible by pressing F6) | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.5 View Menu === | ||
- | The View drop down menu allows the user to toggle on/off custom name text fields for each DIO line, seen at the bottom of the individual DIO line windows as seen in the picture to the right. Type in the text field to change the DIO line's custom name. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | |||
- | |||
- | <WRAP group> | ||
- | <WRAP column half> | ||
- | === 3.6 Window Menu === | ||
- | The Window drop down menu allows selection of: | ||
- | * Help menu (also accessible by pressing the F1 key) | ||
- | * Welcome page (Waveforms) | ||
- | * Any other Waveforms tool that has been opened from the Welcome page. | ||
- | </ | ||
- | {{ : | ||
- | </ | ||
- | ---- | ||
- | ==== 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 [[reference: | ||
- | |||
- | For technical support, please visit the [[https:// | ||
- | {{tag>tutorial analog-discovery-studio}} | + | {{tag>to-be-removed}} |