02-21-2020 04:27 PM
I am trying to integrate labview. I have gotten the same error over and over (Error 1663: "Open Python Session in python_node.vi") and here are the things I have tried:
I was originally having this error when I moved the Python folder into my documents so it was easier to access, but after getting there error I decided to uninstall everything and try again. Both LabVIEW and Python are 64 bits.
1. First I installed LabVIEW and it is in this folder:
C:\Users\zimmermanho\AppData\Local\Programs\Python\Python38
2. So then I made the helloworld.py code and it was in downloads so for module path i put the downloads folder. Recieved the error. So next I thought to move the helloworld.py into the folder from 1. Then I called it for module path like this:
C:\Users\zimmermanho\AppData\Local\Programs\Python\Python38\helloworld.py
Still getting the same exact error. There is a large issue here and I do not know how to solve it.
02-22-2020 09:00 AM
I tried your code and based on my "Downloads" folder and your script, I had no problems.
Based on your post, I'd suggest the following is the problem...
@zimmermanho98 wrote:
1. First I installed LabVIEW and it is in this folder:
C:\Users\zimmermanho\AppData\Local\Programs\Python\Python38
As annoying as it is, LabVIEW (at least, 2018 and 2019) only support Python 3.6 (or 2.7), not 3.7 or 3.8...
I think I ran into the same issue some time ago trying with 3.7.
See Open Python Session (they claim it "may work" with other versions, but I'm pretty sure I failed trying with 3.7 in the past).