LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with using python functions

Hi,

 

I am trying to run a simple python script in Labview but I am getting an error code 1663 that I cannot seem to find any information on.Capture.JPG

Anyone have any ideas what it is and why I'm getting this error.

 

I have attached the VI and script I am trying to execute.

 

Thanks in advance

Download All
0 Kudos
Message 1 of 9
(3,605 Views)

wiebe@CARYA wrote:

There's at least some information on error 1663:

https://forums.ni.com/t5/LabVIEW/Labview-2018-Python-Node-and-Anaconda-Environment/td-p/3853701


yeah ... thanks....

 

They do not appear to have a clear solution either....

 

Any other ideas how to resolve the issue I'm facing?

I still am having trouble understanding why I get this error code... perhaps if there is a good explanation if what triggers it, it might help me understand what might be causing it at my end! 🙂

0 Kudos
Message 3 of 9
(3,562 Views)

@sherzaad wrote:

wiebe@CARYA wrote:

There's at least some information on error 1663:

https://forums.ni.com/t5/LabVIEW/Labview-2018-Python-Node-and-Anaconda-Environment/td-p/3853701


yeah ... thanks....

 

They do not appear to have a clear solution either....

 

Any other ideas how to resolve the issue I'm facing?

I still am having trouble understanding why I get this error code... perhaps if there is a good explanation if what triggers it, it might help me understand what might be causing it at my end! 🙂


Not really.

 

Pretty sure it's something to do with the Python version.

 

Which did you install? And how (Anaconda, spyder, PyCharm, etc.)? Does Python itself work? Do you have other Python versions installed? And so on...

 

Googling the hex error code gives more results:

https://www.google.com/search?q=labview+python+error+0x67F

0 Kudos
Message 4 of 9
(3,556 Views)

wiebe@CARYA wrote:

 

Pretty sure it's something to do with the Python version.

 

Which did you install? And how (Anaconda, spyder, PyCharm, etc.)? Does Python itself work? Do you have other Python versions installed? And so on...

 


 

I'm using Python 3.6.6 Windows x86 embeddable zip file  (I have LABVIEW 2018 32-bit version installed on my machine) which I downloaded from https://www.python.org/downloads/release/python-366/

 

I've put the python folder in my C drive. and yes the python itself works...

0 Kudos
Message 5 of 9
(3,548 Views)

did you :

(Windows) If you install Python 3.6, add the directory containing python36.dll to the system path

 

As indicated here.

0 Kudos
Message 6 of 9
(3,535 Views)

wiebe@CARYA wrote:

did you :

(Windows) If you install Python 3.6, add the directory containing python36.dll to the system path

 

As indicated here.


yep... did that.... still had the same error code 1663 😞

0 Kudos
Message 7 of 9
(3,403 Views)

@sherzaad wrote:

wiebe@CARYA wrote:

did you :

(Windows) If you install Python 3.6, add the directory containing python36.dll to the system path

 

As indicated here.


yep... did that.... still had the same error code 1663 😞


That's all I have...

 

Guess that's your chance to be a hero; if you post the solution if you ever find it.

0 Kudos
Message 8 of 9
(3,395 Views)

credit to @ThomasYoung in this post, I just translate to English version so more people may find it useful when encountering this issue:

https://forums.ni.com/t5/NI-LabVIEW-CVI-%E6%95%B0%E6%8D%AE%E9%87%87%E9%9B%86%E7%AD%89%E4%BA%A7%E5%93...

 

there is somewhat a possibility that Labview cannot run nipythonHost.exe in ....(your installation folder)\National Instruments\Shared\NIPythonInterface\ folder. A quick solution to the problem is to find nipythonHost.exe in the above direction and copy-paste it into ...\National Instruments\Labview 2020\ folder. I've had the same issue as you (checked bitness, checked system path) and I end up find out that this is a solution.

0 Kudos
Message 9 of 9
(2,541 Views)