Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dsdb:pg [2016/06/01 22:26] – Sam K | dsdb: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 26: | Line 26: | ||
| **Creating an FPGA Target VI** | **Creating an FPGA Target VI** | ||
| - In the **Project Explorer** window, right-click **My Computer** and select **New»Targets and Devices**. | - 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 | + | - In the **Add Targets and Devices on My Computer** window, select **New target or device**, expand |
| - | - In the **Project Explorer** window, right-click | + | - In the **Project Explorer** window, right-click |
| - | - 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 **Project Explorer** window FPGA Target (DSDB, Digital Systems Development |
| - | - Expand **Push Buttons** and select **BTN0**. Click **Add** to move BTN0 to the New FPGA I/O pane. | + | {{ : |
| - | - Expand **LEDs** and select **LED0** and **LED2**. Click **Add** to move the LEDs to the New FPGA I/O pane. | + | |
| - | - 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> | + | |
| - | - In the **Project Explorer** window, right-click <wrap todo> | + | |
| - | - In the **Project Explorer** window | + | |
| - 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 | + | - In the **Project Explorer** window FPGA Target (DSDB, Digital Systems Development |
| - 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> | + | - Wire a false constant to the stop condition of the While Loop as shown below. |
| + | {{ : | ||
| - Save the VI as // | - Save the VI as // | ||
| Line 45: | Line 42: | ||
| - 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. |
| + | {{ : | ||
| - When the compilation finishes, click the **Stop Server** button to close the LabVIEW FPGA Compile Server. | - When the compilation finishes, click the **Stop Server** button to close the LabVIEW FPGA Compile Server. | ||
| - | - Click **OK** in the **Successful Compile Report** window. | + | - Click **Close** in the **Successful Compile Report** window |
| + | {{ : | ||
| - 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>> | ||
| + | - Click the **Search** tab. | ||
| + | - Search for ' | ||
| + | - Open one of the provided examples and follow the included instructions. | ||

