In this document, we will walk you through the setup, transfer of files, and the use of a Python program on NI ELVIS III.The NI ELVIS III solution for project-based learning can be programmed with python to help students or educators who are familiar with Python syntax to rapidly acquire measurements using common SSH clients. Attached there are a total of 18 examples included which illustrate the use of the NI ELVIS III helper library, various IO types, and the ability to record data in CSV files. The purpose of these examples is to introduce you to how to setup NI ELVIS to be programmed with Python, and act as a starting point for anyone to leverage Python as needed for acquisition.
Note: The IP Address can be found on the display of the NI ELVIS III. Press BUTTON 0 until the IP address appears. Enter the IP address from the display.
4. Set up Time Configuration on the NI ELVIS III configuration website
Configure PuTTY or another client as follows:
opkg install python
opkg install python-pip
pip install nifpga
pip install pyvisa
Open PuTTY, connect to NI ELVIS III as done in the previous step, and install git on the NI ELVIS III by running the following command:
opkg install git
Download the NI ELVIS III Python helper livrary and Python Examples from GitHub by running the following command
git clone https://github.com/ni/NI-ELVIS-III-Python-Examples.git
NI ELVIS III Python examples can now be found in the /home/admin directory on NI ELVIS III
Prefer to download a ZIP of the NI ELVIS III Python examples and move it using SFTP to the NI ELVIS? Follow this link for instructions.
The examples available for NI ELVIS in Python include:
AIIRQ (Analog Interrupt)
ButtonIRQ (Button Interrupt)
DIIRQ (Digital Interrupt)
TimerIRQ (Timer Interrupt)
Teach Students How to Innovate
Solutions for Engineering Curricula
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.