LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Python Examples are getting run time errors

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.

0 Kudos
Message 1 of 6
(3,082 Views)

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.

Message 2 of 6
(3,052 Views)

@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

0 Kudos
Message 3 of 6
(3,038 Views)
0 Kudos
Message 4 of 6
(3,031 Views)

@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

0 Kudos
Message 5 of 6
(3,018 Views)

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.

 

0 Kudos
Message 6 of 6
(2,925 Views)