This has the LabVIEW (and example) code for Robotics class in 2021. To use this you will need to install Python3 of the same bitness as the LabVIEW install on your machine and a few libraries
- pip3 install pyserial
- pip3 install paramiko (for SSH option)
- Make sure you have just a vanilla python install (not anaconda, homebrew, etc)
There are a few useful things in this code:
- LabVIEW code that can save and read files on SPIKE Prime
- A REPL for SPIKE Prime to test out code (or save it)
- example code on SPIKE (under Browser)
- Milan's protocol for the WIO Terminal
- Browse files on SPIKE (Browser)
- Plot data coming over the console (Explorer)
- Save console log files for post-processsing
FAQ:
- Where do I get LabVIEW? It is free here - https://www.ni.com/en-us/support/downloads/software-products/download.labview-community.html#370001 (make sure to select the latest verison and the right operating system). You will also need to install NIVISA here - https://www.ni.com/da-dk/support/downloads/drivers/download.ni-visa.html#460225
- I am on Big Sur and LabVIEW is not working - open the Terminal and copy paste each of these commands (and hit return each time) - you only have to do this once - but that will let LabVIEW work on your machine
- defaults write com.ni.labview NSGraphicsContextAllowOverRestore -bool YES
- defaults write com.ni.labview NSViewAllowsRootLayerBacking 0 - If you want to make your own UI - check out "MakeYourOwn" - you can have multiple processors on the same page.