Each of these examples has two parts: a LabVIEW VI, and a corresponding Python file on disk. The Python files live right next to the LabVIEW files in the LabVIEW "examples" directory.
Certain examples use Python to talk to web services, like Plot.ly or the Google/Bing Speech Recognition APIs. These are free to use but may ask that you sign up for an API key before use. Instructions for how to do this are on the front panels of these VI's.
- Basic Use
- Python for Signal and Image Processing
- Web and Cloud Connectivity
- Advanced Python Features
The classic introductory example. Launch a Python session, send it your name, and Python returns a greeting.
Demonstrates how to get or set the value of a Python global variable.
Simple example of how to perform mathematical operations with the Toolkit. Supply an array to Python, have it transformed, and returned back to LabVIEW.
High-level languages like Python are ideal for solving thorny problems like event detection and signal classification. In this example, we use some of Python's tools for frequency analysis to find high-frequency noise bursts within a signal.
We show how acquire data with LabVIEW (in this case microphone audio) and
submit it to a cloud service for analysis. This example records a brief
snippet of sound using your computer's microphone, and then uses the Python
speech_recognition package to connect to the Google or Bing speech
Use Python to share data directly from LabVIEW to the web, by submitting it to the Plot.ly cloud service. Graphs generated with Plot.ly can be viewed, edited and shared online.
Shows how to redirect Python's standard output stream, to capture information printed to the console by Python code.
Demonstrates how to launch a long-running Python program and interact with it from LabVIEW, using threads, queues, and global variables. A long-running Python function can return partial results or status updates to LabVIEW, and LabVIEW can control the function's execution or instruct it to exit early.