LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Crash when call keras function using python node

Solved!
Go to solution

Hello everyone !

I call the python keras based Neural network model in LabVIEW 2018 using python node but  the LabVIEW crash when i include the keras function in it otherwise the other python codes working fine in it.
Specifications:
1- windows 7 (64 bit)
2- LabVIEW 2018 (64 bit)
3- python 3.6.0 (64 bit)
4- keras 2.6.0
5- tensorflow-cpu 2.6.0
kindly suggest me the solution to resolve this issue. 

Aht22_0-1638334014445.png

 

 

0 Kudos
Message 1 of 5
(1,615 Views)

why windows 7? 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 2 of 5
(1,534 Views)

Hello jay thanks for reply

 we try it on windows 10 and 11 but same issue occur. code working fine on VScode and python shell ,cmd but i call it on labview python node, labview crashed.

 

0 Kudos
Message 3 of 5
(1,282 Views)
Solution
Accepted by topic author Aht22

Can you try calling the python code directly not from a python node? You can try this ( put in your code path and name):

call python.png

This will use whatever python is loaded to your system PATH variable for python so you can use whatever version of python you want. You can also pass in variables as args and kwargs.  

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 4 of 5
(1,268 Views)

thanks jay for your help.
this is work for me

0 Kudos
Message 5 of 5
(1,245 Views)