Jump to content

LabVIEW and Python, especially numpy and scipy


Recommended Posts

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?

Link to comment

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 by gb119
  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.