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
dsdb:pg [2016/06/01 22:11] – Sam Kdsdb:pg [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 9: Line 9:
 ====== Prerequisites ====== ====== Prerequisites ======
 ===Hardware=== ===Hardware===
-  * **SDB**+  * **DSDB**
 ===Software=== ===Software===
-  * LabVIEW 2015 or newer+  * LabVIEW 2015 SP1 or newer
   * LabVIEW FPGA   * LabVIEW FPGA
   * NI Xilinx Tools   * NI Xilinx Tools
Line 19: Line 19:
 To begin programming with LabVIEW, connect the USB cable to the DSDB, apply power to the board, and move the power switch to the ON position. To begin programming with LabVIEW, connect the USB cable to the DSDB, apply power to the board, and move the power switch to the ON position.
  
 +**Creating a Project**
   - Launch LabVIEW.   - Launch LabVIEW.
-  - In the Getting Started window, click Empty Project. The new project opens in the Project Explorer window. +  - In the **Getting Started** window, click **Empty Project**. The new project opens in the **Project Explorer** window. 
-  - Save the project as **FPGA_Design.lvproj**. +  - Save the project as //FPGA_Design.lvproj//. 
-  - In the Project Explorer window, right-click My Computer and select New»Targets and Devices. + 
-  - In the Add Targets and Devices on My Computer window, select New target or device, expand <wrap todo>ELVIS</wrap>, and highlight <wrap todo>DSDB</wrap>. Click OK. The target is discovered and the target and target properties are loaded into the project tree. +**Creating an FPGA Target VI** 
-  - In the Project Explorer window, right-click <wrap todo>FPGA Target (Board1, DE FPGA Board)</wrap> and select New»FPGA I/O. The New FPGA I/O window opens. +  - In the **Project Explorer** window, right-click **My Computer** and select **New»Targets and Devices**. 
-  - In the Available Resources pane, expand Slide Switches and select SW0. Click Add to move SW0 to the New FPGA I/O pane. This adds this FPGA resource to the project. +  - In the **Add Targets and Devices on My Computer** window, select **New target or device**, expand **Digilent**, and highlight **Digital Systems Development Board**. Click OK. The target is discovered and the target and target properties are loaded into the project tree. 
-  - Expand Push Buttons and select BTN0. Click Add to move BTN0 to the New FPGA I/O pane. +  - In the **Project Explorer** window, right-click **FPGA Target (DSDB, Digital Systems Development Board)**, and select **New»VI**. A blank VI opens. Select the block diagram window. 
-  - Expand LEDs and select LED0 and LED2. Click Add to move the LEDs to the New FPGA I/O pane. +  - In the **Project Explorer** window FPGA Target (DSDB, Digital Systems Development Board) tree view, select **SW0** and **LED0** and drag them onto the block diagram as shown in the image below. 
-  - Click OK. Notice that the selected FPGA resources were added to the FPGA Target tree in the Project Explorer window as shown in <wrap todo>Figure 1.1 </wrap>. +{{ :dsdb:dropswo.png?600 |}}
-  - In the Project Explorer window, right-click <wrap todo>FPGA Target (Board1, DE FPGA Board)</wrap>, and select New»VI. A blank VI opens. Select the block diagram window. +
-  - In the Project Explorer window <wrap todo>FPGA Target (Board1, DE FPGA Board)</wrap> tree view, select SW0 and LED0 and drag them onto the block diagram as shown in <wrap todo>Figure 1.1 </wrap>.+
   - In the LabVIEW block diagram, wire SW0 output to the LED0 input.   - In the LabVIEW block diagram, wire SW0 output to the LED0 input.
-  - In the Project Explorer window <wrap todo>FPGA Target (Board1, DE FPGA Board)</wrap> tree view, select BTN0 and LED2 and drag them onto the block diagram.+  - In the **Project Explorer** window FPGA Target (DSDB, Digital Systems Development Board) tree view, select **BTN0** and **LED2** and drag them onto the block diagram.
   - In the LabVIEW block diagram, wire BTN0 output to the LED2 input.   - In the LabVIEW block diagram, wire BTN0 output to the LED2 input.
   - Add a While Loop around the resources.   - Add a While Loop around the resources.
-  - Wire a false constant to the stop condition of the While Loop. \\ <wrap todo>Figure 1.2</wrap> +  - Wire a false constant to the stop condition of the While Loop as shown below. 
-  - Save the VI as **FPGA_Design.vi**.+{{ :dsdb:blockdiag.png?600 |}} 
 +  - Save the VI as //FPGA_Design.vi//.
  
-**Running the FGPA VI**+**Running the FPGA VI**
   - Verify that the USB cable is connected to the DSDB and host PC, and the power switch is moved to the ON position.   - Verify that the USB cable is connected to the DSDB and host PC, and the power switch is moved to the ON position.
   - Open the front panel of FPGA_Design.vi.   - Open the front panel of FPGA_Design.vi.
-  - Click the Run button to run the VI. +  - Click the **Run** button to run the VI. 
-  - The application compiles VHDL code and generates a bitstream file that is downloaded into the FPGA configuration storage. The Generating Intermediate Files window opens and displays the compilation progress. The LabVIEW FPGA Compile Server window opens and runs. The compilation takes several minutes.  +  - The application compiles VHDL code and generates a bitstream file that is downloaded into the FPGA configuration storage. The **Generating Intermediate Files** window opens and displays the compilation progress. The **LabVIEW FPGA Compile Server** window opens and runs. Choose compile locally. The compilation takes several minutes. See an image of the compile server window below. 
-  - When the compilation finishes, click the Stop Server button to close the LabVIEW FPGA Compile Server. +{{ :dsdb:compileserver.png?600 |}}  
-  - Click OK in the Successful Compile Report window.+  - When the compilation finishes, click the **Stop Server** button to close the LabVIEW FPGA Compile Server. 
 +  - Click **Close** in the **Successful Compile Report** window as shown in the image below. 
 +{{ :dsdb:compilationsuccess.png?600 |}}
   - The application is running on the FPGA board at this time.   - The application is running on the FPGA board at this time.
   - Move switch SW0 up and down; LED0 should correspondingly light and turn off.   - Move switch SW0 up and down; LED0 should correspondingly light and turn off.
   - Press button BTN0; LED2 should correspondingly light and turn off.   - Press button BTN0; LED2 should correspondingly light and turn off.
 +
 +More DSDB examples can be found in the LabVIEW Example Finder.
 +  - In LabVIEW Click **Help>>Find Examples**.
 +  - Click the **Search** tab.
 +  - Search for 'dsdb'.
 +  - Open one of the provided examples and follow the included instructions.