DaniJobe / LabVIEW2018-Python-Integration-Example

An example of calling Python functions in LabVIEW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LabVIEW2018 Python Integration Example

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

Prerequisites

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.

Installation

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

Getting Started

Once you have completed the Installation step, open the HandsOn Guide.pdf and follow along with the examples.

Author

Danielle Jobe - Initial work - DanielleJobe

About

An example of calling Python functions in LabVIEW

License:MIT License


Languages

Language:LabVIEW 57.5%Language:Python 42.5%