07-08-2019 08:45 AM - edited 07-08-2019 08:46 AM
For some Strange reason when I try all of the LabVIEW Python Examples I'm getting fatal run time errors. Do I need to be running something else in parallel to LabVIEW before I can run the LabVIEW Python Examples? I am using LabVIEW 2018, which normally comes with Python as part of the LabVIEW 2018 installation.
07-08-2019 07:54 PM
Check the LabVIEW and Python is 32bit or 64bit,there are must be same.i use LabVIEW 2018 32bit and python 3.6 32bits is OK.
07-09-2019 07:44 AM
@weschen wrote:
Check the LabVIEW and Python is 32bit or 64bit,there are must be same.i use LabVIEW 2018 32bit and python 3.6 32bits is OK.
Is LabVIEW and Python 2 separate and different installations?
Do I have to install a Python Platform outside of LabVIEW before using Python in LabVIEW?
Best Regards,
Edmund
07-09-2019 08:56 AM - edited 07-09-2019 08:58 AM
07-09-2019 11:32 AM - edited 07-09-2019 11:34 AM
@weschen wrote:
Check the LabVIEW and Python is 32bit or 64bit,there are must be same.i use LabVIEW 2018 32bit and python 3.6 32bits is OK.
I can run the Python examples
C:\Program Files (x86)\National Instruments\LabVIEW 2019\examples\Connectivity\Python
with LabView 2019 x32 + Python 3.6.8 x32 on Windows 10 x64
if I try this with the latest Python 3.7.4 x32, I also get a runtime error
I hope, NI does include Python Node upgrades in their future patch (e.g. SP1...) releases
09-05-2019 07:30 AM
Because LabVIEW supports only 2.7 and 3.6 versions of Python.
It doesn't support ANY version of Python.
This is written in the LabVIEW help of the Python open session VI.
You can pass a string to that VI, for example "3.7" and your Python script could work.
BUT in general you can't say it will work, because every new Python iteration could potentially introduce new things that are not supported in LabVIEW.