See the wiki for instructions on the project
- Install LabVIEW myRIO Toolkit 2019 (32-bit).
- Connect the myRIO via USB to host PC and find the device in Measurement and Automation Explorer (MAX) under
Remote Systems
. - Ensure that the current firmware version is
7.0.0f0
. If it is not, click theUpdate Firmware
button and install the latest firmware. - Ensure
Enable Secure Shell Serve (sshd)
is enabled.
- SFTP the FPGA bitfile from mahi-daq/misc to the myRIO device:
cd mahi-daq/misc
sftp [email protected]
cd /var/local/natinst
mkdir bitfiles
cd bitfiles
put NiFpga_MyRio1900Fpga60.lvbitx
chmod 777 NiFpga_MyRio1900Fpga60.lvbitx
- Download and install the NI ARM cross-compiler to
C:/dev/nilrt-arm
so that the directory containssysroots/
,relocate_sdk.py
, etc. - You must also install ninja (recommended to use chocolatey to run
choco install ninja
). - Once this is installed, you should be able to use the [nilrt-arm] kit with CMake Tools in VSCode to compile for the myRIO from Windows.
- Otherwise,
mahi-daq
ships with a CMake toolchain file, which can be used like so:
> cd mahi-daq
> mkdir build
> cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="../cmake/nilrt-arm-toolchain.cmake" -DCMAKE_BUILD_TYPE="Release"
> cmake --build .
- If you notice that the pendulum GUI is not receiving packets from the myRIO, you may need to update Windows firewall settings. For every instance of
pendulum-gui
, allow all settings as shown below: