Labview Tutorial¶
Contributed by P. Oswald.
Install Python¶
- Install Miniconda (Python 3.5 or higher).
- Open a command window as administrator:
- cd to Miniconda3 directory
- run
conda update conda
Install Glyph¶
- If you have git installed, run
pip install –e git+https://github.com/Ambrosys/glyph.git#egg=glyph
. Go to step 5. - Download the latest version from Github.
- Unzip / move to somewhere useful
- Upen a cmd window, navigate the the glyph-master folder
- Run
pip install –e .
(don’t forget the period at the end) - Test the installation by running
glyph-remote --help
.
Install ZeroMQ¶
- Download ZeroMQ bindings for LabView from http://labview-zmq.sourceforge.net/
- The download is a VI-Package (*.vip-file)
- Double clicking the *.vip-file opens it in the VI Package Manager (further info http://www.ni.com/tutorial/12397/en/)
- Use the VI Package Manager to install the package
Use ZeroMQ¶
- After successful installation you can find examples on the usage of ZeroMQ either
- through the VI Package Manager by double clicking on the entry “ZeroMQ Socket Library” and then on the button “Show Examples”
- in your LabView installation folder in the subdirectory /examples/zeromq/examples/
- online (e.g. the basic examples at http://labview-zmq.sourceforge.net/)
- For communication with glyph-remote one has to implement a server that listens for requests from glyph and sends the apropriate responses
- The ZeroMQ programming blocks can be accessed by right clicking on the block diagram and navigating to the section “Add-ons”
- The block “Unflatten from JSON” can be used to convert the JSON encoded strings sent by glyph to LabView clusters