LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tensorflow Python Node breaks after weights load

Solved!
Go to solution

Hello everyone,

I'm trying to run python node in LabView, but script return error 1672. 

With script everything ok, but LabView have some problems.

 

 

0 Kudos
Message 1 of 11
(2,419 Views)

Hello, NoKot333. Do you use any Numpy functions?

0 Kudos
Message 2 of 11
(2,372 Views)

What is your LabVIEW version? 

0 Kudos
Message 3 of 11
(2,365 Views)
0 Kudos
Message 4 of 11
(2,353 Views)
Solution
Accepted by NoKot333

@Vazgen_H wrote:

Hello, NoKot333. Do you use any Numpy functions?


I can confirm, I have seen error 1672 when returning a numpy array which is generated by the python script

 

in the following, I write a 2d buffer to the python node, extract the first column of this 2d buffer, convert this column vector to a numpy array and return as 1d array of doubles "y".

 

 

import numpy as np
def return_cm(data):

    y = data[:, 0]
    X = data[:, 1:]

    y = np.array(y)
    return y

 

 

 

the length of the y-vector can be manipulated by choosing a different number of rows, in the following screenshot 1000:

alexderjuengere_0-1647260384172.png

 

 

Error 1672 does halt the .vi, when the numbers of rows in this vector is bigger ~ 10.000 , but will work corretly if less e.g. 1000

 

 

0 Kudos
Message 5 of 11
(2,339 Views)

There are some Numpy functions, which are not supported by LabVIEW.

0 Kudos
Message 6 of 11
(2,319 Views)

Hello again. Can you send me kwhFinal.h5 for testing code on my PC? 

0 Kudos
Message 7 of 11
(2,310 Views)

Yes

0 Kudos
Message 8 of 11
(2,276 Views)

21.0.1 (64-bit)

0 Kudos
Message 9 of 11
(2,275 Views)