Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:guides:getting-started-with-raspberry-pi [2022/09/08 20:13] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:guides:getting-started-with-raspberry-pi [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Getting Started with Raspberry Pi and a Test and Measurement Device ====== | ||
| + | ~~TechArticle~~ | ||
| + | |||
| + | {{ reference: | ||
| + | |||
| + | The following guide presents how to set up a Raspberry Pi 4 to control Test and Measurement devices and by the end of the guide, WaveForms will be running on Raspberry Pi 4. In this guide, a so called " | ||
| + | ---- | ||
| + | |||
| + | ===== Inventory ===== | ||
| + | === Hardware === | ||
| + | <WRAP group> | ||
| + | * A Digilent Test and Measurement device | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[https:// | ||
| + | * A 5V 3A USB-C power supply | ||
| + | * A minimum 8GB microSD card (an adapter might be needed, if your computer doesn' | ||
| + | * A Computer connected to Wi-Fi | ||
| + | </ | ||
| + | |||
| + | **Note:** //If you plan to use your Raspberry Pi in another setup (with a display, or with Ethernet connection), | ||
| + | |||
| + | === Software on your PC === | ||
| + | <WRAP group> | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | </ | ||
| + | |||
| + | === Software on Raspberry Pi === | ||
| + | <WRAP group> | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | </ | ||
| + | |||
| + | **Note:** //These programs will going to be downloaded and installed on the device, later in this guide.// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Setting Up the Raspberry Pi ===== | ||
| + | |||
| + | <WRAP group> | ||
| + | To see more setup options for your Raspberry Pi, check this site: [[https:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | --> Raspberry Pi - " | ||
| + | <WRAP group>< | ||
| + | Insert the microSD card in your laptop, then download, install and open the [[https:// | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Reinsert the SD card into your PC. If you are working on Windows, you might be asked to format the SD card, but don't do that. Open the file manager, then open the only partition visible on your SD card: the **boot** partition. | ||
| + | |||
| + | First create a new file named **ssh** (without extension!) in the root directory. When the Raspberry Pi boots, it will look for this file and if it finds it, it will enable Secure Shell (SSH) connection. We will use this connection to send commands to the Raspberry Pi when it boots first. | ||
| + | |||
| + | Create another file named **wpa_supplicant.conf** (*.conf is the extension). Open this file with a text editor and copy the following lines in the file: | ||
| + | < | ||
| + | ctrl_interface=DIR=/ | ||
| + | update_config=1 | ||
| + | country=< | ||
| + | |||
| + | network={ | ||
| + | | ||
| + | | ||
| + | } | ||
| + | </ | ||
| + | Change the country code to fit your country, then set the SSID and the password of your Wi-Fi network before saving the file. This file will be used during the boot process of the Raspberry Pi to connect to the specified Wi-Fi network. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Insert the SD card in the Raspberry Pi, then power it up. Wait a bit (around 2-3 minutes) for the Raspberry Pi to connect to the network. On your PC, open a command prompt then display the Raspberry' | ||
| + | < | ||
| + | ping raspberrypi.local -4 | ||
| + | </ | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | On your PC, download, install and open [[https:// | ||
| + | |||
| + | Log in with the username: | ||
| + | < | ||
| + | pi | ||
| + | </ | ||
| + | and passphrase: | ||
| + | < | ||
| + | raspberry | ||
| + | </ | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Now you can send commands to your Raspberry Pi. First update and upgrade the installed packages with the commands: | ||
| + | < | ||
| + | sudo apt update | ||
| + | sudo apt upgrade -y | ||
| + | </ | ||
| + | When the upgrades are finished, open the settings of your Raspberry Pi with the command: | ||
| + | < | ||
| + | sudo raspi-config | ||
| + | </ | ||
| + | You should see a graphical interface with different settings. Select **Interface Options** (number 3 in the current version of the operating system) with the arrow keys and confirm with the enter key. Now select **VNC** (P3 in the current version), then select **Yes**. This will enable Virtual Network Computing (VNC) when the device boots. | ||
| + | |||
| + | Exit the configuration tool with the escape key, then reboot the device with the following command: | ||
| + | < | ||
| + | sudo reboot | ||
| + | </ | ||
| + | You can close the terminal emulator. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | On your PC, download, install and open a [[https:// | ||
| + | < | ||
| + | pi | ||
| + | </ | ||
| + | and password: | ||
| + | < | ||
| + | raspberry | ||
| + | </ | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | You should see now the " | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Installing WaveForms on Raspberry Pi ===== | ||
| + | <WRAP group>< | ||
| + | On your Raspberry Pi, open the [[https:// | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | Open **Downloads** folder with the file manager, then hit **F4** to open a terminal here. Install the downloaded packages with the following commands (don't forget to change the name of the files according to their version): | ||
| + | < | ||
| + | sudo dpkg -i digilent.adept.runtime_2.21.2-armhf.deb | ||
| + | sudo dpkg -i digilent.waveforms_3.14.3_armhf.deb | ||
| + | </ | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | ===== Using WaveForms on Raspberry Pi ===== | ||
| + | <WRAP group>< | ||
| + | Connect your Test and Measurement device to one of the USB ports of the Raspberry Pi (doesn' | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | On the Raspberry Pi, open WaveForms: the launcher can be found in **Programming** and in **Education**. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | |||
| + | <WRAP group>< | ||
| + | WaveForms should automatically recognize the connected Test and Measurement device. If not, the **Device Manager** can be opened from the **Settings** menu. | ||
| + | |||
| + | Now you have your Test and Measurement device connected to Raspberry Pi. You can use WaveForms on Raspberry Pi like on any other PC. For more guides about WaveForms, check: [[software: | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ===== Next Steps ===== | ||
| + | |||
| + | For more guides on how to use the Digilent Test and Measurement Device, return to the device' | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||

