Search the Community
Showing results for tags 'third party extension'.
-
I want to use the Python extension libs such as ROOT (http://root.cern.ch/drupal/content/how-use-use-python-pyroot-interpreter and http://root.cern.ch/drupal/content/production-version-528), but it is strange for me to use the labpython. I write a demo.py to import ROOT(just like this "from ROOT import gROOT, TCanvas, TF1") which is running in LabPython, but it seems to crash for LabVIEW, but it can be used outside of LabVIEW if python it in the command line. And If I run the python script without ROOT lib, it is normal in LabPython. How can I solve it? My python version is 2.6, the ROOT version 5.28, and LabVIEW version is 2011. LabPython version is 4.004. The Python file could not be uploaded, so I change the name from demo.py to demo_python.vi. Please change it after download. And LabVIEW file is also uploaded. My ROOT env config variables are set PATH=%ROOTSYS%/bin;%PATH%set PYTHONPATH=%ROOTSYS%/bin;%PYTHONPATH% So after setting config variables, you can type the command "python -i demo.py" in the python installation directory in the command line. It is normal running, but you could not do it in LabPython using the same code. And My LabVIEW.ini is setting like this: PythonServer=C:WINDOWSsystem32python26.dll Thanks! demo.vi demo_python.vi