Nikodem Czechowski Posted February 17, 2016 Report Share Posted February 17, 2016 I'm trying to work with Python run under LabView, and I feel I'm failing miserably. I have a fresh instalation of LV2015sp1 32 bit, on top of that I've installed the OpenG Toolkit 4.0 and LabPython 4.0.0.4. I have Python 2.7 (Anaconda2 2.5.0) installed as well. Everything seems to be fine, as long as I use some simple script, but when I try to use a script involving e.g. numpy then the whole thing freezes at execute_script.vi What I might be doing wrong? Quote Link to comment
gb119 Posted February 21, 2016 Report Share Posted February 21, 2016 (edited) LabPython only supports python modules that are threadsafe (this is because LabVIEW is multi-threaded, but Python has places where it isn't (related to the global interpreter lock). Unfortunately numpy and scipy are not thread safe, so it's easy to trip over this and crash LbaVIEW. Newer versions of Anaconda also seem to have problems with LabPython (Anaconda 2.3 onwards I think), but vanilla Python from www.python.org seems ok. Edited February 21, 2016 by gb119 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.