This project demonstrates how to use Python nodes to communicate between LabVIEW and Python and gives you sample VIs to fill in and try it yourself.
It contains several examples:
- A simple hello world function
- Adding two numbers
- Calculating the number of days since a date (using clusters and enums as inputs)
- Finding the maximum and minimum in an array of numbers (a function that returns multiple outputs)
- Dictionary lookup with key-value pairs (arrays of clusters as inputs)
- Using OpenCV to do facial recognition on an image using Haar Cascades
- Using OpenCV to find the corners in an image using Harris Corner Detection
- LabVIEW 2018 or newer
- Python 3.6 (3.6.8 is recommended)
- pip 19 or newer
Note: The bitness (32 or 64-bit) of the Python version installed needs to match the bitness of your LabVIEW version. For example, 32-bit LabVIEW will only work to call 32-bit Python.
Clone or download the repo
Install the python packages using pip:
cd [repo clone location]/py_src
pip install -r requirements.txt
Note:
You will need to have configured pip and python in your computer's system environmental variables
Once you have completed the Installation step, open the HandsOn Guide.pdf and follow along with the examples.
Danielle Jobe - Initial work - DanielleJobe